You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/expr/if/if-let.stderr
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -30,37 +30,37 @@ LL | | });
30
30
= note: this warning originates in the macro `foo` which comes from the expansion of the macro `bar` (in Nightly builds, run with -Z macro-backtrace for more info)
31
31
32
32
warning: irrefutable `if let` pattern
33
-
--> $DIR/if-let.rs:26:8
33
+
--> $DIR/if-let.rs:26:12
34
34
|
35
35
LL | if let a = 1 {
36
-
| ^^^^^^^^^
36
+
| ^
37
37
|
38
38
= note: this pattern will always match, so the `if let` is useless
39
39
= help: consider replacing the `if let` with a `let`
40
40
41
41
warning: irrefutable `if let` pattern
42
-
--> $DIR/if-let.rs:30:8
42
+
--> $DIR/if-let.rs:30:12
43
43
|
44
44
LL | if let a = 1 {
45
-
| ^^^^^^^^^
45
+
| ^
46
46
|
47
47
= note: this pattern will always match, so the `if let` is useless
48
48
= help: consider replacing the `if let` with a `let`
49
49
50
50
warning: irrefutable `if let` pattern
51
-
--> $DIR/if-let.rs:40:15
51
+
--> $DIR/if-let.rs:40:19
52
52
|
53
53
LL | } else if let a = 1 {
54
-
| ^^^^^^^^^
54
+
| ^
55
55
|
56
56
= note: this pattern will always match, so the `if let` is useless
57
57
= help: consider replacing the `if let` with a `let`
58
58
59
59
warning: irrefutable `if let` pattern
60
-
--> $DIR/if-let.rs:46:15
60
+
--> $DIR/if-let.rs:46:19
61
61
|
62
62
LL | } else if let a = 1 {
63
-
| ^^^^^^^^^
63
+
| ^
64
64
|
65
65
= note: this pattern will always match, so the `if let` is useless
66
66
= help: consider replacing the `if let` with a `let`
Copy file name to clipboardExpand all lines: tests/ui/for-loop-while/while-let-2.stderr
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,10 @@ LL | | });
30
30
= note: this warning originates in the macro `foo` which comes from the expansion of the macro `bar` (in Nightly builds, run with -Z macro-backtrace for more info)
31
31
32
32
warning: irrefutable `while let` pattern
33
-
--> $DIR/while-let-2.rs:27:11
33
+
--> $DIR/while-let-2.rs:27:15
34
34
|
35
35
LL | while let _a = 1 {
36
-
| ^^^^^^^^^^
36
+
| ^^
37
37
|
38
38
= note: this pattern will always match, so the loop will never exit
39
39
= help: consider instead using a `loop { ... }` with a `let` inside it
0 commit comments