rust/compiler/rustc_middle/src
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
..
dep_graph mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
hir mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
ich mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
infer improve const infer err 2020-09-14 10:08:32 +02:00
middle pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
mir Auto merge of #74949 - oli-obk:validate_const_eval_raw, r=RalfJung 2020-09-20 08:58:32 +00:00
query Reflect the "do not call this query directly" mentality in its name 2020-09-19 10:57:14 +02:00
traits Auto merge of #75608 - estebank:suggest-boxed-match-exprs, r=lcnr,varkor 2020-09-14 19:57:57 +00:00
ty Auto merge of #74949 - oli-obk:validate_const_eval_raw, r=RalfJung 2020-09-20 08:58:32 +00:00
util mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
arena.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
lib.rs datastructures: replace once_cell crate with an impl from std 2020-08-30 20:06:14 +01:00
lint.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
macros.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00