| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -194/+0 | |
| 2022-12-13 | Inform the user which trait is meant in the diagnostic itself instead of ↵ | Oli Scherer | -1/+1 | |
| relying on the span making it obvious | ||||
| 2022-12-13 | Make some diagnostics not depend on the source of what they reference being ↵ | Oli Scherer | -3/+0 | |
| available | ||||
| 2022-07-01 | Shorten def_span for more items. | Camille GILLOT | -8/+2 | |
| 2022-06-16 | diagnostics: fix trailing space | klensy | -2/+2 | |
| 2022-01-18 | Make suggestions verbose | Noah Lev | -25/+47 | |
| 2022-01-18 | Shorten and improve messages | Noah Lev | -65/+33 | |
| 2022-01-12 | Add line breaks to make message easier to read | Noah Lev | -7/+21 | |
| 2022-01-12 | Split up very long message | Noah Lev | -14/+17 | |
| This should make it easier to read. | ||||
| 2022-01-12 | Improve suggestions for type errors with string concatenation | Noah Lev | -12/+14 | |
| Now, multipart suggestions are used instead of `span_to_snippet`, which improves code quality, makes the suggestion work even without access to source code, and, most importantly, improves the rendering of the suggestion. | ||||
| 2021-10-05 | Consider unfulfilled obligations in binop errors | Esteban Kuber | -1/+16 | |
| When encountering a binop where the types would have been accepted, if all the predicates had been fulfilled, include information about the predicates and suggest appropriate `#[derive]`s if possible. Point at trait(s) that needs to be `impl`emented. | ||||
| 2021-08-11 | Modify structured suggestion output | Esteban Küber | -10/+10 | |
| * On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span | ||||
| 2020-09-02 | pretty: trim paths of unique symbols | Dan Aloni | -19/+19 | |
| 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-02-17 | Do not emit note suggesting to implement trait to foreign type | LeSeulArtichaut | -4/+0 | |
| Update tests Extend to other operations Refractor check in a separate function Fix more tests | ||||
| 2019-12-12 | Update UI test expectations | LeSeulArtichaut | -13/+13 | |
| 2019-11-18 | Surround types with backticks in type errors | Esteban Küber | -1/+1 | |
| 2019-11-18 | Remove E0308 note when primary label has all info | Esteban Küber | -3/+0 | |
| 2019-11-18 | Specific labels when referring to "expected" and "found" types | Esteban Küber | -2/+2 | |
| 2019-10-24 | Increase spacing for suggestions in diagnostics | Esteban Küber | -0/+10 | |
| Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages. | ||||
| 2019-05-17 | Account for &String + String | Esteban Küber | -2/+2 | |
| 2019-05-16 | review comments | Esteban Küber | -10/+10 | |
| 2019-05-16 | Fix binop span | Esteban Küber | -12/+9 | |
| 2019-05-16 | Handle more string addition cases with appropriate suggestions | Esteban Küber | -2/+141 | |
| 2019-03-28 | Add check for when left and right overlap and change span for explanation to ↵ | hgallagher1993 | -4/+3 | |
| point at operator | ||||
| 2019-03-27 | Better diagnostic for binary operation on BoxedValues | hgallagher1993 | -6/+16 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -3/+3 | |
| 2018-07-21 | Do not suggest using `to_owned()` on `&str += &str` | Esteban Küber | -6/+2 | |
| 2018-03-14 | update tests | Guillaume Gomez | -1/+1 | |
| 2018-02-26 | Fix rebase | Vadim Petrochenkov | -3/+3 | |
| 2018-02-26 | Update UI tests | Vadim Petrochenkov | -1/+1 | |
| 2018-02-26 | Update UI tests | Vadim Petrochenkov | -2/+2 | |
| 2018-02-25 | Update ui tests | Guillaume Gomez | -0/+1 | |
| 2018-02-20 | Handle custom diagnostic for `&str + String` | Esteban Küber | -1/+15 | |
| 2017-11-24 | Merge cfail and ui tests into ui tests | Oliver Schneider | -2/+2 | |
| 2017-11-16 | Remove left over dead code from suggestion diagnostic refactoring | Oliver Schneider | -1/+0 | |
| 2017-10-31 | rustc_typeck: use subtyping on the LHS of binops. | Eduard-Mihai Burtescu | -1/+1 | |
| 2017-07-17 | Change some helps to suggestions | Oliver Schneider | -1/+1 | |
| 2017-07-06 | Add extra whitespace for suggestions | Esteban Küber | -0/+2 | |
| 2017-07-06 | Make suggestion include the line number | Esteban Küber | -1/+1 | |
| When there're more than one suggestions in the same diagnostic, they are displayed in their own block, instead of inline. In order to reduce confusion, those blocks now display the line number. | ||||
| 2017-07-02 | Revert "Change error count messages" | Ariel Ben-Yehuda | -1/+1 | |
| This reverts commit 5558c64f33446225739c1153b43d2e309bb4f50e. | ||||
| 2017-05-24 | Change error count messages | Michael Kohl | -1/+1 | |
| See #33525 for details. | ||||
| 2017-04-25 | Address PR comments | Oliver Schneider | -3/+4 | |
| 2017-04-25 | Simplify a suggestion for str addition | Oliver Schneider | -3/+1 | |
| 2017-04-25 | Update affected tests | Oliver Schneider | -3/+3 | |
| 2017-02-09 | change span_notes to notes in E0368/E0369 | Alex Burka | -10/+2 | |
| 2017-01-28 | Add clearer error message using `&str + &str` | Michael Gattozzi | -0/+28 | |
| This is the first part of #39018. One of the common things for new users coming from more dynamic languages like JavaScript, Python or Ruby is to use `+` to concatenate strings. However, this doesn't work that way in Rust unless the first type is a `String`. This commit adds a check for this use case and outputs a new error as well as a suggestion to guide the user towards the desired behavior. It also adds a new test case to test the output of the error. | ||||
