Skip to content

Commit 40809b0

Browse files
authored
Add FIXME
1 parent 9712fa4 commit 40809b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_mir/interpret/place.rs

+2
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ where
413413
// This is a narrow bug-fix for rust-lang/rust#69191: if we are
414414
// trying to access absent field of uninhabited variant, then
415415
// signal UB (but don't ICE the compiler).
416+
// FIXME temporary hack to work around incoherence between
417+
// layout computation and MIR building
416418
if field >= count as u64 && base.layout.abi == layout::Abi::Uninhabited {
417419
throw_ub!(Unreachable);
418420
}

0 commit comments

Comments
 (0)