rust/compiler/rustc_lint
bors 5e449b9adf 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).
2020-09-20 08:58:32 +00:00
..
src Auto merge of #74949 - oli-obk:validate_const_eval_raw, r=RalfJung 2020-09-20 08:58:32 +00:00
Cargo.toml mv compiler to compiler/ 2020-08-30 18:45:07 +03:00