11warning: irrefutable `if let` pattern
2- --> $DIR/if-let.rs:6:13
2+ --> $DIR/if-let.rs:6:16
33 |
44LL | if let $p = $e $b
5- | ^^^^^^^^^^^^^^ ^^^
5+ | ^^^
66...
77LL | / foo!(a, 1, {
88LL | | println!("irrefutable pattern");
@@ -15,10 +15,10 @@ LL | | });
1515 = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
1616
1717warning: irrefutable `if let` pattern
18- --> $DIR/if-let.rs:6:13
18+ --> $DIR/if-let.rs:6:16
1919 |
2020LL | if let $p = $e $b
21- | ^^^^^^^^^^^^^^ ^^^
21+ | ^^^
2222...
2323LL | / bar!(a, 1, {
2424LL | | println!("irrefutable pattern");
@@ -30,51 +30,37 @@ LL | | });
3030 = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
3131
3232warning: irrefutable `if let` pattern
33- --> $DIR/if-let.rs:26:5
33+ --> $DIR/if-let.rs:26:8
3434 |
35- LL | / if let a = 1 {
36- LL | | println!("irrefutable pattern");
37- LL | | }
38- | |_____^
35+ LL | if let a = 1 {
36+ | ^^^^^^^^^
3937 |
4038 = note: this pattern will always match, so the `if let` is useless
4139 = help: consider replacing the `if let` with a `let`
4240
4341warning: irrefutable `if let` pattern
44- --> $DIR/if-let.rs:30:5
42+ --> $DIR/if-let.rs:30:8
4543 |
46- LL | / if let a = 1 {
47- LL | | println!("irrefutable pattern");
48- LL | | } else if true {
49- LL | | println!("else-if in irrefutable `if let`");
50- LL | | } else {
51- LL | | println!("else in irrefutable `if let`");
52- LL | | }
53- | |_____^
44+ LL | if let a = 1 {
45+ | ^^^^^^^^^
5446 |
5547 = note: this pattern will always match, so the `if let` is useless
5648 = help: consider replacing the `if let` with a `let`
5749
5850warning: irrefutable `if let` pattern
59- --> $DIR/if-let.rs:40:12
51+ --> $DIR/if-let.rs:40:15
6052 |
61- LL | } else if let a = 1 {
62- | ____________^
63- LL | | println!("irrefutable pattern");
64- LL | | }
65- | |_____^
53+ LL | } else if let a = 1 {
54+ | ^^^^^^^^^
6655 |
6756 = note: this pattern will always match, so the `if let` is useless
6857 = help: consider replacing the `if let` with a `let`
6958
7059warning: irrefutable `if let` pattern
71- --> $DIR/if-let.rs:46:12
60+ --> $DIR/if-let.rs:46:15
7261 |
73- LL | } else if let a = 1 {
74- | ____________^
75- LL | | println!("irrefutable pattern");
76- LL | | }
77- | |_____^
62+ LL | } else if let a = 1 {
63+ | ^^^^^^^^^
7864 |
7965 = note: this pattern will always match, so the `if let` is useless
8066 = help: consider replacing the `if let` with a `let`
0 commit comments