rust/compiler/rustc_const_eval/src
Matthias Krüger 23ef234bf7
Rollup merge of #95221 - RalfJung:check_and_deref_ptr, r=oli-obk
interpret/memory: simplify check_and_deref_ptr

*Finally* I saw a way to make this code simpler. The odd preprocessing in `let ptr_or_addr =` has bothered me since forever, but it actually became unnecessary in the last provenance refactoring. :)

This also leads to slightly more explicit error messages as a nice side-effect. 🎉

r? `@oli-obk`
2022-03-23 22:13:24 +01:00
..
const_eval rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
interpret Rollup merge of #95221 - RalfJung:check_and_deref_ptr, r=oli-obk 2022-03-23 22:13:24 +01:00
transform Rename ~const Drop to ~const Destruct 2022-03-21 17:04:03 +11:00
util Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
lib.rs Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00