rust/tests/ui/mir/validate
Samuel Tardieu 323e23005a Fix ICE when validating transmuting ZST to inhabited enum
MIR validation attempts to determine the number of bytes needed to
represent the size of the source type to compute the discriminant for
the inhabited target enum. For a ZST source, there is no source data to
use as a discriminant so no proper runtime check can be generated.

Since that should never be possible, insert a delayed bug to ensure the
problem has been properly reported to the user by the type checker.
2025-08-23 19:25:58 +02:00
..
critical-edge.rs Give a message with a span on validation error 2025-07-19 14:14:12 -07:00
error-body.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
error-body.stderr Don't ice in validation when error body is created 2024-02-09 00:40:43 +00:00
ice-zst-as-discr-145786.rs Fix ICE when validating transmuting ZST to inhabited enum 2025-08-23 19:25:58 +02:00
ice-zst-as-discr-145786.stderr Fix ICE when validating transmuting ZST to inhabited enum 2025-08-23 19:25:58 +02:00
issue-95978-validator-lifetime-comparison.rs Allow fn pointers comparisons lint in UI tests 2024-12-02 18:43:37 +01:00
needs-reveal-all.rs remove remaining references to Reveal 2024-11-23 13:52:56 +01:00
noncleanup-cleanup.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
noncleanup-resume.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
noncleanup-terminate.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
project-into-simd.rs Ban projecting into SIMD types [MCP838] 2025-07-20 10:22:09 -07:00
transmute_cast_sized.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
validate-unsize-cast.rs Validate unsize coercion in MIR validation 2024-09-25 11:10:38 -04:00
validate-unsize-cast.stderr Mention type parameter in more cases and don't suggest ~const bound already there 2024-12-07 21:37:13 +00:00