diff options
| author | Ralf Jung <post@ralfj.de> | 2023-05-02 08:37:36 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-05-02 08:37:36 +0200 |
| commit | 3942cdf1bf0edd082a331ed9282b52eea0914fdd (patch) | |
| tree | aa6401d53d93348854718b151f645ef9bef93b52 /compiler/rustc_mir_transform/src/lib.rs | |
| parent | d20fa00ee640d3df38e2e431d732ac9ff4efb0a9 (diff) | |
| parent | 7411468ff817884cdb1239e85b5ab785cc65e36d (diff) | |
| download | rust-3942cdf1bf0edd082a331ed9282b52eea0914fdd.tar.gz rust-3942cdf1bf0edd082a331ed9282b52eea0914fdd.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_mir_transform/src/lib.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/lib.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_mir_transform/src/lib.rs b/compiler/rustc_mir_transform/src/lib.rs index 25d7db0ee60..8d9a22ea30d 100644 --- a/compiler/rustc_mir_transform/src/lib.rs +++ b/compiler/rustc_mir_transform/src/lib.rs @@ -616,13 +616,10 @@ fn promoted_mir(tcx: TyCtxt<'_>, def: LocalDefId) -> &IndexVec<Promoted, Body<'_ return tcx.arena.alloc(IndexVec::new()); } - let tainted_by_errors = tcx.mir_borrowck(def).tainted_by_errors; + tcx.ensure_with_value().mir_borrowck(def); let mut promoted = tcx.mir_promoted(def).1.steal(); for body in &mut promoted { - if let Some(error_reported) = tainted_by_errors { - body.tainted_by_errors = Some(error_reported); - } run_analysis_to_runtime_passes(tcx, body); } |
