Remove most usage of hir_ty_to_ty

This commit is contained in:
Alex Macleod 2023-09-20 13:41:20 +00:00
parent ddbe110081
commit 01c25a8eb6
15 changed files with 78 additions and 105 deletions

View file

@ -76,6 +76,7 @@ fn h() -> Vec<u16> {
fn i() -> () {
{
// does not suggest on function with explicit unit return type
();
//~^ ERROR: statement with no effect
}

View file

@ -54,15 +54,13 @@ LL | ControlFlow::Break::<()>(());
| help: did you mean to return it?: `return`
error: statement with no effect
--> $DIR/no_effect_return.rs:79:9
--> $DIR/no_effect_return.rs:80:9
|
LL | ();
| -^^
| |
| help: did you mean to return it?: `return`
| ^^^
error: statement with no effect
--> $DIR/no_effect_return.rs:88:9
--> $DIR/no_effect_return.rs:89:9
|
LL | ();
| ^^^