about summary refs log tree commit diff
path: root/src/test/ui/parser/expr-as-stmt.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-248/+0
2022-12-03suggest parenthesis around ExprWithBlock BinOp ExprWithBlockLukas Markeffsky-1/+42
2022-10-05Suggest `.into()` when all other coercion suggestions failMichael Goulet-9/+0
2022-07-07Shorten span for closures.Camille GILLOT-1/+1
2022-06-21Improve suggestion for calling closure on type mismatchMichael Goulet-0/+4
2022-06-16diagnostics: fix trailing spaceklensy-1/+1
2022-02-27Make deref suggestion betterMichael Goulet-0/+5
2022-02-24diagnostic: suggest parens when users want logical ops, but get closuresMichael Howell-1/+81
2021-09-11Rollup merge of #88757 - andrewhickman:master, r=jackh726Jubilee-2/+24
Suggest wapping expr in parentheses on invalid unary negation Fixes #88701
2021-09-06Suggest wapping expr in parentheses on invalid unary negationAndrew Hickman-2/+24
Fixes #88701
2021-09-04Use verbose suggestions and only match if the + is seen before a numeric literalTheodore Luo Wang-4/+4
2021-09-01Add checks for a block before a unary plus. Fix failing testsTheodore Luo Wang-6/+6
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
2021-07-30Use multispan suggestions more oftenEsteban Küber-12/+24
* Use more accurate span for `async move` suggestion * Use more accurate span for deref suggestion * Use `multipart_suggestion` more often
2021-06-20Update rustfix for compiletest.Eric Huss-9/+9
2021-02-21Suggest `return`ing tail expressions that match return typeEsteban Küber-0/+20
Some newcomers are confused by the behavior of tail expressions, interpreting that "leaving out the `;` makes it the return value". To help them go in the right direction, suggest using `return` instead when applicable.
2020-07-22Correctly parse `{} && false` in tail expressionEsteban Küber-10/+2
Fix #74233.
2019-11-18Surround types with backticks in type errorsEsteban Küber-4/+4
2019-11-18Remove E0308 note when primary label has all infoEsteban Küber-12/+0
2019-11-18review comments: tweak prefix stringsEsteban Küber-8/+8
2019-10-24Increase spacing for suggestions in diagnosticsEsteban Küber-0/+1
Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
2019-05-02fix typoEsteban Küber-6/+6
2019-04-30Reword ambigous parse error to fit with the current errorEsteban Küber-4/+4
2019-04-29Add test case for #47287Esteban Küber-1/+13
2019-04-29Identify when a stmt could have been parsed as an exprEsteban Küber-0/+80
There are some expressions that can be parsed as a statement without a trailing semicolon depending on the context, which can lead to confusing errors due to the same looking code being accepted in some places and not others. Identify these cases and suggest enclosing in parenthesis making the parse non-ambiguous without changing the accepted grammar.