about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/transform
diff options
context:
space:
mode:
authorJakob Degen <jakob.e.degen@gmail.com>2022-12-13 04:22:47 -0800
committerJakob Degen <jakob.e.degen@gmail.com>2022-12-13 04:22:47 -0800
commit3522d48112e03a015e3714d4019b59f46d84f587 (patch)
tree26bc95b13467ad0b1ec00e3c4be34e1ebff826ab /compiler/rustc_const_eval/src/transform
parent109cccbe4f345c0f0785ce860788580c3e2a29f5 (diff)
downloadrust-3522d48112e03a015e3714d4019b59f46d84f587.tar.gz
rust-3522d48112e03a015e3714d4019b59f46d84f587.zip
Don't require owned data in `MaybeStorageLive`
Diffstat (limited to 'compiler/rustc_const_eval/src/transform')
-rw-r--r--compiler/rustc_const_eval/src/transform/validate.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/transform/validate.rs b/compiler/rustc_const_eval/src/transform/validate.rs
index 64318f5f54d..1b932d0e708 100644
--- a/compiler/rustc_const_eval/src/transform/validate.rs
+++ b/compiler/rustc_const_eval/src/transform/validate.rs
@@ -52,7 +52,7 @@ impl<'tcx> MirPass<'tcx> for Validator {
         };
 
         let always_live_locals = always_storage_live_locals(body);
-        let storage_liveness = MaybeStorageLive::new(always_live_locals)
+        let storage_liveness = MaybeStorageLive::new(std::borrow::Cow::Owned(always_live_locals))
             .into_engine(tcx, body)
             .iterate_to_fixpoint()
             .into_results_cursor(body);
@@ -79,7 +79,7 @@ struct TypeChecker<'a, 'tcx> {
     param_env: ParamEnv<'tcx>,
     mir_phase: MirPhase,
     reachable_blocks: BitSet<BasicBlock>,
-    storage_liveness: ResultsCursor<'a, 'tcx, MaybeStorageLive>,
+    storage_liveness: ResultsCursor<'a, 'tcx, MaybeStorageLive<'static>>,
     place_cache: Vec<PlaceRef<'tcx>>,
     value_cache: Vec<u128>,
 }