rust/src/test/ui/block-result
Zack M. Davis f3e9b1a703 in which the E0618 "expected function" diagnostic gets a makeover
Now the main span focuses on the erroneous not-a-function callee,
while showing the entire call expression is relegated to a secondary
span. In the case where the erroneous callee is itself a call, we
point out the definition, and, if the call expression spans multiple
lines, tentatively suggest a semicolon (because we suspect that the
"outer" call is actually supposed to be a tuple).

The new `bug!` assertion is, in fact, safe (`confirm_builtin_call` is
only called by `check_call`, which is only called with a first arg of
kind `ExprKind::Call` in `check_expr_kind`).

Resolves #51055.
2018-11-10 22:12:33 -08:00
..
block-must-not-have-result-do.rs Move tests to ui 2017-06-23 18:01:38 -07:00
block-must-not-have-result-do.stderr update tests 2018-03-14 00:53:24 +01:00
block-must-not-have-result-res.rs Move tests to ui 2017-06-23 18:01:38 -07:00
block-must-not-have-result-res.stderr update tests 2018-03-14 00:53:24 +01:00
block-must-not-have-result-while.rs Move tests to ui 2017-06-23 18:01:38 -07:00
block-must-not-have-result-while.stderr update tests 2018-03-14 00:53:24 +01:00
consider-removing-last-semi.rs Remove NOTE/HELP annotations from UI tests 2017-12-14 23:26:39 +03:00
consider-removing-last-semi.stderr update tests 2018-03-14 00:53:24 +01:00
issue-3563.rs Merge cfail and ui tests into ui tests 2017-11-24 11:32:35 +01:00
issue-3563.stderr update tests 2018-03-14 00:53:24 +01:00
issue-5500.rs Move tests to ui 2017-06-23 18:01:38 -07:00
issue-5500.stderr update tests 2018-03-14 00:53:24 +01:00
issue-11714.rs Remove NOTE/HELP annotations from UI tests 2017-12-14 23:26:39 +03:00
issue-11714.stderr update tests 2018-03-14 00:53:24 +01:00
issue-13428.rs Remove NOTE/HELP annotations from UI tests 2017-12-14 23:26:39 +03:00
issue-13428.stderr update tests 2018-03-14 00:53:24 +01:00
issue-13624.rs Move tests to ui 2017-06-23 18:01:38 -07:00
issue-13624.stderr update tests 2018-03-14 00:53:24 +01:00
issue-20862.rs Move tests to ui 2017-06-23 18:01:38 -07:00
issue-20862.stderr in which the E0618 "expected function" diagnostic gets a makeover 2018-11-10 22:12:33 -08:00
issue-22645.rs Move tests to ui 2017-06-23 18:01:38 -07:00
issue-22645.stderr update tests 2018-03-14 00:53:24 +01:00
unexpected-return-on-unit.rs fix typos in various places 2018-10-23 15:56:25 +02:00
unexpected-return-on-unit.stderr update tests 2018-03-14 00:53:24 +01:00