diff options
| author | Hrvoje Niksic <hniksic@gmail.com> | 2020-03-04 22:12:53 +0100 |
|---|---|---|
| committer | Hrvoje Niksic <hniksic@gmail.com> | 2020-03-19 14:49:21 +0100 |
| commit | 2a08b0e3006aeb997e42d5df135eea63b071fa75 (patch) | |
| tree | 89a78e14cf0d9177dd664a6e09ccc0a8073e0934 /src/test/debuginfo/enum-thinlto.rs | |
| parent | 8e0398c060ba50bde4fe47a3685c0857285001bd (diff) | |
| download | rust-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/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
