diff options
| author | Lukas Markeffsky <@> | 2023-04-28 20:19:48 +0200 |
|---|---|---|
| committer | Lukas Markeffsky <@> | 2023-04-28 20:19:48 +0200 |
| commit | fc63926e18794f3940098689528e67d8bf5f7cb0 (patch) | |
| tree | 77674d42d7ca66bc54759148aed14602a882abe7 /compiler/rustc_hir_analysis | |
| parent | 69c71dacda9ce6442ee4600ddde7b528b5b411db (diff) | |
| download | rust-fc63926e18794f3940098689528e67d8bf5f7cb0.tar.gz rust-fc63926e18794f3940098689528e67d8bf5f7cb0.zip | |
remove unused `mut`s
Diffstat (limited to 'compiler/rustc_hir_analysis')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/region.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/region.rs b/compiler/rustc_hir_analysis/src/check/region.rs index 421b3df2d53..6ab5556e951 100644 --- a/compiler/rustc_hir_analysis/src/check/region.rs +++ b/compiler/rustc_hir_analysis/src/check/region.rs @@ -421,7 +421,7 @@ fn resolve_expr<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, expr: &'tcx h let target_scopes = visitor.fixup_scopes.drain(start_point..); for scope in target_scopes { - let mut yield_data = + let yield_data = visitor.scope_tree.yield_in_scope.get_mut(&scope).unwrap().last_mut().unwrap(); let count = yield_data.expr_and_pat_count; let span = yield_data.span; |
