File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 22//!
33//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/mir/index.html
44
5- // ignore-tidy-filelength
6-
75use crate :: mir:: interpret:: { GlobalAlloc , Scalar } ;
86use crate :: mir:: visit:: MirVisitable ;
97use crate :: ty:: adjustment:: PointerCast ;
@@ -299,11 +297,7 @@ impl<'tcx> Body<'tcx> {
299297 pub fn temps_iter < ' a > ( & ' a self ) -> impl Iterator < Item = Local > + ' a {
300298 ( self . arg_count + 1 ..self . local_decls . len ( ) ) . filter_map ( move |index| {
301299 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) }
307301 } )
308302 }
309303
@@ -1190,11 +1184,7 @@ impl<'tcx> BasicBlockData<'tcx> {
11901184 }
11911185
11921186 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 }
11981188 }
11991189}
12001190
You can’t perform that action at this time.
0 commit comments