about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-04-01 12:07:02 +0200
committerGitHub <noreply@github.com>2022-04-01 12:07:02 +0200
commit3245e6129819f892fd793d42051f6f7bbd2d91bd (patch)
tree7a5fd3ed4ba5231b8c6a9bd9b753eefdb8c1d504 /compiler/rustc_codegen_gcc/example/std_example.rs
parente21b27ff7a7ca155daaa2fac580b12dd2644da57 (diff)
parent907ba11490e95e2bb649329456eb5ab9a6976f99 (diff)
downloadrust-3245e6129819f892fd793d42051f6f7bbd2d91bd.tar.gz
rust-3245e6129819f892fd793d42051f6f7bbd2d91bd.zip
Rollup merge of #95516 - RalfJung:ptrs-not-ints, r=dtolnay
ptr_metadata test: avoid ptr-to-int transmutes

Pointers can have provenance, integers don't, so transmuting pointers to integers creates "non-standard" values and it is unclear how well those can be supported (https://github.com/rust-lang/unsafe-code-guidelines/issues/286).

So for this test let's take the safer option and use a pointer type instead. That also makes Miri happy. :)
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions