@@ -113,24 +113,19 @@ use self::VarKind::*;
113113
114114use middle:: def:: * ;
115115use middle:: mem_categorization:: Typer ;
116- use middle:: pat_util;
117- use middle:: typeck;
118- use middle:: ty;
116+ use middle:: { pat_util, typeck, ty} ;
119117use lint;
120118use util:: nodemap:: NodeMap ;
121119
122- use std:: fmt;
123- use std:: io;
120+ use std:: { fmt, io, uint} ;
124121use std:: rc:: Rc ;
125- use std:: uint;
126122use syntax:: ast:: { mod, NodeId , Expr } ;
127123use syntax:: codemap:: { BytePos , original_sp, Span } ;
128- use syntax:: parse:: token:: special_idents;
129- use syntax:: parse:: token;
124+ use syntax:: parse:: token:: { mod, special_idents} ;
130125use syntax:: print:: pprust:: { expr_to_string, block_to_string} ;
131126use syntax:: ptr:: P ;
132- use syntax:: { visit , ast_util} ;
133- use syntax:: visit:: { Visitor , FnKind } ;
127+ use syntax:: ast_util;
128+ use syntax:: visit:: { mod , Visitor , FnKind } ;
134129
135130/// For use with `propagate_through_loop`.
136131enum LoopKind < ' a > {
@@ -967,11 +962,11 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
967962 self . access_path ( expr, succ, ACC_READ | ACC_USE )
968963 }
969964
970- ast:: ExprField ( ref e, _, _ ) => {
965+ ast:: ExprField ( ref e, _) => {
971966 self . propagate_through_expr ( & * * e, succ)
972967 }
973968
974- ast:: ExprTupField ( ref e, _, _ ) => {
969+ ast:: ExprTupField ( ref e, _) => {
975970 self . propagate_through_expr ( & * * e, succ)
976971 }
977972
@@ -1295,8 +1290,8 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
12951290
12961291 match expr. node {
12971292 ast:: ExprPath ( _) => succ,
1298- ast:: ExprField ( ref e, _, _ ) => self . propagate_through_expr ( & * * e, succ) ,
1299- ast:: ExprTupField ( ref e, _, _ ) => self . propagate_through_expr ( & * * e, succ) ,
1293+ ast:: ExprField ( ref e, _) => self . propagate_through_expr ( & * * e, succ) ,
1294+ ast:: ExprTupField ( ref e, _) => self . propagate_through_expr ( & * * e, succ) ,
13001295 _ => self . propagate_through_expr ( expr, succ)
13011296 }
13021297 }
0 commit comments