about summary refs log tree commit diff
path: root/src/test/ui/pattern/usefulness/exhaustive_integer_patterns.stderr
AgeCommit message (Collapse)AuthorLines
2020-11-21Improve integer range testsNadrieril-146/+0
2020-09-20Implement destructuring for all aggregates and for referencesOliver Scherer-1/+7
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-26Show the values and computation that would overflow a const evaluation or ↵Oliver Scherer-19/+19
propagation
2020-06-13Prefer the associated consts for pattern matching errorLzu Tao-14/+14
2020-03-27non-exhastive diagnostic: add note re. scrutinee typeMazdak Farrokhzad-0/+11
2020-01-24Normalise notes with the/isvarkor-2/+2
2019-11-15Add test for failing `try_eval_bits`Nadrieril-1/+7
2019-10-27Gather together usefulness testsNadrieril-0/+123
I took most tests that were testing only for match exhaustiveness, pattern refutability or match arm reachability, and put them in the same test folder.