fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1019 B38 linesraw
1warning: unreachable expression
2  --> $DIR/try-block-unreachable-code-lint.rs:41:9
3   |
4LL |           return;
5   |           ------ any code following this expression is unreachable
6LL | 
7LL | /         try {
8LL | |             loop {
9LL | |                 err()?;
10LL | |             }
11LL | |         }
12   | |_________^ unreachable expression
13   |
14note: the lint level is defined here
15  --> $DIR/try-block-unreachable-code-lint.rs:6:9
16   |
17LL | #![warn(unreachable_code)]
18   |         ^^^^^^^^^^^^^^^^
19
20warning: unreachable call
21  --> $DIR/try-block-unreachable-code-lint.rs:52:9
22   |
23LL |         Err(return)
24   |         ^^^ ------ any code following this expression is unreachable
25   |         |
26   |         unreachable call
27
28warning: unreachable expression
29  --> $DIR/try-block-unreachable-code-lint.rs:63:9
30   |
31LL | /         loop {
32LL | |             err()?;
33LL | |         }
34   | |_________- any code following this expression is unreachable
35LL | 
36LL |           42
37   |           ^^ unreachable expression
38