Skip to content

Commit

Permalink
Remove unused temp.
Browse files Browse the repository at this point in the history
Co-authored-by: Wesley Wiser <wwiser@gmail.com>
  • Loading branch information
cjgillot and wesleywiser authored Sep 10, 2022
1 parent 389c604 commit bcbd183
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_mir_build/src/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit bcbd183

Please sign in to comment.