about summary refs log tree commit diff
path: root/tests/ui/enum-discriminant
AgeCommit message (Collapse)AuthorLines
2025-08-10Rollup merge of #144553 - Oneirical:uncountable-integer-4, r=jieyouxuJacob Pratt-0/+12
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-10Rehome tests/ui/issues/ tests [4/?]Oneirical-0/+12
2025-07-29Pick the largest niche even if the largest niche is wrapped aroundOli Scherer-3/+12
2025-07-28Add regression testOli Scherer-0/+253
2025-07-24Remove dead code and extend test coverage and diagnostics around itOli Scherer-8/+31
We lost the following comment during refactorings: The current code for niche-filling relies on variant indices instead of actual discriminants, so enums with explicit discriminants (RFC 2363) would misbehave.
2025-06-30Unconditionally run `check_item_type` on all itemsOli Scherer-12/+12
2025-06-07const-eval error: always say in which item the error occurredRalf Jung-1/+1
also adjust the wording a little so that we don't say "the error occurred here" for two different spans
2025-06-02Clarify why we are talking about a failed const eval at a random placeOli Scherer-1/+1
2025-06-02Use the informative error as the main const eval error messageOli Scherer-3/+3
2025-05-28Stabilise `repr128`beetrees-52/+2
2025-04-30compiletest: Make diagnostic kind mandatory on line annotationsVadim Petrochenkov-14/+15
2025-04-08UI tests: add missing diagnostic kinds where possibleVadim Petrochenkov-8/+8
2025-02-10Show diff suggestion format on verbose replacementEsteban Küber-16/+24
``` error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields --> $DIR/attempted-access-non-fatal.rs:7:15 | LL | let _ = 2.l; | ^ | help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix | LL - let _ = 2.l; LL + let _ = 2.0f64; | ```
2025-01-27Add `TooGeneric` variant to `LayoutError` and emit `Unknown` oneFedericoBruzzone-4/+10
- `check-pass` test for a MRE of #135020 - fail test for #135138 - switch to `TooGeneric` for checking CMSE fn signatures - switch to `TooGeneric` for compute `SizeSkeleton` (for transmute) - fix broken tests
2025-01-14Consider more erroneous layouts as LayoutError::ReferencesError to suppress ↵Michael Goulet-0/+88
spurious errors
2024-12-09fix ICE on type error in promotedRalf Jung-6/+0
2024-12-01fix ICE when promoted has layout size overflowRalf Jung-0/+6
2024-11-30add tests for niches in pointersThe 8472-0/+38
2024-08-10Update testsNadrieril-0/+2
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-23/+23
2024-02-01Improve the diagnostics for unused generic parametersLeón Orell Valerian Liehr-3/+3
2024-01-23Remove track_errors entirelyOli Scherer-3/+19
2024-01-02Adjust compiler tests for unused_tuple_struct_fields -> dead_codeJake Goulding-3/+3
2023-11-24Show number in error message even for one errorNilstrieb-6/+6
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-06-08Move tests from `ui/discrim` dirMaybe Waffle-0/+518
2023-05-29Address commentCaio-73/+0
2023-05-24Address commentsCaio-0/+73
2023-05-24Move testsCaio-0/+9
2023-05-15Suppress "erroneous constant used" for constants tainted by errorsTomasz Miąsko-7/+0
When constant evaluation fails because its MIR is tainted by errors, suppress note indicating that erroneous constant was used, since those errors have to be fixed regardless of the constant being used or not.
2023-05-13Encode VariantIdx so we can decode variants in the right orderMichael Goulet-0/+18
2023-05-05improve diagnostics and bless testsBoxy-11/+8
2023-04-20Move test filesCaio-0/+52
2023-04-14Fortify tests againts mir-opts.Camille GILLOT-10/+77
2023-01-11Move /src/test to /testsAlbert Larsan-0/+882