1 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
2 --> $DIR/absurd-extreme-comparisons.rs:12:5
7 note: lint level defined here
8 --> $DIR/absurd-extreme-comparisons.rs:4:9
10 4 | #![deny(absurd_extreme_comparisons)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = help: because 0 is the minimum value for this type, the case where the two sides are not equal never occurs, consider using u == 0 instead
14 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
15 --> $DIR/absurd-extreme-comparisons.rs:15:5
20 = help: because Z is the minimum value for this type, the case where the two sides are not equal never occurs, consider using u == Z instead
22 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
23 --> $DIR/absurd-extreme-comparisons.rs:18:5
28 = help: because Z is the minimum value for this type, this comparison is always false
30 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
31 --> $DIR/absurd-extreme-comparisons.rs:21:5
36 = help: because Z is the minimum value for this type, the case where the two sides are not equal never occurs, consider using Z == u instead
38 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
39 --> $DIR/absurd-extreme-comparisons.rs:24:5
44 = help: because Z is the minimum value for this type, this comparison is always false
46 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
47 --> $DIR/absurd-extreme-comparisons.rs:27:5
49 27 | u > std::u32::MAX;
52 = help: because std::u32::MAX is the maximum value for this type, this comparison is always false
54 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
55 --> $DIR/absurd-extreme-comparisons.rs:30:5
57 30 | u >= std::u32::MAX;
60 = help: because std::u32::MAX is the maximum value for this type, the case where the two sides are not equal never occurs, consider using u == std::u32::MAX instead
62 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
63 --> $DIR/absurd-extreme-comparisons.rs:33:5
65 33 | std::u32::MAX < u;
68 = help: because std::u32::MAX is the maximum value for this type, this comparison is always false
70 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
71 --> $DIR/absurd-extreme-comparisons.rs:36:5
73 36 | std::u32::MAX <= u;
76 = help: because std::u32::MAX is the maximum value for this type, the case where the two sides are not equal never occurs, consider using std::u32::MAX == u instead
78 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
79 --> $DIR/absurd-extreme-comparisons.rs:40:5
84 = help: because 1-1 is the minimum value for this type, this comparison is always false
86 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
87 --> $DIR/absurd-extreme-comparisons.rs:43:5
92 = help: because !0 is the maximum value for this type, the case where the two sides are not equal never occurs, consider using u == !0 instead
94 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
95 --> $DIR/absurd-extreme-comparisons.rs:46:5
100 = help: because 12 - 2*6 is the minimum value for this type, the case where the two sides are not equal never occurs, consider using u == 12 - 2*6 instead
102 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
103 --> $DIR/absurd-extreme-comparisons.rs:51:5
108 = help: because -127 - 1 is the minimum value for this type, this comparison is always false
110 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
111 --> $DIR/absurd-extreme-comparisons.rs:54:5
113 54 | std::i8::MAX >= i;
116 = help: because std::i8::MAX is the maximum value for this type, this comparison is always true
118 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
119 --> $DIR/absurd-extreme-comparisons.rs:57:5
121 57 | 3-7 < std::i32::MIN;
122 | ^^^^^^^^^^^^^^^^^^^
124 = help: because std::i32::MIN is the minimum value for this type, this comparison is always false
126 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
127 --> $DIR/absurd-extreme-comparisons.rs:62:5
132 = help: because true is the maximum value for this type, the case where the two sides are not equal never occurs, consider using b == true instead
134 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
135 --> $DIR/absurd-extreme-comparisons.rs:65:5
140 = help: because false is the minimum value for this type, this comparison is always false
142 warning: <-comparison of unit values detected. This will always be false
143 --> $DIR/absurd-extreme-comparisons.rs:72:5
148 = note: #[warn(unit_cmp)] on by default
150 error: aborting due to 17 previous errors