about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorHrvoje Niksic <hniksic@gmail.com>2020-03-04 22:12:53 +0100
committerHrvoje Niksic <hniksic@gmail.com>2020-03-19 14:49:21 +0100
commit2a08b0e3006aeb997e42d5df135eea63b071fa75 (patch)
tree89a78e14cf0d9177dd664a6e09ccc0a8073e0934 /src/test/ui/thinlto
parent8e0398c060ba50bde4fe47a3685c0857285001bd (diff)
downloadrust-2a08b0e3006aeb997e42d5df135eea63b071fa75.tar.gz
rust-2a08b0e3006aeb997e42d5df135eea63b071fa75.zip
Restore (and reword) the warning against passing invalid values to mem::forget.
As pointed out by Ralf Jung, dangling references and boxes are
undefined behavior as per
https://doc.rust-lang.org/reference/behavior-considered-undefined.html
and the Miri checker.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions