@@ -2,7 +2,7 @@ error: `assert!(true)` will be optimized out by the compiler
2
2
--> $DIR/assertions_on_constants.rs:11:5
3
3
|
4
4
LL | assert!(true);
5
- | ^^^^^^^^^^^^^^
5
+ | ^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D clippy::assertions-on-constants` implied by `-D warnings`
8
8
= help: remove it
@@ -12,7 +12,7 @@ error: `assert!(false)` should probably be replaced
12
12
--> $DIR/assertions_on_constants.rs:12:5
13
13
|
14
14
LL | assert!(false);
15
- | ^^^^^^^^^^^^^^^
15
+ | ^^^^^^^^^^^^^^
16
16
|
17
17
= help: use `panic!()` or `unreachable!()`
18
18
= 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
21
21
--> $DIR/assertions_on_constants.rs:13:5
22
22
|
23
23
LL | assert!(true, "true message");
24
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25
25
|
26
26
= help: remove it
27
27
= 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
30
30
--> $DIR/assertions_on_constants.rs:14:5
31
31
|
32
32
LL | assert!(false, "false message");
33
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
34
|
35
35
= help: use `panic!("false message")` or `unreachable!("false message")`
36
36
= 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
39
39
--> $DIR/assertions_on_constants.rs:17:5
40
40
|
41
41
LL | assert!(false, msg.to_uppercase());
42
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43
43
|
44
44
= help: use `panic!(msg.to_uppercase())` or `unreachable!(msg.to_uppercase())`
45
45
= 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
48
48
--> $DIR/assertions_on_constants.rs:20:5
49
49
|
50
50
LL | assert!(B);
51
- | ^^^^^^^^^^^
51
+ | ^^^^^^^^^^
52
52
|
53
53
= help: remove it
54
54
= 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
57
57
--> $DIR/assertions_on_constants.rs:23:5
58
58
|
59
59
LL | assert!(C);
60
- | ^^^^^^^^^^^
60
+ | ^^^^^^^^^^
61
61
|
62
62
= help: use `panic!()` or `unreachable!()`
63
63
= 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
66
66
--> $DIR/assertions_on_constants.rs:24:5
67
67
|
68
68
LL | assert!(C, "C message");
69
- | ^^^^^^^^^^^^^^^^^^^^^^^^
69
+ | ^^^^^^^^^^^^^^^^^^^^^^^
70
70
|
71
71
= help: use `panic!("C message")` or `unreachable!("C message")`
72
72
= 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
75
75
--> $DIR/assertions_on_constants.rs:26:5
76
76
|
77
77
LL | debug_assert!(true);
78
- | ^^^^^^^^^^^^^^^^^^^^
78
+ | ^^^^^^^^^^^^^^^^^^^
79
79
|
80
80
= help: remove it
81
81
= note: this error originates in the macro `$crate::assert` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments