mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
b06e8ad970
Don't allow unsafe statics outside of extern blocks (beta version) This PR fixes a regression where we allowed `unsafe static` items in top-level modules (i.e. outside of `unsafe extern` blocks). #127943 does not rebase cleanly, so I've prepared an extremely pared down version of this PR for beta purposes.