diff options
| author | Camille Gillot <gillot.camille@gmail.com> | 2022-09-10 12:10:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-10 12:10:04 +0200 |
| commit | bcbd183ca3c2aec7786b14385e3dfd35ba3a57a4 (patch) | |
| tree | 5d25c9463b9bf4e6071c810f3faa763e9173e1ec | |
| parent | 389c6041a4d21aadd55d28ccfb3503f015684716 (diff) | |
| download | rust-bcbd183ca3c2aec7786b14385e3dfd35ba3a57a4.tar.gz rust-bcbd183ca3c2aec7786b14385e3dfd35ba3a57a4.zip | |
Remove unused temp.
Co-authored-by: Wesley Wiser <wwiser@gmail.com>
| -rw-r--r-- | compiler/rustc_mir_build/src/build/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_mir_build/src/build/mod.rs b/compiler/rustc_mir_build/src/build/mod.rs index 743678aa976..9b4ec12ab8a 100644 --- a/compiler/rustc_mir_build/src/build/mod.rs +++ b/compiler/rustc_mir_build/src/build/mod.rs @@ -984,11 +984,10 @@ impl<'a, 'tcx> Builder<'a, 'tcx> { } }; - let env_place = Place { + let use_place = Place { local: ty::CAPTURE_STRUCT_LOCAL, projection: tcx.intern_place_elems(&projs), }; - let use_place = env_place; self.var_debug_info.push(VarDebugInfo { name: *sym, source_info: SourceInfo::outermost(tcx_hir.span(var_id)), |
