2019-04-18 10:05:09 +00:00
|
|
|
error: `assert!(true)` will be optimized out by the compiler
|
2021-02-02 19:24:42 +00:00
|
|
|
--> $DIR/assertions_on_constants.rs:11:5
|
2019-01-09 10:38:38 +00:00
|
|
|
|
|
|
|
|
LL | assert!(true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
2019-01-09 10:38:38 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::assertions-on-constants` implied by `-D warnings`
|
2019-01-09 18:30:47 +00:00
|
|
|
= help: remove it
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-01-09 10:38:38 +00:00
|
|
|
|
2019-04-18 10:05:09 +00:00
|
|
|
error: `assert!(false)` should probably be replaced
|
2021-02-02 19:24:42 +00:00
|
|
|
--> $DIR/assertions_on_constants.rs:12:5
|
2019-01-09 10:38:38 +00:00
|
|
|
|
|
|
|
|
LL | assert!(false);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
2019-01-09 18:30:47 +00:00
|
|
|
|
|
2019-04-18 10:05:09 +00:00
|
|
|
= help: use `panic!()` or `unreachable!()`
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-01-09 18:30:47 +00:00
|
|
|
|
2019-04-18 10:05:09 +00:00
|
|
|
error: `assert!(true)` will be optimized out by the compiler
|
2021-02-02 19:24:42 +00:00
|
|
|
--> $DIR/assertions_on_constants.rs:13:5
|
2019-01-09 18:30:47 +00:00
|
|
|
|
|
|
|
|
LL | assert!(true, "true message");
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-01-09 18:30:47 +00:00
|
|
|
|
|
|
|
|
= help: remove it
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-01-09 18:30:47 +00:00
|
|
|
|
2021-11-04 12:52:36 +00:00
|
|
|
error: `assert!(false, $crate::const_format_args!($($t)+))` should probably be replaced
|
2021-02-02 19:24:42 +00:00
|
|
|
--> $DIR/assertions_on_constants.rs:14:5
|
2019-01-09 18:30:47 +00:00
|
|
|
|
|
|
|
|
LL | assert!(false, "false message");
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-01-09 18:30:47 +00:00
|
|
|
|
|
2021-11-04 12:52:36 +00:00
|
|
|
= help: use `panic!($crate::const_format_args!($($t)+))` or `unreachable!($crate::const_format_args!($($t)+))`
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-10-07 18:40:05 +00:00
|
|
|
|
|
|
|
error: `assert!(true)` will be optimized out by the compiler
|
2021-02-02 19:24:42 +00:00
|
|
|
--> $DIR/assertions_on_constants.rs:20:5
|
2019-10-07 18:40:05 +00:00
|
|
|
|
|
2019-01-09 18:30:47 +00:00
|
|
|
LL | assert!(B);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^
|
2019-01-09 18:30:47 +00:00
|
|
|
|
|
|
|
|
= help: remove it
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-01-09 18:30:47 +00:00
|
|
|
|
2019-04-18 10:05:09 +00:00
|
|
|
error: `assert!(false)` should probably be replaced
|
2021-02-02 19:24:42 +00:00
|
|
|
--> $DIR/assertions_on_constants.rs:23:5
|
2019-01-09 18:30:47 +00:00
|
|
|
|
|
|
|
|
LL | assert!(C);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^
|
2019-01-09 18:30:47 +00:00
|
|
|
|
|
2019-04-18 10:05:09 +00:00
|
|
|
= help: use `panic!()` or `unreachable!()`
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-01-09 10:38:38 +00:00
|
|
|
|
2021-11-04 12:52:36 +00:00
|
|
|
error: `assert!(false, $crate::const_format_args!($($t)+))` should probably be replaced
|
2021-02-02 19:24:42 +00:00
|
|
|
--> $DIR/assertions_on_constants.rs:24:5
|
2019-10-05 14:45:02 +00:00
|
|
|
|
|
|
|
|
LL | assert!(C, "C message");
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2019-10-05 14:45:02 +00:00
|
|
|
|
|
2021-11-04 12:52:36 +00:00
|
|
|
= help: use `panic!($crate::const_format_args!($($t)+))` or `unreachable!($crate::const_format_args!($($t)+))`
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-10-05 14:45:02 +00:00
|
|
|
|
2020-01-20 02:52:58 +00:00
|
|
|
error: `debug_assert!(true)` will be optimized out by the compiler
|
2021-02-02 19:24:42 +00:00
|
|
|
--> $DIR/assertions_on_constants.rs:26:5
|
2019-02-05 18:06:08 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert!(true);
|
2021-10-14 18:28:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2019-02-05 18:06:08 +00:00
|
|
|
|
|
|
|
|
= help: remove it
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `$crate::assert` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-02-05 18:06:08 +00:00
|
|
|
|
2021-11-04 12:52:36 +00:00
|
|
|
error: aborting due to 8 previous errors
|
2019-01-09 10:38:38 +00:00
|
|
|
|