@@ -6,6 +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)
910
1011error: `assert!(false)` should probably be replaced
1112 --> $DIR/assertions_on_constants.rs:10:5
@@ -14,6 +15,7 @@ LL | assert!(false);
1415 | ^^^^^^^^^^^^^^^
1516 |
1617 = help: use `panic!()` or `unreachable!()`
18+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
1719
1820error: `assert!(true)` will be optimized out by the compiler
1921 --> $DIR/assertions_on_constants.rs:11:5
@@ -22,6 +24,7 @@ LL | assert!(true, "true message");
2224 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2325 |
2426 = help: remove it
27+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2528
2629error: `assert!(false, "false message")` should probably be replaced
2730 --> $DIR/assertions_on_constants.rs:12:5
@@ -30,6 +33,7 @@ LL | assert!(false, "false message");
3033 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3134 |
3235 = 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)
3337
3438error: `assert!(false, msg.to_uppercase())` should probably be replaced
3539 --> $DIR/assertions_on_constants.rs:15:5
@@ -38,6 +42,7 @@ LL | assert!(false, msg.to_uppercase());
3842 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3943 |
4044 = 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)
4146
4247error: `assert!(true)` will be optimized out by the compiler
4348 --> $DIR/assertions_on_constants.rs:18:5
@@ -46,6 +51,7 @@ LL | assert!(B);
4651 | ^^^^^^^^^^^
4752 |
4853 = help: remove it
54+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
4955
5056error: `assert!(false)` should probably be replaced
5157 --> $DIR/assertions_on_constants.rs:21:5
@@ -54,6 +60,7 @@ LL | assert!(C);
5460 | ^^^^^^^^^^^
5561 |
5662 = help: use `panic!()` or `unreachable!()`
63+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
5764
5865error: `assert!(false, "C message")` should probably be replaced
5966 --> $DIR/assertions_on_constants.rs:22:5
@@ -62,6 +69,7 @@ LL | assert!(C, "C message");
6269 | ^^^^^^^^^^^^^^^^^^^^^^^^
6370 |
6471 = 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)
6573
6674error: `debug_assert!(true)` will be optimized out by the compiler
6775 --> $DIR/assertions_on_constants.rs:24:5
@@ -70,7 +78,7 @@ LL | debug_assert!(true);
7078 | ^^^^^^^^^^^^^^^^^^^^
7179 |
7280 = help: remove it
73- = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external- macro-backtrace for more info)
81+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
7482
7583error: aborting due to 9 previous errors
7684
0 commit comments