fork/rust

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

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

master
3.0 KiB93 linesraw
1   LL|       |#![allow(unused_assignments, unused_variables)]
2   LL|       |
3   LL|      1|fn main() {
4   LL|      1|    let mut countdown = 0;
5   LL|      1|    if true {
6   LL|      1|        countdown = 10;
7   LL|      1|    }
8                   ^0
9   LL|       |
10   LL|       |    const B: u32 = 100;
11   LL|      1|    let x = if countdown > 7 {
12   LL|      1|        countdown -= 4;
13   LL|      1|        B
14   LL|      0|    } else if countdown > 2 {
15   LL|      0|        if countdown < 1 || countdown > 5 || countdown != 9 {
16   LL|      0|            countdown = 0;
17   LL|      0|        }
18   LL|      0|        countdown -= 5;
19   LL|      0|        countdown
20   LL|       |    } else {
21   LL|      0|        return;
22   LL|       |    };
23   LL|       |
24   LL|      1|    let mut countdown = 0;
25   LL|      1|    if true {
26   LL|      1|        countdown = 10;
27   LL|      1|    }
28                   ^0
29   LL|       |
30   LL|      1|    if countdown > 7 {
31   LL|      1|        countdown -= 4;
32   LL|      1|    } else if countdown > 2 {
33                            ^0
34   LL|      0|        if countdown < 1 || countdown > 5 || countdown != 9 {
35   LL|      0|            countdown = 0;
36   LL|      0|        }
37   LL|      0|        countdown -= 5;
38   LL|       |    } else {
39   LL|      0|        return;
40   LL|       |    }
41   LL|       |
42   LL|      1|    if true {
43   LL|      1|        let mut countdown = 0;
44   LL|      1|        if true {
45   LL|      1|            countdown = 10;
46   LL|      1|        }
47                       ^0
48   LL|       |
49   LL|      1|        if countdown > 7 {
50   LL|      1|            countdown -= 4;
51   LL|      1|        }
52   LL|      0|        else if countdown > 2 {
53   LL|      0|            if countdown < 1 || countdown > 5 || countdown != 9 {
54   LL|      0|                countdown = 0;
55   LL|      0|            }
56   LL|      0|            countdown -= 5;
57   LL|       |        } else {
58   LL|      0|            return;
59   LL|       |        }
60   LL|      0|    }
61   LL|       |
62   LL|      1|    let mut countdown = 0;
63   LL|      1|    if true {
64   LL|      1|        countdown = 1;
65   LL|      1|    }
66                   ^0
67   LL|       |
68   LL|      1|    let z = if countdown > 7 {
69                      ^0
70   LL|      0|        countdown -= 4;
71   LL|      1|    } else if countdown > 2 {
72   LL|      0|        if countdown < 1 || countdown > 5 || countdown != 9 {
73   LL|      0|            countdown = 0;
74   LL|      0|        }
75   LL|      0|        countdown -= 5;
76   LL|       |    } else {
77   LL|      1|        let should_be_reachable = countdown;
78   LL|      1|        println!("reached");
79   LL|      1|        return;
80   LL|       |    };
81   LL|       |
82   LL|      0|    let w = if countdown > 7 {
83   LL|      0|        countdown -= 4;
84   LL|      0|    } else if countdown > 2 {
85   LL|      0|        if countdown < 1 || countdown > 5 || countdown != 9 {
86   LL|      0|            countdown = 0;
87   LL|      0|        }
88   LL|      0|        countdown -= 5;
89   LL|       |    } else {
90   LL|      0|        return;
91   LL|       |    };
92   LL|      1|}
93