about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2020-03-06 08:48:58 +0100
committerGitHub <noreply@github.com>2020-03-06 08:48:58 +0100
commit40809b0585d5fe3ddad39fe00a608394ad1dec30 (patch)
tree1927b2c7c6c151f375d3bed9c6c67b7a2d6399fe /src
parent9712fa405944cb8d5416556ac4b1f26365a10658 (diff)
downloadrust-40809b0585d5fe3ddad39fe00a608394ad1dec30.tar.gz
rust-40809b0585d5fe3ddad39fe00a608394ad1dec30.zip
Add FIXME
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/interpret/place.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_mir/interpret/place.rs b/src/librustc_mir/interpret/place.rs
index 33161dfa52c..721766cc932 100644
--- a/src/librustc_mir/interpret/place.rs
+++ b/src/librustc_mir/interpret/place.rs
@@ -413,6 +413,8 @@ where
                 // This is a narrow bug-fix for rust-lang/rust#69191: if we are
                 // trying to access absent field of uninhabited variant, then
                 // signal UB (but don't ICE the compiler).
+                // FIXME temporary hack to work around incoherence between
+                // layout computation and MIR building
                 if field >= count as u64 && base.layout.abi == layout::Abi::Uninhabited {
                     throw_ub!(Unreachable);
                 }