]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/assertions_on_constants.stderr
Auto merge of #84620 - Dylan-DPC:rollup-wkv97im, r=Dylan-DPC
[rust.git] / src / tools / clippy / tests / ui / assertions_on_constants.stderr
1 error: `assert!(true)` will be optimized out by the compiler
2   --> $DIR/assertions_on_constants.rs:11:5
3    |
4 LL |     assert!(true);
5    |     ^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::assertions-on-constants` implied by `-D warnings`
8    = help: remove it
9    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
10
11 error: `assert!(false)` should probably be replaced
12   --> $DIR/assertions_on_constants.rs:12:5
13    |
14 LL |     assert!(false);
15    |     ^^^^^^^^^^^^^^^
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)
19
20 error: `assert!(true)` will be optimized out by the compiler
21   --> $DIR/assertions_on_constants.rs:13:5
22    |
23 LL |     assert!(true, "true message");
24    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25    |
26    = help: remove it
27    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
28
29 error: `assert!(false, "false message")` should probably be replaced
30   --> $DIR/assertions_on_constants.rs:14:5
31    |
32 LL |     assert!(false, "false message");
33    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34    |
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)
37
38 error: `assert!(false, msg.to_uppercase())` should probably be replaced
39   --> $DIR/assertions_on_constants.rs:17:5
40    |
41 LL |     assert!(false, msg.to_uppercase());
42    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43    |
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)
46
47 error: `assert!(true)` will be optimized out by the compiler
48   --> $DIR/assertions_on_constants.rs:20:5
49    |
50 LL |     assert!(B);
51    |     ^^^^^^^^^^^
52    |
53    = help: remove it
54    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
55
56 error: `assert!(false)` should probably be replaced
57   --> $DIR/assertions_on_constants.rs:23:5
58    |
59 LL |     assert!(C);
60    |     ^^^^^^^^^^^
61    |
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)
64
65 error: `assert!(false, "C message")` should probably be replaced
66   --> $DIR/assertions_on_constants.rs:24:5
67    |
68 LL |     assert!(C, "C message");
69    |     ^^^^^^^^^^^^^^^^^^^^^^^^
70    |
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)
73
74 error: `debug_assert!(true)` will be optimized out by the compiler
75   --> $DIR/assertions_on_constants.rs:26:5
76    |
77 LL |     debug_assert!(true);
78    |     ^^^^^^^^^^^^^^^^^^^^
79    |
80    = help: remove it
81    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
82
83 error: aborting due to 9 previous errors
84