about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-25 18:25:48 +0000
committerbors <bors@rust-lang.org>2020-12-25 18:25:48 +0000
commitbb178237c5539c75e1b85ab78a8ab902b1f333d5 (patch)
tree82b10769936f0e32f1895937c78a63aa487810bb /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent1832bdd7de93573464e1536e3ea17d5fd7d2888b (diff)
parent97cae9c555016cfa02a3aa1e41a41157525f8cf4 (diff)
downloadrust-bb178237c5539c75e1b85ab78a8ab902b1f333d5.tar.gz
rust-bb178237c5539c75e1b85ab78a8ab902b1f333d5.zip
Auto merge of #80235 - RalfJung:validate-promoteds, r=oli-obk
validate promoteds

Turn on const-value validation for promoteds. This is made possible now that https://github.com/rust-lang/rust/issues/67534 is resolved.

I don't think this is a breaking change. We don't promote any unsafe operation any more (since https://github.com/rust-lang/rust/pull/77526 landed). We *do* promote `const fn` calls under some circumstances (in `const`/`static` initializers), but union field access and similar operations are not allowed in `const fn`. So now is a perfect time to add this check. :D

r? `@oli-obk`
Fixes https://github.com/rust-lang/rust/issues/67465
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions