Skip to content

Commit ab6ddf6

Browse files
committed
wip: disable StorageLive check.
1 parent cef8a2b commit ab6ddf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/transform/validate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ impl<'a, 'tcx> Visitor<'tcx> for CfgChecker<'a, 'tcx> {
302302
);
303303
}
304304

305-
if self.reachable_blocks.contains(location.block) && context.is_use() {
305+
if false && self.reachable_blocks.contains(location.block) && context.is_use() {
306306
// We check that the local is live whenever it is used. Technically, violating this
307307
// restriction is only UB and not actually indicative of not well-formed MIR. This means
308308
// that an optimization which turns MIR that already has UB into MIR that fails this

0 commit comments

Comments
 (0)