2019-04-18 05:05:09 -05:00
|
|
|
error: `assert!(true)` will be optimized out by the compiler
|
2019-02-05 12:06:08 -06:00
|
|
|
--> $DIR/assertions_on_constants.rs:9:5
|
2019-01-09 04:38:38 -06:00
|
|
|
|
|
|
|
|
LL | assert!(true);
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::assertions-on-constants` implied by `-D warnings`
|
2019-01-09 12:30:47 -06:00
|
|
|
= help: remove it
|
2020-02-06 21:34:06 -06:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-01-09 04:38:38 -06:00
|
|
|
|
2019-04-18 05:05:09 -05:00
|
|
|
error: `assert!(false)` should probably be replaced
|
2019-02-05 12:06:08 -06:00
|
|
|
--> $DIR/assertions_on_constants.rs:10:5
|
2019-01-09 04:38:38 -06:00
|
|
|
|
|
|
|
|
LL | assert!(false);
|
2019-01-09 12:30:47 -06:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-04-18 05:05:09 -05:00
|
|
|
= help: use `panic!()` or `unreachable!()`
|
2020-02-06 21:34:06 -06:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
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
|
2019-02-05 12:06:08 -06:00
|
|
|
--> $DIR/assertions_on_constants.rs:11:5
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
|
|
|
LL | assert!(true, "true message");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove it
|
2020-02-06 21:34:06 -06:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-01-09 12:30:47 -06:00
|
|
|
|
2019-10-05 09:45:02 -05:00
|
|
|
error: `assert!(false, "false message")` should probably be replaced
|
2019-02-05 12:06:08 -06:00
|
|
|
--> $DIR/assertions_on_constants.rs:12:5
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
|
|
|
LL | assert!(false, "false message");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-10-05 09:45:02 -05:00
|
|
|
= help: use `panic!("false message")` or `unreachable!("false message")`
|
2020-02-06 21:34:06 -06:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-01-09 12:30:47 -06:00
|
|
|
|
2019-10-07 13:40:05 -05:00
|
|
|
error: `assert!(false, msg.to_uppercase())` should probably be replaced
|
2019-02-05 12:06:08 -06:00
|
|
|
--> $DIR/assertions_on_constants.rs:15:5
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
2019-10-07 13:40:05 -05:00
|
|
|
LL | assert!(false, msg.to_uppercase());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `panic!(msg.to_uppercase())` or `unreachable!(msg.to_uppercase())`
|
2020-02-06 21:34:06 -06:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-10-07 13:40:05 -05:00
|
|
|
|
|
|
|
error: `assert!(true)` will be optimized out by the compiler
|
|
|
|
--> $DIR/assertions_on_constants.rs:18:5
|
|
|
|
|
|
2019-01-09 12:30:47 -06:00
|
|
|
LL | assert!(B);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove it
|
2020-02-06 21:34:06 -06:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-01-09 12:30:47 -06:00
|
|
|
|
2019-04-18 05:05:09 -05:00
|
|
|
error: `assert!(false)` should probably be replaced
|
2019-10-07 13:40:05 -05:00
|
|
|
--> $DIR/assertions_on_constants.rs:21:5
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
|
|
|
LL | assert!(C);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
2019-04-18 05:05:09 -05:00
|
|
|
= help: use `panic!()` or `unreachable!()`
|
2020-02-06 21:34:06 -06:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-01-09 04:38:38 -06:00
|
|
|
|
2019-10-05 09:45:02 -05:00
|
|
|
error: `assert!(false, "C message")` should probably be replaced
|
2019-10-07 13:40:05 -05:00
|
|
|
--> $DIR/assertions_on_constants.rs:22:5
|
2019-10-05 09:45:02 -05:00
|
|
|
|
|
|
|
|
LL | assert!(C, "C message");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use `panic!("C message")` or `unreachable!("C message")`
|
2020-02-06 21:34:06 -06:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
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
|
2019-10-07 13:40:05 -05:00
|
|
|
--> $DIR/assertions_on_constants.rs:24:5
|
2019-02-05 12:06:08 -06:00
|
|
|
|
|
|
|
|
LL | debug_assert!(true);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove it
|
2020-02-06 21:34:06 -06:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-02-05 12:06:08 -06:00
|
|
|
|
2019-10-07 13:40:05 -05:00
|
|
|
error: aborting due to 9 previous errors
|
2019-01-09 04:38:38 -06:00
|
|
|
|