@@ -2,7 +2,7 @@ error: `assert!(true)` will be optimized out by the compiler
22 --> $DIR/assertions_on_constants.rs:11:5
33 |
44LL | assert!(true);
5- | ^^^^^^^^^^^^^^
5+ | ^^^^^^^^^^^^^
66 |
77 = note: `-D clippy::assertions-on-constants` implied by `-D warnings`
88 = help: remove it
@@ -12,7 +12,7 @@ error: `assert!(false)` should probably be replaced
1212 --> $DIR/assertions_on_constants.rs:12:5
1313 |
1414LL | assert!(false);
15- | ^^^^^^^^^^^^^^^
15+ | ^^^^^^^^^^^^^^
1616 |
1717 = help: use `panic!()` or `unreachable!()`
1818 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -21,7 +21,7 @@ error: `assert!(true)` will be optimized out by the compiler
2121 --> $DIR/assertions_on_constants.rs:13:5
2222 |
2323LL | assert!(true, "true message");
24- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2525 |
2626 = help: remove it
2727 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -30,7 +30,7 @@ error: `assert!(false, "false message")` should probably be replaced
3030 --> $DIR/assertions_on_constants.rs:14:5
3131 |
3232LL | assert!(false, "false message");
33- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3434 |
3535 = help: use `panic!("false message")` or `unreachable!("false message")`
3636 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -39,7 +39,7 @@ error: `assert!(false, msg.to_uppercase())` should probably be replaced
3939 --> $DIR/assertions_on_constants.rs:17:5
4040 |
4141LL | assert!(false, msg.to_uppercase());
42- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4343 |
4444 = help: use `panic!(msg.to_uppercase())` or `unreachable!(msg.to_uppercase())`
4545 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -48,7 +48,7 @@ error: `assert!(true)` will be optimized out by the compiler
4848 --> $DIR/assertions_on_constants.rs:20:5
4949 |
5050LL | assert!(B);
51- | ^^^^^^^^^^^
51+ | ^^^^^^^^^^
5252 |
5353 = help: remove it
5454 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -57,7 +57,7 @@ error: `assert!(false)` should probably be replaced
5757 --> $DIR/assertions_on_constants.rs:23:5
5858 |
5959LL | assert!(C);
60- | ^^^^^^^^^^^
60+ | ^^^^^^^^^^
6161 |
6262 = help: use `panic!()` or `unreachable!()`
6363 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -66,7 +66,7 @@ error: `assert!(false, "C message")` should probably be replaced
6666 --> $DIR/assertions_on_constants.rs:24:5
6767 |
6868LL | assert!(C, "C message");
69- | ^^^^^^^^^^^^^^^^^^^^^^^^
69+ | ^^^^^^^^^^^^^^^^^^^^^^^
7070 |
7171 = help: use `panic!("C message")` or `unreachable!("C message")`
7272 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -75,7 +75,7 @@ error: `debug_assert!(true)` will be optimized out by the compiler
7575 --> $DIR/assertions_on_constants.rs:26:5
7676 |
7777LL | debug_assert!(true);
78- | ^^^^^^^^^^^^^^^^^^^^
78+ | ^^^^^^^^^^^^^^^^^^^
7979 |
8080 = help: remove it
8181 = note: this error originates in the macro `$crate::assert` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments