about summary refs log tree commit diff
path: root/src/test/ui/enum-discriminant
AgeCommit message (Collapse)AuthorLines
2021-10-11Add enum_intrinsics_non_enums lintFlying-Toast-0/+3
2021-10-04Stabilize `const_panic`Jacob Pratt-2/+0
2021-09-13enum niche allocation grows toward zero if possibleAndreas Liljeqvist-0/+14
2021-08-30`feature(const_generics)` -> `feature(const_param_types)`lcnr-3/+3
2021-08-30rename const_evaluatable_checked to generic_const_exprsEllen-3/+3
:sparkles:
2021-07-28Stabilize `arbitrary_enum_discriminant`Deadbeef-54/+7
2021-05-01Add help message for unused type paramkadmin-0/+1
2021-01-16Move some tests to more reasonable directories - 2Caio-0/+25
Address comments Update limits
2020-12-26update testsBastian Kauschke-20/+19
2020-10-21Mark `repr128` as `incomplete_features`varkor-0/+36
2020-09-08add tracking issue, fix rebaseBastian Kauschke-1/+1
2020-09-08convert to future compat lintBastian Kauschke-5/+9
2020-09-08make `ConstEvaluatable` more strictBastian Kauschke-2/+11
2020-09-02pretty: trim paths of unique symbolsDan Aloni-1/+1
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-06-28Update testsDylan MacKenzie-1/+0
2020-06-10Migrate to numeric associated constsLzu Tao-9/+9
2020-05-19add test for repr(128) enum derivesBastian Kauschke-0/+17
2020-05-19add tests for enum discriminantsBastian Kauschke-0/+169
2020-05-19update `discriminant_value` usage in testsBastian Kauschke-12/+12
2020-05-02typeck: always expose explicit enum discriminant `AnonConst`s' parent in ↵Eduard-Mihai Burtescu-0/+79
`generics_of`.
2020-02-09--bless --compare-mode=nllMatthias Prechtl-3/+3
2019-11-21Reorganize, bless and add tests for const control flowDylan MacKenzie-0/+112
This creates a new test directory, `ui/consts/control-flow` to hold tests related to control flow in a const context. It also blesses all existing tests with the new error messages, and adds new tests for the `const_if_match` feature.
2019-11-06Rebase falloutOliver Scherer-24/+21
2019-07-09normalize use of backticks in compiler messages for libsyntax/feature_gateSamy Kacimi-3/+3
https://github.com/rust-lang/rust/issues/60532
2019-06-21Implement arbitrary_enum_discriminantJohn Wrenn-0/+225