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 safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
alignment safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
arrays safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
enums Correctly account for niche-optimized tags 2024-09-14 17:52:03 -04:00
malformed-program-gracefulness Revert 'Stabilize -Znext-solver=coherence' 2024-09-11 17:57:04 -04:00
primitives safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
references safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
safety safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
structs safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
unions safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
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 safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
issue-110892.rs safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
issue-110892.stderr safe transmute: revise safety analysis 2024-02-27 16:22:32 +00:00
maybeuninit.rs safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
maybeuninit.stderr safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
region-infer.rs safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
region-infer.stderr safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
transmute-padding-ice.rs safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
uninhabited.rs safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
uninhabited.stderr safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00