@@ -6,7 +6,7 @@ LL | assert!(true);
66 |
77 = note: `-D clippy::assertions-on-constants` implied by `-D warnings`
88 = help: remove it
9- = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
9+ = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
1010
1111error: `assert!(false)` should probably be replaced
1212 --> $DIR/assertions_on_constants.rs:12:5
@@ -15,7 +15,7 @@ LL | assert!(false);
1515 | ^^^^^^^^^^^^^^^
1616 |
1717 = help: use `panic!()` or `unreachable!()`
18- = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
18+ = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
1919
2020error: `assert!(true)` will be optimized out by the compiler
2121 --> $DIR/assertions_on_constants.rs:13:5
@@ -24,7 +24,7 @@ LL | assert!(true, "true message");
2424 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2525 |
2626 = help: remove it
27- = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
27+ = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
2828
2929error: `assert!(false, "false message")` should probably be replaced
3030 --> $DIR/assertions_on_constants.rs:14:5
@@ -33,7 +33,7 @@ LL | assert!(false, "false message");
3333 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3434 |
3535 = help: use `panic!("false message")` or `unreachable!("false message")`
36- = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
36+ = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
3737
3838error: `assert!(false, msg.to_uppercase())` should probably be replaced
3939 --> $DIR/assertions_on_constants.rs:17:5
@@ -42,7 +42,7 @@ LL | assert!(false, msg.to_uppercase());
4242 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4343 |
4444 = help: use `panic!(msg.to_uppercase())` or `unreachable!(msg.to_uppercase())`
45- = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
45+ = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
4646
4747error: `assert!(true)` will be optimized out by the compiler
4848 --> $DIR/assertions_on_constants.rs:20:5
@@ -51,7 +51,7 @@ LL | assert!(B);
5151 | ^^^^^^^^^^^
5252 |
5353 = help: remove it
54- = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
54+ = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
5555
5656error: `assert!(false)` should probably be replaced
5757 --> $DIR/assertions_on_constants.rs:23:5
@@ -60,7 +60,7 @@ LL | assert!(C);
6060 | ^^^^^^^^^^^
6161 |
6262 = help: use `panic!()` or `unreachable!()`
63- = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
63+ = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
6464
6565error: `assert!(false, "C message")` should probably be replaced
6666 --> $DIR/assertions_on_constants.rs:24:5
@@ -69,7 +69,7 @@ LL | assert!(C, "C message");
6969 | ^^^^^^^^^^^^^^^^^^^^^^^^
7070 |
7171 = help: use `panic!("C message")` or `unreachable!("C message")`
72- = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
72+ = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
7373
7474error: `debug_assert!(true)` will be optimized out by the compiler
7575 --> $DIR/assertions_on_constants.rs:26:5
@@ -78,7 +78,7 @@ LL | debug_assert!(true);
7878 | ^^^^^^^^^^^^^^^^^^^^
7979 |
8080 = help: remove it
81- = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
81+ = note: this error originates in the macro `$crate::assert` (in Nightly builds, run with -Z macro-backtrace for more info)
8282
8383error: aborting due to 9 previous errors
8484
0 commit comments