1
1
error: `assert!(true)` will be optimized out by the compiler
2
- --> $DIR/assertions_on_constants.rs:9 :5
2
+ --> $DIR/assertions_on_constants.rs:11 :5
3
3
|
4
4
LL | assert!(true);
5
5
| ^^^^^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | assert!(true);
9
9
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
10
10
11
11
error: `assert!(false)` should probably be replaced
12
- --> $DIR/assertions_on_constants.rs:10 :5
12
+ --> $DIR/assertions_on_constants.rs:12 :5
13
13
|
14
14
LL | assert!(false);
15
15
| ^^^^^^^^^^^^^^^
@@ -18,7 +18,7 @@ LL | assert!(false);
18
18
= note: this error originates in a macro (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
- --> $DIR/assertions_on_constants.rs:11 :5
21
+ --> $DIR/assertions_on_constants.rs:13 :5
22
22
|
23
23
LL | assert!(true, "true message");
24
24
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -27,7 +27,7 @@ LL | assert!(true, "true message");
27
27
= note: this error originates in a macro (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
- --> $DIR/assertions_on_constants.rs:12 :5
30
+ --> $DIR/assertions_on_constants.rs:14 :5
31
31
|
32
32
LL | assert!(false, "false message");
33
33
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -36,7 +36,7 @@ LL | assert!(false, "false message");
36
36
= note: this error originates in a macro (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
- --> $DIR/assertions_on_constants.rs:15 :5
39
+ --> $DIR/assertions_on_constants.rs:17 :5
40
40
|
41
41
LL | assert!(false, msg.to_uppercase());
42
42
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -45,7 +45,7 @@ LL | assert!(false, msg.to_uppercase());
45
45
= note: this error originates in a macro (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
- --> $DIR/assertions_on_constants.rs:18 :5
48
+ --> $DIR/assertions_on_constants.rs:20 :5
49
49
|
50
50
LL | assert!(B);
51
51
| ^^^^^^^^^^^
@@ -54,7 +54,7 @@ LL | assert!(B);
54
54
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
55
55
56
56
error: `assert!(false)` should probably be replaced
57
- --> $DIR/assertions_on_constants.rs:21 :5
57
+ --> $DIR/assertions_on_constants.rs:23 :5
58
58
|
59
59
LL | assert!(C);
60
60
| ^^^^^^^^^^^
@@ -63,7 +63,7 @@ LL | assert!(C);
63
63
= note: this error originates in a macro (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
- --> $DIR/assertions_on_constants.rs:22 :5
66
+ --> $DIR/assertions_on_constants.rs:24 :5
67
67
|
68
68
LL | assert!(C, "C message");
69
69
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -72,7 +72,7 @@ LL | assert!(C, "C message");
72
72
= note: this error originates in a macro (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
- --> $DIR/assertions_on_constants.rs:24 :5
75
+ --> $DIR/assertions_on_constants.rs:26 :5
76
76
|
77
77
LL | debug_assert!(true);
78
78
| ^^^^^^^^^^^^^^^^^^^^
0 commit comments