diff options
| author | Martin Nordholts <martin.nordholts@codetale.se> | 2024-12-20 19:20:23 +0100 |
|---|---|---|
| committer | Martin Nordholts <martin.nordholts@codetale.se> | 2024-12-22 14:21:10 +0100 |
| commit | 2305012e6a819805fdcf9207d865fa4dbda58f81 (patch) | |
| tree | 90950629bc90ff3d510568f4c0dfb508399cefdb /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 8a1f8039a7ded79d3d4fe97b110016d89f2b11e2 (diff) | |
| download | rust-2305012e6a819805fdcf9207d865fa4dbda58f81.tar.gz rust-2305012e6a819805fdcf9207d865fa4dbda58f81.zip | |
docs: `transmute<&mut T, &mut MaybeUninit<T>>` is unsound when exposed to safe code
In the playground the example program terminates with an unpredictable exit
code. The undefined behavior is also detected by miri:
error: Undefined Behavior: using uninitialized data
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
