File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,11 @@ at type `&Option<Cell<i32>>` would be rejected by the naive analysis above, but
55
55
is actually accepted by the compiler because we know that there is no
56
56
` UnsafeCell ` here that would permit interior mutability.
57
57
58
- * Dynamic check.* The Miri engine could check this dynamically by ensuring that
59
- the new data that is interned for a constant is all marked as
60
- immutable. (Constants referring to already existing mutable data are not
61
- inherently problematic.)
58
+ * Dynamic check.* The Miri engine enforces this dynamically by ensuring that the
59
+ new data that is interned for a constant is all marked as immutable. However,
60
+ note the FIXME added [ by this PR] ( https://github.com/rust-lang/rust/pull/63955 ) :
61
+ for untyped data in a constant, we currently just * make* it immutable, instead
62
+ of checking properly.
62
63
63
64
### 3. ` Sync `
64
65
You can’t perform that action at this time.
0 commit comments