rust/src/test/ui/block-result
Esteban Küber d669882f38 Do not suggest `;` if expression is side effect free
When a tail expression isn't unit, we previously always suggested adding
a trailing `;` to turn it into a statement. This suggestion isn't
appropriate for any expression that doesn't have side-effects, as the
user will have likely wanted to call something else or do something with
the resulting value, instead of just discarding it.
2021-02-21 16:34:37 -08:00
..
block-must-not-have-result-do.rs Remove licenses 2018-12-25 21:08:33 -07:00
block-must-not-have-result-do.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
block-must-not-have-result-res.rs Remove licenses 2018-12-25 21:08:33 -07:00
block-must-not-have-result-res.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
block-must-not-have-result-while.rs Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
block-must-not-have-result-while.stderr Do not suggest `;` if expression is side effect free 2021-02-21 16:34:37 -08:00
consider-removing-last-semi.fixed Audit uses of `span_suggestion_short` 2020-07-02 15:18:33 +09:00
consider-removing-last-semi.rs Audit uses of `span_suggestion_short` 2020-07-02 15:18:33 +09:00
consider-removing-last-semi.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
issue-3563.rs Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
issue-3563.stderr update tests 2020-03-12 15:47:36 -05:00
issue-5500.rs Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
issue-5500.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
issue-11714.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-11714.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
issue-13428.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-13428.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
issue-13624.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
issue-13624.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
issue-20862.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-20862.stderr pretty.rs: Update Closure and Generator print 2020-09-28 01:27:19 -04:00
issue-22645.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-22645.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
unexpected-return-on-unit.rs Remove licenses 2018-12-25 21:08:33 -07:00
unexpected-return-on-unit.stderr reword `;` suggestions to have consistent wording 2021-02-21 16:27:29 -08:00