9ed667f8ed
Correctly account for niche-optimized tags in rustc_transmute This is a bit hacky, but it fixes the ICE and makes it possible to run the safe transmute check on every `mem::transmute` check we instantiate. I want to write a lint that needs to do that, but this stands well on its own. cc `@jswrenn` here's the fix I alluded to yesterday :) Fixes #123693 |
||
---|---|---|
.. | ||
abstraction | ||
alignment | ||
arrays | ||
enums | ||
malformed-program-gracefulness | ||
primitives | ||
references | ||
safety | ||
structs | ||
unions | ||
issue-101739-1.rs | ||
issue-101739-1.stderr | ||
issue-101739-2.rs | ||
issue-101739-2.stderr | ||
issue-110467.rs | ||
issue-110892.rs | ||
issue-110892.stderr | ||
maybeuninit.rs | ||
maybeuninit.stderr | ||
region-infer.rs | ||
region-infer.stderr | ||
transmute-padding-ice.rs | ||
uninhabited.rs | ||
uninhabited.stderr |