mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 17:36:20 +00:00
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`