]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/absurd-extreme-comparisons.stderr
iterate List by value
[rust.git] / tests / ui / absurd-extreme-comparisons.stderr
index 834bcf03fe1e3a246386e9d8a33884814b5f1513..6de554378aaa97f1d0537bb1b7703ae59b9f46fc 100644 (file)
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:12:5
+  --> $DIR/absurd-extreme-comparisons.rs:14:5
    |
-12 |     u <= 0;
+LL |     u <= 0;
    |     ^^^^^^
    |
-note: lint level defined here
-  --> $DIR/absurd-extreme-comparisons.rs:4:9
-   |
-4  | #![deny(absurd_extreme_comparisons)]
-   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
-   = 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
+   = note: `-D clippy::absurd-extreme-comparisons` implied by `-D warnings`
+   = 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
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
   --> $DIR/absurd-extreme-comparisons.rs:15:5
    |
-15 |     u <= Z;
+LL |     u <= Z;
    |     ^^^^^^
    |
-   = 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
+   = 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
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:18:5
+  --> $DIR/absurd-extreme-comparisons.rs:16:5
    |
-18 |     u < Z;
+LL |     u < Z;
    |     ^^^^^
    |
-   = help: because Z is the minimum value for this type, this comparison is always false
+   = help: because `Z` is the minimum value for this type, this comparison is always false
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:21:5
+  --> $DIR/absurd-extreme-comparisons.rs:17:5
    |
-21 |     Z >= u;
+LL |     Z >= u;
    |     ^^^^^^
    |
-   = 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
+   = 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
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:24:5
+  --> $DIR/absurd-extreme-comparisons.rs:18:5
    |
-24 |     Z > u;
+LL |     Z > u;
    |     ^^^^^
    |
-   = help: because Z is the minimum value for this type, this comparison is always false
+   = help: because `Z` is the minimum value for this type, this comparison is always false
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:27:5
+  --> $DIR/absurd-extreme-comparisons.rs:19:5
    |
-27 |     u > std::u32::MAX;
-   |     ^^^^^^^^^^^^^^^^^
+LL |     u > u32::MAX;
+   |     ^^^^^^^^^^^^
    |
-   = help: because std::u32::MAX is the maximum value for this type, this comparison is always false
+   = help: because `u32::MAX` is the maximum value for this type, this comparison is always false
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:30:5
+  --> $DIR/absurd-extreme-comparisons.rs:20:5
    |
-30 |     u >= std::u32::MAX;
-   |     ^^^^^^^^^^^^^^^^^^
+LL |     u >= u32::MAX;
+   |     ^^^^^^^^^^^^^
    |
-   = 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
+   = help: because `u32::MAX` is the maximum value for this type, the case where the two sides are not equal never occurs, consider using `u == u32::MAX` instead
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:33:5
+  --> $DIR/absurd-extreme-comparisons.rs:21:5
    |
-33 |     std::u32::MAX < u;
-   |     ^^^^^^^^^^^^^^^^^
+LL |     u32::MAX < u;
+   |     ^^^^^^^^^^^^
    |
-   = help: because std::u32::MAX is the maximum value for this type, this comparison is always false
+   = help: because `u32::MAX` is the maximum value for this type, this comparison is always false
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:36:5
+  --> $DIR/absurd-extreme-comparisons.rs:22:5
    |
-36 |     std::u32::MAX <= u;
-   |     ^^^^^^^^^^^^^^^^^^
+LL |     u32::MAX <= u;
+   |     ^^^^^^^^^^^^^
    |
-   = 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
+   = help: because `u32::MAX` is the maximum value for this type, the case where the two sides are not equal never occurs, consider using `u32::MAX == u` instead
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:40:5
+  --> $DIR/absurd-extreme-comparisons.rs:23:5
    |
-40 |     1-1 > u;
+LL |     1-1 > u;
    |     ^^^^^^^
    |
-   = help: because 1-1 is the minimum value for this type, this comparison is always false
+   = help: because `1-1` is the minimum value for this type, this comparison is always false
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:43:5
+  --> $DIR/absurd-extreme-comparisons.rs:24:5
    |
-43 |     u >= !0;
+LL |     u >= !0;
    |     ^^^^^^^
    |
-   = 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
+   = 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
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:46:5
+  --> $DIR/absurd-extreme-comparisons.rs:25:5
    |
-46 |     u <= 12 - 2*6;
+LL |     u <= 12 - 2*6;
    |     ^^^^^^^^^^^^^
    |
-   = 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
+   = 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
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:51:5
+  --> $DIR/absurd-extreme-comparisons.rs:27:5
    |
-51 |     i < -127 - 1;
+LL |     i < -127 - 1;
    |     ^^^^^^^^^^^^
    |
-   = help: because -127 - 1 is the minimum value for this type, this comparison is always false
+   = help: because `-127 - 1` is the minimum value for this type, this comparison is always false
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:54:5
+  --> $DIR/absurd-extreme-comparisons.rs:28:5
    |
-54 |     std::i8::MAX >= i;
-   |     ^^^^^^^^^^^^^^^^^
+LL |     i8::MAX >= i;
+   |     ^^^^^^^^^^^^
    |
-   = help: because std::i8::MAX is the maximum value for this type, this comparison is always true
+   = help: because `i8::MAX` is the maximum value for this type, this comparison is always true
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:57:5
+  --> $DIR/absurd-extreme-comparisons.rs:29:5
    |
-57 |     3-7 < std::i32::MIN;
-   |     ^^^^^^^^^^^^^^^^^^^
+LL |     3-7 < i32::MIN;
+   |     ^^^^^^^^^^^^^^
    |
-   = help: because std::i32::MIN is the minimum value for this type, this comparison is always false
+   = help: because `i32::MIN` is the minimum value for this type, this comparison is always false
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:62:5
+  --> $DIR/absurd-extreme-comparisons.rs:31:5
    |
-62 |     b >= true;
+LL |     b >= true;
    |     ^^^^^^^^^
    |
-   = 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
+   = 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
 
 error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
-  --> $DIR/absurd-extreme-comparisons.rs:65:5
+  --> $DIR/absurd-extreme-comparisons.rs:32:5
    |
-65 |     false > b;
+LL |     false > b;
    |     ^^^^^^^^^
    |
-   = help: because false is the minimum value for this type, this comparison is always false
+   = help: because `false` is the minimum value for this type, this comparison is always false
 
-warning: <-comparison of unit values detected. This will always be false
-  --> $DIR/absurd-extreme-comparisons.rs:72:5
+error: <-comparison of unit values detected. This will always be false
+  --> $DIR/absurd-extreme-comparisons.rs:35:5
    |
-72 |     () < {};
+LL |     () < {};
    |     ^^^^^^^
    |
-   = note: #[warn(unit_cmp)] on by default
+   = note: `#[deny(clippy::unit_cmp)]` on by default
 
-error: aborting due to 17 previous errors
+error: aborting due to 18 previous errors