about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/allocator.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-20 08:58:32 +0000
committerbors <bors@rust-lang.org>2020-09-20 08:58:32 +0000
commit5e449b9adff463455743291b0c1f76feec092992 (patch)
tree6323acda84dc9ddccd08796495695d1fa06acb06 /compiler/rustc_codegen_llvm/src/allocator.rs
parent10b3595ba6a4c658c9dea105488fc562c815e434 (diff)
parent34785fcc4a56c4f705a1f5c9929689e5c46e1fbc (diff)
downloadrust-5e449b9adff463455743291b0c1f76feec092992.tar.gz
rust-5e449b9adff463455743291b0c1f76feec092992.zip
Auto merge of #74949 - oli-obk:validate_const_eval_raw, r=RalfJung
Validate constants during `const_eval_raw`

This PR implements the groundwork for https://github.com/rust-lang/rust/issues/72396

* constants are now validated during `const_eval_raw`
* to prevent cycle errors, we do not validate references to statics anymore beyond the fact that they are not dangling
* the `const_eval` query ICEs if used on `static` items
* as a side effect promoteds are now evaluated to `ConstValue::Scalar` again (since they are just a reference to the actual promoted allocation in most cases).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/allocator.rs')
0 files changed, 0 insertions, 0 deletions