| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-11-21 | Add some tests | Nadrieril | -3/+91 | |
| 2019-11-18 | Surround types with backticks in type errors | Esteban Küber | -7/+7 | |
| 2019-11-18 | Remove E0308 note when primary label has all info | Esteban Küber | -10/+2 | |
| 2019-11-18 | review comments: tweak prefix strings | Esteban Küber | -2/+2 | |
| 2019-11-18 | Specific labels when referring to "expected" and "found" types | Esteban Küber | -11/+11 | |
| 2019-11-18 | Update src/test/ui/pattern/issue-53820-slice-pattern-large-array.rs | Nadrieril Feneanar | -0/+3 | |
| Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> | ||||
| 2019-11-17 | Small improvement to exhaustiveness diagnostics | Nadrieril | -6/+6 | |
| 2019-11-16 | Add regression test for issue 53820 | Nadrieril | -0/+10 | |
| 2019-11-16 | Introduce new FixedLenSlice constructor | Nadrieril | -11/+11 | |
| It is used in the case where a variable-length slice pattern is used to match on an array of known size. This allows considering only those entries in the array that are captured by one of the patterns. As a side-effect, diagnostics improve a bit for those cases. | ||||
| 2019-11-16 | Add some tests | Nadrieril | -23/+49 | |
| 2019-11-15 | Add regression test | Nadrieril | -0/+6 | |
| 2019-11-15 | Apply suggestions from code review | Nadrieril Feneanar | -1/+1 | |
| Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> | ||||
| 2019-11-15 | Add test for failing `try_eval_bits` | Nadrieril | -1/+16 | |
| 2019-11-13 | Tweak non-char/numeric in range pattern diagnostic | Yuki Okushi | -4/+4 | |
| 2019-11-06 | Split slice-patterns test as suggested by Centril | Nadrieril | -89/+109 | |
| 2019-11-05 | Move a few more tests to the usefulness/ folder | Nadrieril | -0/+0 | |
| 2019-11-05 | Use VarLenSlice consistently when splitting constructors | Nadrieril | -21/+21 | |
| The previous behaviour ignored slice lengths above a certain length because it could not do otherwise. We now have VarLenSlice however, that can represent the ignored lengths to make the algorithm more consistent. This does not change the correctness of the algorithm, but makes it easier to reason about. As a nice side-effect, exhaustiveness errors have improved: they now capture all missing lengths instead of only the shortest. | ||||
| 2019-11-05 | Add some test cases | Nadrieril | -1/+31 | |
| 2019-11-05 | Make exhaustiveness error message more consistent for slice patterns | Nadrieril | -11/+11 | |
| This improves error messages by indicating when slices above a certain lengths have not been matched. Previously, we would only report examples of such lengths, but of course never all of them. | ||||
| 2019-11-05 | Don't use max_slice_length when subtracting from VarLenSlice | Nadrieril | -2/+2 | |
| This alters error messages slightly, but that'll be improved later | ||||
| 2019-11-05 | Add some slice-pattern exhaustiveness tests | Nadrieril | -0/+213 | |
| 2019-11-03 | Auto merge of #65759 - tmiasko:ui, r=petrochenkov | bors | -2/+2 | |
| Validate error patterns and error annotation in ui tests when present Previously, when compilation succeeded, neither error patterns nor error annotation would be validated. Additionally, when compilation failed, only error patterns would be validated if both error patterns and error annotation were present. Now both error patterns and error annotation are validated when present, regardless of compilation status. Furthermore, for test that should run, the error patterns are matched against executable output, which is what some of tests already expect to happen, and when #65506 is merged even more ui tests will. Fixes #56277 | ||||
| 2019-11-02 | Update error annotations in tests that successfully compile | Tomasz Miąsko | -2/+2 | |
| Those annotation are silently ignored rather than begin validated against compiler output. Update them before validation is enabled, to avoid test failures. | ||||
| 2019-10-31 | Revert "pre-expansion gate box_patterns" | Eduard-Mihai Burtescu | -2/+0 | |
| This reverts commit 2aff6b36d7ed5c25700669a92b4a43200ee0fe6b. | ||||
| 2019-10-28 | Auto merge of #65421 - estebank:variants, r=petrochenkov | bors | -2/+5 | |
| Point at local similarly named element and tweak references to variants Partially address #65386. | ||||
| 2019-10-27 | Gather together usefulness tests | Nadrieril | -0/+2036 | |
| 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. | ||||
| 2019-10-27 | Point at local similarly named element and tweak references to variants | Esteban Küber | -2/+5 | |
| Point at the span for the definition of ADTs internal to the current crate. Look at the leading char of the ident to determine whether we're expecting a likely fn or any of a fn, a tuple struct or a tuple variant. Turn fn `add_typo_suggestion` into a `Resolver` method. | ||||
| 2019-10-24 | pre-expansion gate box_patterns | Mazdak Farrokhzad | -0/+2 | |
| 2019-09-26 | Adjust & --bless tests due to no longer downgrading NLL errors on 2015. | Mazdak Farrokhzad | -31/+3 | |
| 2019-09-24 | Remove blanket silencing of "type annotation needed" errors | Esteban Küber | -15/+23 | |
| Remove blanket check for existence of other errors before emitting "type annotation needed" errors, and add some eager checks to avoid adding obligations when they refer to types that reference `[type error]` in order to reduce unneded errors. | ||||
| 2019-09-04 | Point at variant on pattern field count mismatch | Esteban Küber | -0/+9 | |
| 2019-07-29 | Add semantic test for rest patterns. | Mazdak Farrokhzad | -0/+270 | |
| 2019-07-29 | Add syntactic test for rest patterns. | Mazdak Farrokhzad | -0/+70 | |
| 2019-07-01 | Auto merge of #61682 - Centril:stabilize-type_alias_enum_variants, ↵ | bors | -43/+0 | |
| r=petrochenkov Stabilize `type_alias_enum_variants` in Rust 1.37.0 Stabilize `#![feature(type_alias_enum_variants)]` which allows type-relative resolution with highest priority to `enum` variants in both expression and pattern contexts. For example, you may now write: ```rust enum Option<T> { None, Some(T), } type OptAlias<T> = Option<T>; fn work_on_alias(x: Option<u8>) -> u8 { match x { OptAlias::Some(y) => y + 1, OptAlias::None => 0, } } ``` Closes https://github.com/rust-lang/rfcs/issues/2218 Closes https://github.com/rust-lang/rust/issues/52118 r? @petrochenkov | ||||
| 2019-06-18 | test: normalize away the line/column info in ui/pattern/const-pat-ice. | Eduard-Mihai Burtescu | -1/+2 | |
| 2019-06-15 | Move type_alias_enum_variants tests to a folder; Strip feature gates. | Mazdak Farrokhzad | -43/+0 | |
| 2019-06-12 | Run `rustfmt --file-lines ...` for changes from previous commits. | Eduard-Mihai Burtescu | -1/+1 | |
| 2019-06-05 | Reblessed tests. | Alexander Regueiro | -1/+1 | |
| 2019-05-25 | Update ui tests | Oliver Scherer | -1/+1 | |
| 2019-05-25 | Make `ConstValue::Slice` solely take `[u8]` and `str` | Oliver Scherer | -18/+6 | |
| 2019-05-21 | Add FAQ for NLL migration | Jethro Beekman | -0/+1 | |
| 2019-05-12 | Change compare mode to use -Zborrowck=mir | Matthew Jasper | -0/+22 | |
| 2019-05-10 | Fix inhabitedness of non-exhaustive variants. | David Wood | -1/+1 | |
| This commit ensures that non-exhaustive variants are considered inhabited when used in extern crates. | ||||
| 2019-04-22 | Fix ICE related to #53708 | Esteban Küber | -1/+1 | |
| 2019-04-22 | Never stop due to errors before borrow checking | Esteban Küber | -1/+20 | |
| 2019-04-18 | hide `--explain` hint if error has no extended info | Andy Russell | -3/+3 | |
| 2019-04-14 | normalize flags and rustc version in ICE repro | Ralf Jung | -2/+4 | |
| 2019-04-14 | fix tests | Ralf Jung | -0/+13 | |
| 2019-03-27 | Better diagnostic for binary operation on BoxedValues | hgallagher1993 | -2/+4 | |
| 2019-03-11 | Update tests | Vadim Petrochenkov | -34/+34 | |
