summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0081.rs
AgeCommit message (Collapse)AuthorLines
2022-08-08Fix plural form of `variant` in error message not formatting correctlyBryysen-2/+7
due to ordering, added/improved comments and removed redundant test already caught by `E0081.rs`
2022-08-07Further improve error message for E0081Bryysen-7/+25
Multiple duplicate assignments of the same discriminant are now reported in the samme error. We now point out the incrementation start point for discriminants that are not explicitly assigned that are also duplicates. Removed old test related to E0081 that is now covered by error-codes/E0081.rs. Also refactored parts of the `check_enum` function.
2022-05-28Improve error message for E0081Bryysen-6/+17
Previously whenever a duplicate discriminant was detected for an Enum, we would print the discriminant bits in the diagnostic without any casting. This caused us to display incorrect values for negative discriminants. After this PR we format the discriminant signedness correctly. Also reworded some of the original error messages.
2021-07-28Show discriminant before overflow in diagnostic.Maarten de Vries-0/+11
2018-12-25Remove licensesMark Rousskov-10/+0
2018-03-08Reduce noise in error reportingOliver Schneider-1/+1
2018-02-08Move some E0XXX to `ui`Esteban Küber-0/+19