about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-08-30 07:55:50 +0000
committerbors <bors@rust-lang.org>2024-08-30 07:55:50 +0000
commite77de3841575f0febfc3f774071214da2e676460 (patch)
tree81fca26fda7242dfa42271200085c41163860098 /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
parenta729229a217a623ecd9bcb4ed08e07ad40ac5a71 (diff)
parent0dfe40f0a38ed31ff9ef0e14fd24c5585bb869cd (diff)
downloadrust-e77de3841575f0febfc3f774071214da2e676460.tar.gz
rust-e77de3841575f0febfc3f774071214da2e676460.zip
Auto merge of #18003 - ChayimFriedman2:addr_of-static-mut, r=Veykril
Do not report missing unsafe on `addr_of[_mut]!(EXTERN_OR_MUT_STATIC)`

The compiler no longer does as well; see https://github.com/rust-lang/rust/pull/125834.

Also require unsafe when accessing `extern` `static` (other than by `addr_of!()`).

Fixes #17978.
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions