fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.0 KiB36 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   = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
14
15warning: irrefutable while-let pattern
16  --> $DIR/while-let.rs:7:13
17   |
18LL |               while let $p = $e $b
19   |               ^^^^^^^^^^^^^^^^^^^^
20...
21LL | /     bar!(_a, 1, {
22LL | |         println!("irrefutable pattern");
23LL | |     });
24   | |_______- in this macro invocation
25   |
26   = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
27
28warning: irrefutable while-let pattern
29  --> $DIR/while-let.rs:27:5
30   |
31LL | /     while let _a = 1 {
32LL | |         println!("irrefutable pattern");
33LL | |         break;
34LL | |     }
35   | |_____^
36