rust/compiler/rustc_const_eval/src
Matthias Krüger 0b13deb548
Rollup merge of #113661 - oli-obk:tait_wtf, r=lcnr
Double check that hidden types match the expected hidden type

Fixes https://github.com/rust-lang/rust/issues/113278 specifically, but I left a TODO for where we should also add some hardening.

It feels a bit like papering over the issue, but at least this way we don't get unsoundness, but just surprising errors. Errors will be improved and given spans before this PR lands.

r? `@compiler-errors` `@lcnr`
2023-07-25 23:34:07 +02:00
..
const_eval interpret: read_discriminant: only return VariantIdx 2023-07-25 14:30:58 +02:00
interpret add some sanity checks in write_immediate_no_validate 2023-07-25 14:30:58 +02:00
transform Make everything builtin! 2023-07-25 16:08:58 +00:00
util Double check that hidden types match the expected hidden type 2023-07-21 13:19:36 +00:00
errors.rs interpret: refactor projection code to work on a common trait, and use that for visitors 2023-07-25 14:30:58 +02:00
lib.rs Name the destructure_mir_constant query appropriately 2023-07-05 15:54:43 +00:00