File tree 1 file changed +2
-5
lines changed
compiler/rustc_middle/src/mir
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -411,8 +411,7 @@ impl<'tcx> Body<'tcx> {
411
411
/// Returns an iterator over all function arguments.
412
412
#[ inline]
413
413
pub fn args_iter ( & self ) -> impl Iterator < Item = Local > + ExactSizeIterator {
414
- let arg_count = self . arg_count ;
415
- ( 1 ..arg_count + 1 ) . map ( Local :: new)
414
+ ( 1 ..self . arg_count + 1 ) . map ( Local :: new)
416
415
}
417
416
418
417
/// Returns an iterator over all user-defined variables and compiler-generated temporaries (all
@@ -421,9 +420,7 @@ impl<'tcx> Body<'tcx> {
421
420
pub fn vars_and_temps_iter (
422
421
& self ,
423
422
) -> impl DoubleEndedIterator < Item = Local > + ExactSizeIterator {
424
- let arg_count = self . arg_count ;
425
- let local_count = self . local_decls . len ( ) ;
426
- ( arg_count + 1 ..local_count) . map ( Local :: new)
423
+ ( self . arg_count + 1 ..self . local_decls . len ( ) ) . map ( Local :: new)
427
424
}
428
425
429
426
#[ inline]
You can’t perform that action at this time.
0 commit comments