about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/assertions_on_constants.stderr
blob: 8f09c8ce9d52aec82b1fb2193ccb6df05dc480ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
error: `assert!(true)` will be optimized out by the compiler
  --> $DIR/assertions_on_constants.rs:9:5
   |
LL |     assert!(true);
   |     ^^^^^^^^^^^^^^
   |
   = note: `-D clippy::assertions-on-constants` implied by `-D warnings`
   = help: remove it
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: `assert!(false)` should probably be replaced
  --> $DIR/assertions_on_constants.rs:10:5
   |
LL |     assert!(false);
   |     ^^^^^^^^^^^^^^^
   |
   = help: use `panic!()` or `unreachable!()`
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: `assert!(true)` will be optimized out by the compiler
  --> $DIR/assertions_on_constants.rs:11:5
   |
LL |     assert!(true, "true message");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: remove it
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: `assert!(false, "false message")` should probably be replaced
  --> $DIR/assertions_on_constants.rs:12:5
   |
LL |     assert!(false, "false message");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: use `panic!("false message")` or `unreachable!("false message")`
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: `assert!(false, msg.to_uppercase())` should probably be replaced
  --> $DIR/assertions_on_constants.rs:15:5
   |
LL |     assert!(false, msg.to_uppercase());
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: use `panic!(msg.to_uppercase())` or `unreachable!(msg.to_uppercase())`
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: `assert!(true)` will be optimized out by the compiler
  --> $DIR/assertions_on_constants.rs:18:5
   |
LL |     assert!(B);
   |     ^^^^^^^^^^^
   |
   = help: remove it
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: `assert!(false)` should probably be replaced
  --> $DIR/assertions_on_constants.rs:21:5
   |
LL |     assert!(C);
   |     ^^^^^^^^^^^
   |
   = help: use `panic!()` or `unreachable!()`
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: `assert!(false, "C message")` should probably be replaced
  --> $DIR/assertions_on_constants.rs:22:5
   |
LL |     assert!(C, "C message");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: use `panic!("C message")` or `unreachable!("C message")`
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: `debug_assert!(true)` will be optimized out by the compiler
  --> $DIR/assertions_on_constants.rs:24:5
   |
LL |     debug_assert!(true);
   |     ^^^^^^^^^^^^^^^^^^^^
   |
   = help: remove it
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 9 previous errors