rust/tests
Matthias Krüger 108b5f462b
Rollup merge of #106752 - sulami:master, r=estebank
Emit a hint for bad call return types due to generic arguments

When the return type of a function call depends on the type of an argument, e.g.

```
fn foo<T>(x: T) -> T {
    x
}
```

and the expected type is set due to either an explicitly typed binding, or because the call to the function is in a tail position without semicolon, the current error implies that the argument in the call has the wrong type.

This new hint highlights that the expected type doesn't match the returned type, which matches the argument type, and that that's why we're flagging the argument type.

Fixes #43608.
2023-01-14 13:04:26 +01:00
..
assembly
auxiliary
codegen Stabilize abi_efiapi feature 2023-01-11 20:42:13 -05:00
codegen-units
debuginfo
incremental
mir-opt Fix mir-opt tests for big-endian platforms 2023-01-12 18:05:30 +01:00
pretty
run-make
run-make-fulldeps Auto merge of #106092 - asquared31415:start_lang_item_checks, r=davidtwco 2023-01-13 07:45:34 +00:00
run-pass-valgrind
rustdoc Rollup merge of #106819 - notriddle:notriddle/rm-h1-fqn, r=GuillaumeGomez 2023-01-14 12:04:37 +09:00
rustdoc-gui Rollup merge of #106819 - notriddle:notriddle/rm-h1-fqn, r=GuillaumeGomez 2023-01-14 12:04:37 +09:00
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui Rollup merge of #106566 - clubby789:contiguous-weird-unicode, r=cjgillot 2023-01-14 13:04:24 +01:00
ui Rollup merge of #106752 - sulami:master, r=estebank 2023-01-14 13:04:26 +01:00
ui-fulldeps Auto merge of #106004 - fee1-dead-contrib:const-closures, r=oli-obk 2023-01-13 05:04:48 +00:00
COMPILER_TESTS.md