rust/tests/ui/transmutability
Matthias Krüger 9ed667f8ed
Rollup merge of #130371 - saethlin:transmutability-enum-ice, r=compiler-errors
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
2024-09-15 11:55:47 +02:00
..
abstraction
alignment
arrays
enums Correctly account for niche-optimized tags 2024-09-14 17:52:03 -04:00
malformed-program-gracefulness
primitives
references
safety
structs
unions
issue-101739-1.rs Re-enable ConstArgKind::Path lowering by default 2024-09-12 13:56:01 -04:00
issue-101739-1.stderr Re-enable ConstArgKind::Path lowering by default 2024-09-12 13:56:01 -04:00
issue-101739-2.rs Re-enable ConstArgKind::Path lowering by default 2024-09-12 13:56:01 -04:00
issue-101739-2.stderr Re-enable ConstArgKind::Path lowering by default 2024-09-12 13:56:01 -04:00
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