| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-01-19 | When encountering an undefined named lifetime, point to where it can be | Esteban Küber | -0/+2 | |
| This doesn't mention that using an existing lifetime is possible, but that would hopefully be clear as always being an option. The intention of this is to teach newcomers what the lifetime syntax is. | ||||
| 2020-01-08 | Unify output of "variant not found" errors | Esteban Küber | -2/+2 | |
| 2019-12-20 | Rollup merge of #67127 - estebank:disambiguate-suggestion, r=varkor | Mazdak Farrokhzad | -13/+52 | |
| Use structured suggestion for disambiguating method calls Fix #65635. | ||||
| 2019-12-11 | review comments | Esteban Küber | -4/+4 | |
| 2019-12-11 | Use structured suggestion for disambiguating method calls | Esteban Küber | -13/+52 | |
| Fix #65635. | ||||
| 2019-12-11 | Add more context for type parameters | Esteban Küber | -1/+1 | |
| 2019-11-21 | Point at type in `let` assignment on type errors | Esteban Küber | -6/+18 | |
| 2019-11-18 | Surround types with backticks in type errors | Esteban Küber | -13/+13 | |
| 2019-11-18 | Remove E0308 note when primary label has all info | Esteban Küber | -21/+1 | |
| 2019-11-18 | review comments: tweak prefix strings | Esteban Küber | -10/+10 | |
| 2019-11-18 | Specific labels when referring to "expected" and "found" types | Esteban Küber | -8/+8 | |
| 2019-10-28 | Improve the "try using a variant of the expected type" hint. | Patryk Wychowaniec | -12/+12 | |
| 2019-10-27 | Point at local similarly named element and tweak references to variants | Esteban Küber | -15/+15 | |
| 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 | Increase spacing for suggestions in diagnostics | Esteban Küber | -0/+4 | |
| Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages. | ||||
| 2019-09-29 | Rollup merge of #64735 - GuillaumeGomez:long-err-explanation-E0533, r=Centril | Mazdak Farrokhzad | -1/+26 | |
| Add long error explanation for E0533 Part of https://github.com/rust-lang/rust/issues/61137 | ||||
| 2019-09-25 | Update ui tests | Guillaume Gomez | -1/+26 | |
| 2019-09-24 | Remove blanket silencing of "type annotation needed" errors | Esteban Küber | -1/+1 | |
| 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-08 | Give method not found a primary span label | Esteban Küber | -1/+1 | |
| 2019-08-16 | Remove meaningless comments in src/test | sd234678 | -9/+0 | |
| 2019-07-27 | tests: Move run-pass tests without naming conflicts to ui | Vadim Petrochenkov | -0/+733 | |
| 2019-07-24 | Adjust tests for method disambiguation help | Ilija Tovilo | -0/+6 | |
| 2019-07-24 | Add method disambiguation help for trait implementation | Ilija Tovilo | -0/+76 | |
| Closes #51046 Closes #40471 | ||||
| 2019-07-03 | Migrate compile-pass annotations to build-pass | Yuki Okushi | -2/+2 | |
| 2019-06-01 | review comment: tweak wording | Esteban Küber | -3/+3 | |
| 2019-05-31 | Tweak wording | Esteban Küber | -1/+1 | |
| 2019-05-31 | On type inference errors use the type argument name when possible | Esteban Küber | -2/+2 | |
| ``` error[E0282]: type annotations needed in `std::result::Result<i32, E>` --> file7.rs:3:13 | 3 | let b = Ok(4); | - ^^ cannot infer type for `E` in `std::result::Result<i32, E>` | | | consider giving `b` a type` ``` | ||||
| 2019-05-31 | Alternative wording for inference failure | Esteban Küber | -3/+3 | |
| 2019-05-31 | Add more detail to type inference error | Esteban Küber | -3/+3 | |
| When encountering code where type inference fails, add more actionable information: ``` fn main() { let foo = Vec::new(); } ``` ``` error[E0282]: type annotations needed for `std::vec::Vec<_>` --> $DIR/vector-no-ann.rs:2:16 | LL | let foo = Vec::new(); | --- ^^^^^^^^ cannot infer type for `T` | | | consider giving `foo` the type `std::vec::Vec<_>` with the type parameter `T` specified ``` We still need to modify type printing to optionally accept a `TypeVariableTable` in order to properly print `std::vec::Vec<T>`. CC #25633. | ||||
| 2019-05-29 | Update ui test suite to use dyn | memoryruins | -2/+2 | |
| 2019-05-03 | Reword casting message | Esteban Küber | -1/+1 | |
| 2019-04-29 | Suggest try_into when possible | Esteban Küber | -0/+4 | |
| 2019-04-22 | update tests for migrate mode by default | Matthew Jasper | -35/+9 | |
| 2019-04-18 | hide `--explain` hint if error has no extended info | Andy Russell | -6/+5 | |
| 2019-03-11 | Update NLL tests | Vadim Petrochenkov | -2/+2 | |
| 2019-03-11 | Update tests | Vadim Petrochenkov | -23/+23 | |
| 2019-01-29 | add tests to a few edge cases in method lookup | Ariel Ben-Yehuda | -0/+290 | |
| These aren't fixed by this PR, but were broken in a few older attempts at it. Make sure they don't regress. | ||||
| 2019-01-06 | Auto merge of #57291 - euclio:method-call-suggestion, r=estebank | bors | -6/+2 | |
| use structured suggestion for method calls Furthermore, don't suggest calling the method if it is part of a place expression, as this is invalid syntax. I'm thinking it might be worth putting a label on the method assignment span like "this is a method" and removing the span from the "methods are immutable" text so it isn't reported twice. The suggestions in `src/test/ui/did_you_mean/issue-40396.stderr` are suboptimal. I could check if the containing expression is `BinOp`, but I'm not sure if that's general enough. Any ideas? r? @estebank | ||||
| 2019-01-03 | use structured suggestion for method calls | Andy Russell | -6/+2 | |
| Furthermore, don't suggest calling the method if it is part of a place expression, as this is invalid syntax. | ||||
| 2018-12-31 | Improve type mismatch error messages | Yuning Zhang | -2/+2 | |
| Replace "integral variable" with "integer" and replace "floating-point variable" with "floating-point number" to make the message less confusing. | ||||
| 2018-12-25 | Remove licenses | Mark Rousskov | -300/+90 | |
| 2018-12-24 | make non_camel_case_types an early lint | Andy Russell | -12/+12 | |
| 2018-11-07 | Removed `#[rustc_error]` from tests that are all `// compile-pass`. | Felix S. Klock II | -11/+3 | |
| I also added `// skip-codegen` to each one, to address potential concerns that this change would otherwise slow down our test suite spending time generating code for files that are really just meant to be checks of compiler diagnostics. (However, I will say: My preference is to not use `// skip-codegen` if one can avoid it. We can use all the testing of how we drive LLVM that we can get...) (Updated post rebase.) | ||||
| 2018-10-03 | Clearer later use messages for calls | Matthew Jasper | -2/+2 | |
| Give a special message when the later use is from a call. Use the span of the callee instead of the whole expression. For conflicting borrow messages say that the later use is of the first borrow. | ||||
| 2018-08-24 | updates tests to use new error code | Matthew Russo | -6/+5 | |
| 2018-08-20 | Fix diagnostic regression | varkor | -4/+4 | |
| 2018-08-20 | Update new ui tests | varkor | -10/+10 | |
| 2018-08-19 | Fix some remaining tests | varkor | -4/+4 | |
| 2018-08-15 | Updated the most glaring instances of weak tests w.r.t. NLL that came from ↵ | Felix S. Klock II | -3/+33 | |
| #53196. See also the bulletpoint list on #53351. | ||||
| 2018-08-14 | Merged migrated compile-fail tests and ui tests. Fixes #46841. | David Wood | -0/+1442 | |
