fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.5 KiB42 linesraw
1warning: irrefutable `while let` pattern
2  --> $DIR/while-let-2.rs:7:19
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: this pattern will always match, so the loop will never exit
13   = help: consider instead using a `loop { ... }` with a `let` inside it
14   = note: `#[warn(irrefutable_let_patterns)]` on by default
15   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
16
17warning: irrefutable `while let` pattern
18  --> $DIR/while-let-2.rs:7:19
19   |
20LL |               while let $p = $e $b
21   |                     ^^^
22...
23LL | /     bar!(_a, 1, {
24LL | |         println!("irrefutable pattern");
25LL | |     });
26   | |______- in this macro invocation
27   |
28   = note: this pattern will always match, so the loop will never exit
29   = help: consider instead using a `loop { ... }` with a `let` inside it
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
32warning: irrefutable `while let` pattern
33  --> $DIR/while-let-2.rs:27:11
34   |
35LL |     while let _a = 1 {
36   |           ^^^^^^^^^^
37   |
38   = note: this pattern will always match, so the loop will never exit
39   = help: consider instead using a `loop { ... }` with a `let` inside it
40
41warning: 3 warnings emitted
42