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
5555is actually accepted by the compiler because we know that there is no
5656` UnsafeCell ` here that would permit interior mutability.
5757
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.
6263
6364### 3. ` Sync `
6465
You can’t perform that action at this time.
0 commit comments