Skip to content

Commit bca3928

Browse files
committed
Revert "Add flag in build as_rvalue"
This reverts commit a313dba20f1449f227e2fe0be20b7c48fd4de13b.
1 parent 335315a commit bca3928

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/rustc_mir_build/src/build/expr/as_rvalue.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -601,9 +601,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
601601
let this = self;
602602

603603
let source_info = this.source_info(upvar_span);
604-
let mut decl = LocalDecl::new(upvar_ty, upvar_span);
605-
decl.always_storage_live = true; // this will be StorageLive below
606-
let temp = this.local_decls.push(decl);
604+
let temp = this.local_decls.push(LocalDecl::new(upvar_ty, upvar_span));
607605

608606
this.cfg.push(block, Statement { source_info, kind: StatementKind::StorageLive(temp) });
609607

0 commit comments

Comments
 (0)