@@ -113,24 +113,19 @@ use self::VarKind::*;
113
113
114
114
use middle:: def:: * ;
115
115
use middle:: mem_categorization:: Typer ;
116
- use middle:: pat_util;
117
- use middle:: typeck;
118
- use middle:: ty;
116
+ use middle:: { pat_util, typeck, ty} ;
119
117
use lint;
120
118
use util:: nodemap:: NodeMap ;
121
119
122
- use std:: fmt;
123
- use std:: io;
120
+ use std:: { fmt, io, uint} ;
124
121
use std:: rc:: Rc ;
125
- use std:: uint;
126
122
use syntax:: ast:: { mod, NodeId , Expr } ;
127
123
use 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} ;
130
125
use syntax:: print:: pprust:: { expr_to_string, block_to_string} ;
131
126
use 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 } ;
134
129
135
130
/// For use with `propagate_through_loop`.
136
131
enum LoopKind < ' a > {
@@ -967,11 +962,11 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
967
962
self . access_path ( expr, succ, ACC_READ | ACC_USE )
968
963
}
969
964
970
- ast:: ExprField ( ref e, _, _ ) => {
965
+ ast:: ExprField ( ref e, _) => {
971
966
self . propagate_through_expr ( & * * e, succ)
972
967
}
973
968
974
- ast:: ExprTupField ( ref e, _, _ ) => {
969
+ ast:: ExprTupField ( ref e, _) => {
975
970
self . propagate_through_expr ( & * * e, succ)
976
971
}
977
972
@@ -1295,8 +1290,8 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
1295
1290
1296
1291
match expr. node {
1297
1292
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) ,
1300
1295
_ => self . propagate_through_expr ( expr, succ)
1301
1296
}
1302
1297
}
0 commit comments