We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 870a6dc commit b52f6f4Copy full SHA for b52f6f4
src/librustc_mir/interpret/intern.rs
@@ -168,6 +168,8 @@ for
168
// We do not have any `frozen` logic here, because it's essentially equivalent to
169
// the mutability except for the outermost item. Only `UnsafeCell` can "unfreeze",
170
// and we check that in `visit_aggregate`.
171
+ // This is not an inherent limitation, but one that we know to be true, because
172
+ // const qualification enforces it. We can lift it in the future.
173
match (self.mode, mutability) {
174
// all is "good and well" in the unsoundness of `static mut`
175
(InternMode::StaticMut, _) => {},
0 commit comments