@@ -6,6 +6,7 @@ LL | assert!(true);
6
6
|
7
7
= note: `-D clippy::assertions-on-constants` implied by `-D warnings`
8
8
= help: remove it
9
+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
9
10
10
11
error: `assert!(false)` should probably be replaced
11
12
--> $DIR/assertions_on_constants.rs:10:5
@@ -14,6 +15,7 @@ LL | assert!(false);
14
15
| ^^^^^^^^^^^^^^^
15
16
|
16
17
= help: use `panic!()` or `unreachable!()`
18
+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
17
19
18
20
error: `assert!(true)` will be optimized out by the compiler
19
21
--> $DIR/assertions_on_constants.rs:11:5
@@ -22,6 +24,7 @@ LL | assert!(true, "true message");
22
24
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23
25
|
24
26
= help: remove it
27
+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
25
28
26
29
error: `assert!(false, "false message")` should probably be replaced
27
30
--> $DIR/assertions_on_constants.rs:12:5
@@ -30,6 +33,7 @@ LL | assert!(false, "false message");
30
33
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31
34
|
32
35
= 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)
33
37
34
38
error: `assert!(false, msg.to_uppercase())` should probably be replaced
35
39
--> $DIR/assertions_on_constants.rs:15:5
@@ -38,6 +42,7 @@ LL | assert!(false, msg.to_uppercase());
38
42
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39
43
|
40
44
= 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)
41
46
42
47
error: `assert!(true)` will be optimized out by the compiler
43
48
--> $DIR/assertions_on_constants.rs:18:5
@@ -46,6 +51,7 @@ LL | assert!(B);
46
51
| ^^^^^^^^^^^
47
52
|
48
53
= help: remove it
54
+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
49
55
50
56
error: `assert!(false)` should probably be replaced
51
57
--> $DIR/assertions_on_constants.rs:21:5
@@ -54,6 +60,7 @@ LL | assert!(C);
54
60
| ^^^^^^^^^^^
55
61
|
56
62
= help: use `panic!()` or `unreachable!()`
63
+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
57
64
58
65
error: `assert!(false, "C message")` should probably be replaced
59
66
--> $DIR/assertions_on_constants.rs:22:5
@@ -62,6 +69,7 @@ LL | assert!(C, "C message");
62
69
| ^^^^^^^^^^^^^^^^^^^^^^^^
63
70
|
64
71
= 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)
65
73
66
74
error: `debug_assert!(true)` will be optimized out by the compiler
67
75
--> $DIR/assertions_on_constants.rs:24:5
@@ -70,7 +78,7 @@ LL | debug_assert!(true);
70
78
| ^^^^^^^^^^^^^^^^^^^^
71
79
|
72
80
= 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)
74
82
75
83
error: aborting due to 9 previous errors
76
84
0 commit comments