1
Fork 0
rust/compiler/rustc_const_eval
Dylan DPC 3ea5456366
Rollup merge of #100239 - RalfJung:const-prop-uninit, r=oli-obk
remove an ineffective check in const_prop

Based on https://github.com/rust-lang/rust/pull/100043, only the last two commits are new.

ConstProp has a special check when reading from a local that prevents reading uninit locals. However, if that local flows into `force_allocation`, then no check fires and evaluation proceeds. So this check is not really effective at preventing accesses to uninit locals.

With https://github.com/rust-lang/rust/pull/100043, `read_immediate` and friends always fail when reading uninit locals, so I don't see why ConstProp would need a separate check. Thus I propose we remove it. This is needed to be able to do https://github.com/rust-lang/rust/pull/100085.
2022-08-29 16:49:40 +05:30
..
src Rollup merge of #100239 - RalfJung:const-prop-uninit, r=oli-obk 2022-08-29 16:49:40 +05:30
Cargo.toml Initial fixes on top of type interner commit 2022-05-28 11:38:22 -07:00