We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcfbdb8 commit 66d2f34Copy full SHA for 66d2f34
src/librustc/mir/repr.rs
@@ -214,8 +214,9 @@ impl<'tcx> Mir<'tcx> {
214
215
/// Returns an iterator over all function arguments.
216
#[inline]
217
- pub fn args_iter<'a>(&'a self) -> impl Iterator<Item=Local> + 'a {
218
- (1..self.arg_count+1).map(Local::new)
+ pub fn args_iter(&self) -> impl Iterator<Item=Local> {
+ let arg_count = self.arg_count;
219
+ (1..arg_count+1).map(Local::new)
220
}
221
222
/// Returns an iterator over all user-defined variables and compiler-generated temporaries (all
0 commit comments