diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-07-19 10:48:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-19 10:48:06 +0200 |
| commit | 6fe68f88e72fd0b813dc39345d7a5e2a291c1e7c (patch) | |
| tree | 6f0431dfedfb121273f950079823cce9e48dd4ac /compiler/rustc_mir_transform/src | |
| parent | 1c665738dedf605604e824a2d8a06b312c3030ea (diff) | |
| parent | 2f5a84ea16f232f8a0709ea567bca0cfd90b44cf (diff) | |
| download | rust-6fe68f88e72fd0b813dc39345d7a5e2a291c1e7c.tar.gz rust-6fe68f88e72fd0b813dc39345d7a5e2a291c1e7c.zip | |
Rollup merge of #127943 - compiler-errors:no-unsafe, r=spastorino
Don't allow unsafe statics outside of extern blocks This PR fixes a regression where we allowed `unsafe static` items in top-level modules (i.e. outside of `unsafe extern` blocks). It's harder IMO to integrate this into the `check_item_safety` function, so I opted to just put this check on the `static` item itself. Beta version of this lives at #127944. r? ```@oli-obk``` or ```@spastorino```
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions
