2017-03-02 09:41:20 +00:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:30:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
30 | (u8 as u32) > 300;
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::invalid-upcast-comparisons` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-03-02 09:41:20 +00:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:31:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
31 | (u8 as i32) > 300;
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-03-02 09:41:20 +00:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:32:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
32 | (u8 as u32) == 300;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2017-03-02 09:41:20 +00:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:33:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
33 | (u8 as i32) == 300;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2017-03-02 09:41:20 +00:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:34:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
34 | 300 < (u8 as u32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-03-02 09:41:20 +00:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:35:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
35 | 300 < (u8 as i32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-03-02 09:41:20 +00:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:36:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
36 | 300 == (u8 as u32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-03-02 09:41:20 +00:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:37:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
37 | 300 == (u8 as i32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-03-02 09:41:20 +00:00
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:39:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
39 | (u8 as u32) <= 300;
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:40:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
40 | (u8 as i32) <= 300;
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:41:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
41 | (u8 as u32) != 300;
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:42:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
42 | (u8 as i32) != 300;
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:43:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
43 | 300 >= (u8 as u32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:44:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
44 | 300 >= (u8 as i32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:45:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
45 | 300 != (u8 as u32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:46:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
46 | 300 != (u8 as i32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:49:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
49 | (u8 as i32) < 0;
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:50:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
50 | -5 != (u8 as i32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:52:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
52 | (u8 as i32) >= 0;
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:53:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
53 | -5 == (u8 as i32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:56:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
56 | 1337 == (u8 as i32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:57:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
57 | 1337 == (u8 as u32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:59:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
59 | 1337 != (u8 as i32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:60:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
60 | 1337 != (u8 as u32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always true
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:74:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
74 | (u8 as i32) > -1;
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:75:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
75 | (u8 as i32) < -1;
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: because of the numeric bounds on `u8` prior to casting, this expression is always false
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/invalid_upcast_comparisons.rs:91:5
|
2017-03-02 09:41:20 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
91 | -5 >= (u8 as i32);
|
2017-03-02 09:41:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-01-16 16:06:27 +00:00
|
|
|
error: aborting due to 27 previous errors
|
|
|
|
|