about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-09-28 18:13:11 +0200
committerGitHub <noreply@github.com>2025-09-28 18:13:11 +0200
commit6059195875986ac9d928d1059d733d518cb1709b (patch)
treee7662fc88d41f260a5a4fffa01dd4e33635fc8cb /compiler/rustc_interface/src
parent322dca8551ba2e395268ddff9bcf58e0d0479813 (diff)
parent23f1767c808d759ff683812581ca0e954d72c463 (diff)
downloadrust-6059195875986ac9d928d1059d733d518cb1709b.tar.gz
rust-6059195875986ac9d928d1059d733d518cb1709b.zip
Rollup merge of #141469 - Kivooeo:remove-usnsafegate, r=compiler-errors
Allow `&raw [mut | const]` for union field in safe code

fixes rust-lang/rust#141264

r? ``@Veykril``

Unresolved questions:

- [x] Any edge cases?
- [x] How this works with rust-analyzer (because all I've did is prevent compiler from emitting error in `&raw` context) (rust-lang/rust-analyzer#19867)
- [x] Should we allow `addr_of!` and `addr_of_mut!` as well? In current version they both (`&raw` and `addr_of!`) are allowed (They are the same)
- [x] Is chain of union fields is a safe? (Yes)
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions