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