2018-10-08 14:36:50 -05:00
|
|
|
warning: unused comparison that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:12:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | val == 1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:5:9
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | #![warn(unused_must_use)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused comparison that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:13:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | val < 1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused comparison that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:14:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | val <= 1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused comparison that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:15:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | val != 1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused comparison that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:16:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | val >= 1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused comparison that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:17:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | val > 1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused arithmetic operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:20:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | val + 2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused arithmetic operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:21:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | val - 2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused arithmetic operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:22:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | val / 2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused arithmetic operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:23:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | val * 2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused arithmetic operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:24:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | val % 2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused logical operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:27:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | true && true;
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused logical operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:28:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | false || true;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused bitwise operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:31:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | 5 ^ val;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused bitwise operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:32:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | 5 & val;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused bitwise operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:33:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | 5 | val;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused bitwise operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:34:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | 5 << val;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused bitwise operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:35:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | 5 >> val;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused unary operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:38:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | !val;
|
|
|
|
| ^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused unary operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:39:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | -val;
|
|
|
|
| ^^^^
|
|
|
|
|
2018-10-08 14:36:50 -05:00
|
|
|
warning: unused unary operation that must be used
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/must-use-ops.rs:40:5
|
2018-04-21 17:06:48 -05:00
|
|
|
|
|
|
|
|
LL | *val_pointer;
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|