File tree 1 file changed +2
-12
lines changed
1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 2
2
//!
3
3
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/mir/index.html
4
4
5
- // ignore-tidy-filelength
6
-
7
5
use crate :: mir:: interpret:: { GlobalAlloc , Scalar } ;
8
6
use crate :: mir:: visit:: MirVisitable ;
9
7
use crate :: ty:: adjustment:: PointerCast ;
@@ -299,11 +297,7 @@ impl<'tcx> Body<'tcx> {
299
297
pub fn temps_iter < ' a > ( & ' a self ) -> impl Iterator < Item = Local > + ' a {
300
298
( self . arg_count + 1 ..self . local_decls . len ( ) ) . filter_map ( move |index| {
301
299
let local = Local :: new ( index) ;
302
- if self . local_decls [ local] . is_user_variable ( ) {
303
- None
304
- } else {
305
- Some ( local)
306
- }
300
+ if self . local_decls [ local] . is_user_variable ( ) { None } else { Some ( local) }
307
301
} )
308
302
}
309
303
@@ -1190,11 +1184,7 @@ impl<'tcx> BasicBlockData<'tcx> {
1190
1184
}
1191
1185
1192
1186
pub fn visitable ( & self , index : usize ) -> & dyn MirVisitable < ' tcx > {
1193
- if index < self . statements . len ( ) {
1194
- & self . statements [ index]
1195
- } else {
1196
- & self . terminator
1197
- }
1187
+ if index < self . statements . len ( ) { & self . statements [ index] } else { & self . terminator }
1198
1188
}
1199
1189
}
1200
1190
You can’t perform that action at this time.
0 commit comments