1
Fork 0

Remove unused temp.

Co-authored-by: Wesley Wiser <wwiser@gmail.com>
This commit is contained in:
Camille Gillot 2022-09-10 12:10:04 +02:00 committed by GitHub
parent 389c6041a4
commit bcbd183ca3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)),