about summary refs log tree commit diff
path: root/src/test/ui/span/issue-39018.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-194/+0
2022-12-13Inform 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-13Make some diagnostics not depend on the source of what they reference being ↵Oli Scherer-3/+0
available
2022-07-01Shorten def_span for more items.Camille GILLOT-8/+2
2022-06-16diagnostics: fix trailing spaceklensy-2/+2
2022-01-18Make suggestions verboseNoah Lev-25/+47
2022-01-18Shorten and improve messagesNoah Lev-65/+33
2022-01-12Add line breaks to make message easier to readNoah Lev-7/+21
2022-01-12Split up very long messageNoah Lev-14/+17
This should make it easier to read.
2022-01-12Improve suggestions for type errors with string concatenationNoah 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-05Consider unfulfilled obligations in binop errorsEsteban 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-11Modify structured suggestion outputEsteban 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-02pretty: trim paths of unique symbolsDan 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-17Do not emit note suggesting to implement trait to foreign typeLeSeulArtichaut-4/+0
Update tests Extend to other operations Refractor check in a separate function Fix more tests
2019-12-12Update UI test expectationsLeSeulArtichaut-13/+13
2019-11-18Surround types with backticks in type errorsEsteban Küber-1/+1
2019-11-18Remove E0308 note when primary label has all infoEsteban Küber-3/+0
2019-11-18Specific labels when referring to "expected" and "found" typesEsteban Küber-2/+2
2019-10-24Increase spacing for suggestions in diagnosticsEsteban Küber-0/+10
Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
2019-05-17Account for &String + StringEsteban Küber-2/+2
2019-05-16review commentsEsteban Küber-10/+10
2019-05-16Fix binop spanEsteban Küber-12/+9
2019-05-16Handle more string addition cases with appropriate suggestionsEsteban Küber-2/+141
2019-03-28Add check for when left and right overlap and change span for explanation to ↵hgallagher1993-4/+3
point at operator
2019-03-27Better diagnostic for binary operation on BoxedValueshgallagher1993-6/+16
2018-12-25Remove licensesMark Rousskov-3/+3
2018-07-21Do not suggest using `to_owned()` on `&str += &str`Esteban Küber-6/+2
2018-03-14update testsGuillaume Gomez-1/+1
2018-02-26Fix rebaseVadim Petrochenkov-3/+3
2018-02-26Update UI testsVadim Petrochenkov-1/+1
2018-02-26Update UI testsVadim Petrochenkov-2/+2
2018-02-25Update ui testsGuillaume Gomez-0/+1
2018-02-20Handle custom diagnostic for `&str + String`Esteban Küber-1/+15
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-2/+2
2017-11-16Remove left over dead code from suggestion diagnostic refactoringOliver Schneider-1/+0
2017-10-31rustc_typeck: use subtyping on the LHS of binops.Eduard-Mihai Burtescu-1/+1
2017-07-17Change some helps to suggestionsOliver Schneider-1/+1
2017-07-06Add extra whitespace for suggestionsEsteban Küber-0/+2
2017-07-06Make suggestion include the line numberEsteban 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-02Revert "Change error count messages"Ariel Ben-Yehuda-1/+1
This reverts commit 5558c64f33446225739c1153b43d2e309bb4f50e.
2017-05-24Change error count messagesMichael Kohl-1/+1
See #33525 for details.
2017-04-25Address PR commentsOliver Schneider-3/+4
2017-04-25Simplify a suggestion for str additionOliver Schneider-3/+1
2017-04-25Update affected testsOliver Schneider-3/+3
2017-02-09change span_notes to notes in E0368/E0369Alex Burka-10/+2
2017-01-28Add 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.