fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
808 B33 linesraw
1warning: irrefutable while-let pattern
2  --> $DIR/while-let.rs:7:13
3   |
4LL |               while let $p = $e $b
5   |               ^^^^^
6...
7LL | /     foo!(_a, 1, {
8LL | |         println!("irrefutable pattern");
9LL | |     });
10   | |_______- in this macro invocation
11   |
12   = note: `#[warn(irrefutable_let_patterns)]` on by default
13
14warning: irrefutable while-let pattern
15  --> $DIR/while-let.rs:7:13
16   |
17LL |               while let $p = $e $b
18   |               ^^^^^
19...
20LL | /     bar!(_a, 1, {
21LL | |         println!("irrefutable pattern");
22LL | |     });
23   | |_______- in this macro invocation
24
25warning: irrefutable while-let pattern
26  --> $DIR/while-let.rs:25:5
27   |
28LL | /     while let _a = 1 {
29LL | |         println!("irrefutable pattern");
30LL | |         break;
31LL | |     }
32   | |_____^
33