rust/compiler
bors bb178237c5 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
2020-12-25 18:25:48 +00:00
..
2020-09-11 09:37:51 -07:00
2020-12-14 22:00:46 -05:00
2020-12-18 22:13:25 +09:00
2020-12-22 09:33:16 -05:00
2020-12-22 15:20:24 +00:00
2020-09-23 21:51:56 +02:00
2020-12-03 17:08:19 -05:00