mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
255fdcc858
allow statics pointing to mutable statics Fixes https://github.com/rust-lang/rust/issues/120450 for good. We can even simplify our checks: no need to specifically go looking for mutable references in const, we can just reject any reference that points to something mutable. r? `@oli-obk`