Skip to content

Commit a7ccf80

Browse files
committed
wip: disable StorageLive check.
1 parent c8ddcff commit a7ccf80

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
@@ -296,7 +296,7 @@ impl<'a, 'tcx> Visitor<'tcx> for CfgChecker<'a, 'tcx> {
296296
);
297297
}
298298

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

0 commit comments

Comments
 (0)