11error: `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
33 |
44LL | assert!(true);
55 | ^^^^^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | assert!(true);
99 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
1010
1111error: `assert!(false)` should probably be replaced
12- --> $DIR/assertions_on_constants.rs:10 :5
12+ --> $DIR/assertions_on_constants.rs:12 :5
1313 |
1414LL | assert!(false);
1515 | ^^^^^^^^^^^^^^^
@@ -18,7 +18,7 @@ LL | assert!(false);
1818 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
1919
2020error: `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
2222 |
2323LL | assert!(true, "true message");
2424 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -27,7 +27,7 @@ LL | assert!(true, "true message");
2727 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2828
2929error: `assert!(false, "false message")` should probably be replaced
30- --> $DIR/assertions_on_constants.rs:12 :5
30+ --> $DIR/assertions_on_constants.rs:14 :5
3131 |
3232LL | assert!(false, "false message");
3333 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -36,7 +36,7 @@ LL | assert!(false, "false message");
3636 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
3737
3838error: `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
4040 |
4141LL | assert!(false, msg.to_uppercase());
4242 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -45,7 +45,7 @@ LL | assert!(false, msg.to_uppercase());
4545 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
4646
4747error: `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
4949 |
5050LL | assert!(B);
5151 | ^^^^^^^^^^^
@@ -54,7 +54,7 @@ LL | assert!(B);
5454 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
5555
5656error: `assert!(false)` should probably be replaced
57- --> $DIR/assertions_on_constants.rs:21 :5
57+ --> $DIR/assertions_on_constants.rs:23 :5
5858 |
5959LL | assert!(C);
6060 | ^^^^^^^^^^^
@@ -63,7 +63,7 @@ LL | assert!(C);
6363 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
6464
6565error: `assert!(false, "C message")` should probably be replaced
66- --> $DIR/assertions_on_constants.rs:22 :5
66+ --> $DIR/assertions_on_constants.rs:24 :5
6767 |
6868LL | assert!(C, "C message");
6969 | ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -72,7 +72,7 @@ LL | assert!(C, "C message");
7272 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
7373
7474error: `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
7676 |
7777LL | debug_assert!(true);
7878 | ^^^^^^^^^^^^^^^^^^^^
0 commit comments