rust/tests/ui/enum-discriminant
Jacob Pratt 5bd4e832d3
Rollup merge of #144553 - Oneirical:uncountable-integer-4, r=jieyouxu
Rehome 32 `tests/ui/issues/` tests to other subdirectories under `tests/ui/`

rust-lang/rust#143902 divided into smaller, easier to review chunks.

Part of rust-lang/rust#133895

Methodology:

1. Refer to the previously written `tests/ui/SUMMARY.md`
2. Find an appropriate category for the test, using the original issue thread and the test contents.
3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers)
4. Rename the tests to make their purpose clearer

Inspired by the methodology that `@Kivooeo` was using.

r? `@jieyouxu`
2025-08-10 15:43:52 -04:00
..
auxiliary Encode VariantIdx so we can decode variants in the right order 2023-05-13 00:26:35 +00:00
actually_not_an_enum-discriminant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
arbitrary_enum_discriminant-no-repr.rs Remove dead code and extend test coverage and diagnostics around it 2025-07-24 10:21:20 +00:00
arbitrary_enum_discriminant-no-repr.stderr Remove dead code and extend test coverage and diagnostics around it 2025-07-24 10:21:20 +00:00
arbitrary_enum_discriminant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
discr-foreign.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
discriminant-ill-typed.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
discriminant-ill-typed.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
discriminant-overflow-2.rs Move tests from ui/discrim dir 2023-06-08 12:33:17 +00:00
discriminant-overflow-2.stderr Move tests from ui/discrim dir 2023-06-08 12:33:17 +00:00
discriminant-overflow.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
discriminant-overflow.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
discriminant_size.rs Stabilise repr128 2025-05-28 15:14:34 +01:00
discriminant_value-wrapper.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
discriminant_value.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
enum-discriminant-const-eval-truncation-9837.rs Rehome tests/ui/issues/ tests [4/?] 2025-08-10 11:54:15 -04:00
eval-error.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
eval-error.stderr Unconditionally run check_item_type on all items 2025-06-30 08:06:08 +00:00
forbidden-discriminant-kind-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
forbidden-discriminant-kind-impl.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
get_discr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-41394-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-41394.rs Suppress "erroneous constant used" for constants tainted by errors 2023-05-15 00:00:00 +00:00
issue-41394.stderr fix ICE on type error in promoted 2024-12-09 15:17:26 +01:00
issue-46519.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-50689.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-51582.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-61696.rs Update tests 2024-08-10 12:07:17 +02:00
issue-70453-generics-in-discr-ice-2.rs improve diagnostics and bless tests 2023-05-05 21:42:54 +01:00
issue-70453-generics-in-discr-ice-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-70453-generics-in-discr-ice.rs improve diagnostics and bless tests 2023-05-05 21:42:54 +01:00
issue-70453-generics-in-discr-ice.stderr Improve the diagnostics for unused generic parameters 2024-02-01 16:18:03 +01:00
issue-70453-polymorphic-ctfe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-70453-polymorphic-ctfe.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-70509-partial_eq.rs Stabilise repr128 2025-05-28 15:14:34 +01:00
issue-72554.rs Remove track_errors entirely 2024-01-23 15:23:22 +00:00
issue-72554.stderr Remove track_errors entirely 2024-01-23 15:23:22 +00:00
issue-90038.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-104519.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
niche-prefer-zero.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
niche.rs Update tests 2024-08-10 12:07:17 +02:00
ptr_niche.rs add tests for niches in pointers 2024-11-30 16:00:55 +01:00
repr128-get-discriminant-issue-43398.rs Stabilise repr128 2025-05-28 15:14:34 +01:00
repr128.rs Stabilise repr128 2025-05-28 15:14:34 +01:00
wrapping_niche.rs Add regression test 2025-07-28 10:29:02 +00:00
wrapping_niche.stderr Pick the largest niche even if the largest niche is wrapped around 2025-07-29 14:08:15 +00:00