about summary refs log tree commit diff
path: root/src/test/ui/consts/const_in_pattern
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-744/+0
2022-11-19Use `type_ascribe!` in many UI testsNilstrieb-2/+2
Use it in all UI tests that are about the semantics and not the syntax of type ascription.
2022-10-01bless ui testsMaybe Waffle-7/+7
2022-08-07Fail gracefully when const pattern is not structural match.Camille GILLOT-0/+41
2022-08-03Warn about dead tuple struct fieldsFabian Wolff-1/+1
2021-10-08bless warningsEliza Weisman-0/+1
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2021-09-26Replace `Pat` with a new intermediate representationNadrieril-1/+4
2020-10-21Add a test for #53708Nadrieril-0/+11
This issue was accidentally fixed recently, probably by #70743
2020-10-18Add some testsNadrieril-0/+87
2020-09-24Use correct type in diagnostics againOliver Scherer-5/+5
2020-09-23Deduplicate errors in const to pat conversionOliver Scherer-113/+15
2020-09-20Use precise errors during const to pat conversion instead of a catch-all on ↵Oliver Scherer-44/+24
the main constant
2020-09-02pretty: trim paths of unique symbolsDan Aloni-4/+4
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-08-02fix typosliuzhenyu-1/+1
2020-06-28Update testsDylan MacKenzie-7/+4
2020-06-17Add regression test for #73431Dylan MacKenzie-0/+29
2020-05-02Test associated const default qualifs cross-crateDylan MacKenzie-3/+41
This also tests for the ICE in #71734
2020-04-28TYPE -> TYPE_ASCRIPTIONGDylan MacKenzie-8/+8
2020-04-28Use path to refer to constants in cross-crate pattern testsDylan MacKenzie-10/+9
2020-04-28Add cross-crate const in pattern testsDylan MacKenzie-0/+55
2020-04-28Add branchy `const` in pattern testsDylan MacKenzie-0/+129
2020-04-28FIXME: ignore test that ICEsDylan MacKenzie-0/+4
2020-04-28Add tests from #67088 and the issues mentioned in its descriptionDylan MacKenzie-0/+468