rust/compiler/rustc_const_eval/src
Matthias Krüger bb77336c0a
Rollup merge of #99972 - RalfJung:1zst, r=lcnr
interpret: only consider 1-ZST when searching for receiver

`repr(transparent)` currently entirely rejects ZST with alignment larger than 1 (which is odd, arguably [this](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=02870f29396fa948c3123cb53d869ad1) should be accepted), so this should be safe. And if it ever isn't safe then that is very likely a bug elsewhere in the compiler.
2022-08-17 12:32:48 +02:00
..
const_eval add -Zextra-const-ub-checks to enable more UB checking in const-eval 2022-08-07 09:54:40 -04:00
interpret Rollup merge of #99972 - RalfJung:1zst, r=lcnr 2022-08-17 12:32:48 +02:00
transform Erase regions better in promote_candidate 2022-08-12 03:48:40 +00:00
util Auto merge of #100064 - RalfJung:disaligned, r=petrochenkov 2022-08-03 16:09:56 +00:00
errors.rs Migrate MutDeref, TransientMutBorrow diagnostics 2022-07-08 03:48:10 +00:00
lib.rs Adjust cfgs 2022-08-12 16:28:15 -04:00
might_permit_raw_init.rs Use constant eval to do strict validity checks 2022-07-14 22:55:17 +01:00