2019-04-18 05:05:09 -05:00
|
|
|
error: `assert!(true)` will be optimized out by the compiler
|
2022-01-13 06:18:19 -06:00
|
|
|
--> $DIR/assertions_on_constants.rs:10:5
|
2019-01-09 04:38:38 -06:00
|
|
|
|
|
|
|
|
LL | assert!(true);
|
2021-10-14 13:28:30 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
2019-01-09 04:38:38 -06:00
|
|
|
|
|
2019-01-09 12:30:47 -06:00
|
|
|
= help: remove it
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::assertions-on-constants` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::assertions_on_constants)]`
|
2019-01-09 04:38:38 -06:00
|
|
|
|
2019-04-18 05:05:09 -05:00
|
|
|
error: `assert!(false)` should probably be replaced
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/assertions_on_constants.rs:12:5
|
2019-01-09 04:38:38 -06:00
|
|
|
|
|
|
|
|
LL | assert!(false);
|
2021-10-14 13:28:30 -05:00
|
|
|
| ^^^^^^^^^^^^^^
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
2019-04-18 05:05:09 -05:00
|
|
|
= help: use `panic!()` or `unreachable!()`
|
2019-01-09 12:30:47 -06:00
|
|
|
|
2019-04-18 05:05:09 -05:00
|
|
|
error: `assert!(true)` will be optimized out by the compiler
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/assertions_on_constants.rs:14:5
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
|
|
|
LL | assert!(true, "true message");
|
2021-10-14 13:28:30 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
|
|
|
= help: remove it
|
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
error: `assert!(false, ..)` should probably be replaced
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/assertions_on_constants.rs:16:5
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
|
|
|
LL | assert!(false, "false message");
|
2021-10-14 13:28:30 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
= help: use `panic!(..)` or `unreachable!(..)`
|
|
|
|
|
|
|
|
error: `assert!(false, ..)` should probably be replaced
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/assertions_on_constants.rs:20:5
|
2022-01-13 06:18:19 -06:00
|
|
|
|
|
|
|
|
LL | assert!(false, "{}", msg.to_uppercase());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `panic!(..)` or `unreachable!(..)`
|
2019-10-07 13:40:05 -05:00
|
|
|
|
|
|
|
error: `assert!(true)` will be optimized out by the compiler
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/assertions_on_constants.rs:24:5
|
2019-10-07 13:40:05 -05:00
|
|
|
|
|
2019-01-09 12:30:47 -06:00
|
|
|
LL | assert!(B);
|
2021-10-14 13:28:30 -05:00
|
|
|
| ^^^^^^^^^^
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
|
|
|
= help: remove it
|
|
|
|
|
2019-04-18 05:05:09 -05:00
|
|
|
error: `assert!(false)` should probably be replaced
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/assertions_on_constants.rs:28:5
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
|
|
|
LL | assert!(C);
|
2021-10-14 13:28:30 -05:00
|
|
|
| ^^^^^^^^^^
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
2019-04-18 05:05:09 -05:00
|
|
|
= help: use `panic!()` or `unreachable!()`
|
2019-01-09 04:38:38 -06:00
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
error: `assert!(false, ..)` should probably be replaced
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/assertions_on_constants.rs:30:5
|
2019-10-05 09:45:02 -05:00
|
|
|
|
|
|
|
|
LL | assert!(C, "C message");
|
2021-10-14 13:28:30 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2019-10-05 09:45:02 -05:00
|
|
|
|
|
2022-01-13 06:18:19 -06:00
|
|
|
= help: use `panic!(..)` or `unreachable!(..)`
|
2019-10-05 09:45:02 -05:00
|
|
|
|
2020-01-19 20:52:58 -06:00
|
|
|
error: `debug_assert!(true)` will be optimized out by the compiler
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/assertions_on_constants.rs:33:5
|
2019-02-05 12:06:08 -06:00
|
|
|
|
|
|
|
|
LL | debug_assert!(true);
|
2021-10-14 13:28:30 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2019-02-05 12:06:08 -06:00
|
|
|
|
|
|
|
|
= help: remove it
|
|
|
|
|
2023-12-15 13:52:38 -06:00
|
|
|
error: `assert!(true)` will be optimized out by the compiler
|
|
|
|
--> $DIR/assertions_on_constants.rs:49:19
|
|
|
|
|
|
|
|
|
LL | const _: () = assert!(true);
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove it
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
2019-01-09 04:38:38 -06:00
|
|
|
|