| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-09-02 | pretty: trim paths of unique symbols | Dan Aloni | -15/+15 | |
| 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-07-04 | Fix #71977 | Nadrieril | -12/+51 | |
| 2020-06-28 | Update tests | Dylan MacKenzie | -63/+1 | |
| 2020-06-26 | Show the values and computation that would overflow a const evaluation or ↵ | Oliver Scherer | -13/+13 | |
| propagation | ||||
| 2020-06-13 | Prefer the associated consts for pattern matching error | Lzu Tao | -13/+13 | |
| 2020-06-04 | resolve: Sort E0408 errors by Symbol str | Tom Eccles | -13/+13 | |
| Previously errors were sorted by Symbol index instead of the string. The indexes are not the same between architectures because Symbols for architecture extensions (e.g. x86 AVX or RISC-V d) are interned before the source file is parsed. RISC-V's naming of extensions after single letters led to it having errors sorted differently for test cases using single letter variable names. Instead sort the errors by the Symbol string so that it is stable across architectures. | ||||
| 2020-05-10 | Auto merge of #71557 - matthewjasper:mir-asymmetric-or-pattern, r=oli-obk | bors | -0/+51 | |
| Fix ICE for broken or-pattern in async fn closes #71297 | ||||
| 2020-04-29 | Bless tests | Dylan MacKenzie | -17/+2 | |
| 2020-04-19 | Fix ICE for broken or-pattern in async fn | Matthew Jasper | -0/+51 | |
| 2020-03-27 | Rollup merge of #70457 - Centril:non-exhaustive-scrutinee-type, r=estebank | Mazdak Farrokhzad | -0/+5 | |
| non-exhastive diagnostic: add note re. scrutinee type This fixes https://github.com/rust-lang/rust/issues/67259 by adding a note: ``` = note: the matched value is of type &[i32] ``` to non-exhaustive pattern matching errors. r? @varkor @estebank | ||||
| 2020-03-27 | non-exhastive diagnostic: add note re. scrutinee type | Mazdak Farrokhzad | -0/+5 | |
| 2020-03-26 | Add tests based on issue #70372 comments | Amin Arria | -0/+22 | |
| 2020-03-10 | Matrix::push: recursively expand or-patterns | Mazdak Farrokhzad | -0/+43 | |
| 2020-03-08 | Rollup merge of #69599 - Centril:typeck-tweak-wording, r=davidtwco | Mazdak Farrokhzad | -8/+8 | |
| check_binding_alt_eq_ty: improve precision wrt. `if let` Follow up to https://github.com/rust-lang/rust/pull/69452 -- this tweaks the `check_binding_alt_eq_ty` logic wrt. wording so that `if let` doesn't include "in this arm" (because there can only ever be one arm). r? @estebank | ||||
| 2020-03-07 | Rollup merge of #69687 - Centril:bm-inconsistent-wording, r=estebank | Mazdak Farrokhzad | -20/+20 | |
| resolve, inconsistent binding mode: tweak wording Now that we can have e.g. `let Ok(x) | Err(x) = res;`, it's no longer appropriate to refer to "the same *match arm*", so let's tweak the wording. r? @estebank | ||||
| 2020-03-04 | fix tidy error | Matthew Kuo | -1/+2 | |
| 2020-03-04 | test(pattern): harden tests for or-patterns with slice-patterns | Matthew Kuo | -2/+12 | |
| Some of the nested OR paths were being missed | ||||
| 2020-03-04 | test(pattern): add tests for combinations of pattern features | Matthew Kuo | -0/+79 | |
| Reference issue #67311 Tests combinations of the following pattern features: - bindings_after_at - or_patterns - slice_patterns - box_patterns | ||||
| 2020-03-04 | resolve, inconsistent binding mode: tweak wording. | Mazdak Farrokhzad | -20/+20 | |
| 2020-03-01 | check_binding_alt_eq_ty: improve precision wrt. `if let`. | Mazdak Farrokhzad | -8/+8 | |
| 2020-02-25 | improve or-pattern type consistency diagnostics | Mazdak Farrokhzad | -51/+131 | |
| 2020-02-15 | Rollup merge of #68856 - Centril:or-pat-ref-pat, r=matthewjasper | Yuki Okushi | -13/+383 | |
| typeck: clarify def_bm adjustments & add tests for or-patterns Clarify the adjustment algorithm for the expected type / default binding-modes when type checking patterns with more documentation and tweaks that make the algorithm more independent of the pattern forms. Also resolve the FIXME noted for or-patterns by deciding that the current implementation is correct, noting the rationale and adding tests for the current implementation. cc https://github.com/rust-lang/rust/issues/54883 r? @oli-obk @varkor | ||||
| 2020-02-09 | --bless --compare-mode=nll | Matthias Prechtl | -27/+27 | |
| 2020-02-05 | or_patterns: test default binding modes | Mazdak Farrokhzad | -0/+132 | |
| 2020-02-05 | or_patterns: rename previous test | Mazdak Farrokhzad | -22/+22 | |
| 2020-02-05 | or_patterns: harden bindings test | Mazdak Farrokhzad | -7/+245 | |
| 2020-02-05 | or_patterns: add regression test for 68785 | Mazdak Farrokhzad | -0/+14 | |
| 2020-02-03 | Apply suggestions from code review | matthewjasper | -3/+0 | |
| Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> | ||||
| 2020-02-03 | Add more tests for or-patterns | Matthew Jasper | -0/+193 | |
| 2020-02-01 | Basic run-pass tests for or-patterns | Dan Robertson | -0/+151 | |
| Add some basic run-pass ui tests for or-patterns. | ||||
| 2020-02-01 | Update existing tests for or-patterns | Matthew Jasper | -99/+68 | |
| 2020-02-01 | Remove or_patterns from INCOMPLETE_FEATURES | Matthew Jasper | -194/+119 | |
| 2020-01-24 | Normalise notes with the/is | varkor | -1/+1 | |
| 2020-01-18 | slice_patterns: remove gates in tests | Mazdak Farrokhzad | -3/+3 | |
| 2019-12-30 | Blame user type in pat type error. | Mazdak Farrokhzad | -1/+1 | |
| 2019-12-30 | refactor and fix this-expression-has-type note | Mazdak Farrokhzad | -4/+10 | |
| 2019-12-25 | Feature gate or patterns in const contexts | Matthew Jasper | -0/+93 | |
| 2019-12-12 | Update tests | LeSeulArtichaut | -1/+1 | |
| 2019-12-12 | Update UI test expectations | LeSeulArtichaut | -1/+1 | |
| 2019-12-02 | Move recently changed tests to the correct file | Nadrieril | -66/+60 | |
| 2019-12-02 | Lint for redundant branches in or-patterns | Nadrieril | -6/+47 | |
| 2019-12-02 | Add some tests | Nadrieril | -9/+37 | |
| 2019-11-30 | Rollup merge of #66612 - Nadrieril:or-patterns-initial, r=varkor | Mazdak Farrokhzad | -0/+238 | |
| Initial implementation of or-pattern usefulness checking The title says it all. I'd like to request a perf run on that, hopefully this doesn't kill performance too much. cc https://github.com/rust-lang/rust/issues/54883 | ||||
| 2019-11-30 | Apply suggestions from code review | Nadrieril Feneanar | -1/+1 | |
| Co-Authored-By: varkor <github@varkor.com> | ||||
| 2019-11-26 | Move tests to ui, split them and add some | Nadrieril | -0/+238 | |
| 2019-11-21 | Point at type in `let` assignment on type errors | Esteban Küber | -5/+8 | |
| 2019-11-18 | Surround types with backticks in type errors | Esteban Küber | -3/+3 | |
| 2019-11-18 | Remove E0308 note when primary label has all info | Esteban Küber | -12/+0 | |
| 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 | -2/+2 | |
