Remove most usage of hir_ty_to_ty
This commit is contained in:
parent
ddbe110081
commit
01c25a8eb6
15 changed files with 78 additions and 105 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 | ();
|
||||
| ^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue