fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.7 KiB132 linesraw
1error: assert without any message
2  --> $DIR/missing_assert_message.rs:12:5
3   |
4LL |     assert!(foo());
5   |     ^^^^^^^^^^^^^^
6   |
7   = help: consider describing why the failing assert is problematic
8   = note: `-D clippy::missing-assert-message` implied by `-D warnings`
9   = help: to override `-D warnings` add `#[allow(clippy::missing_assert_message)]`
10
11error: assert without any message
12  --> $DIR/missing_assert_message.rs:14:5
13   |
14LL |     assert_eq!(foo(), foo());
15   |     ^^^^^^^^^^^^^^^^^^^^^^^^
16   |
17   = help: consider describing why the failing assert is problematic
18
19error: assert without any message
20  --> $DIR/missing_assert_message.rs:16:5
21   |
22LL |     assert_ne!(foo(), foo());
23   |     ^^^^^^^^^^^^^^^^^^^^^^^^
24   |
25   = help: consider describing why the failing assert is problematic
26
27error: assert without any message
28  --> $DIR/missing_assert_message.rs:18:5
29   |
30LL |     debug_assert!(foo());
31   |     ^^^^^^^^^^^^^^^^^^^^
32   |
33   = help: consider describing why the failing assert is problematic
34
35error: assert without any message
36  --> $DIR/missing_assert_message.rs:20:5
37   |
38LL |     debug_assert_eq!(foo(), foo());
39   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40   |
41   = help: consider describing why the failing assert is problematic
42
43error: assert without any message
44  --> $DIR/missing_assert_message.rs:22:5
45   |
46LL |     debug_assert_ne!(foo(), foo());
47   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48   |
49   = help: consider describing why the failing assert is problematic
50
51error: assert without any message
52  --> $DIR/missing_assert_message.rs:28:5
53   |
54LL |     assert!(bar!(true));
55   |     ^^^^^^^^^^^^^^^^^^^
56   |
57   = help: consider describing why the failing assert is problematic
58
59error: assert without any message
60  --> $DIR/missing_assert_message.rs:30:5
61   |
62LL |     assert!(bar!(true, false));
63   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
64   |
65   = help: consider describing why the failing assert is problematic
66
67error: assert without any message
68  --> $DIR/missing_assert_message.rs:32:5
69   |
70LL |     assert_eq!(bar!(true), foo());
71   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72   |
73   = help: consider describing why the failing assert is problematic
74
75error: assert without any message
76  --> $DIR/missing_assert_message.rs:34:5
77   |
78LL |     assert_ne!(bar!(true, true), bar!(true));
79   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80   |
81   = help: consider describing why the failing assert is problematic
82
83error: assert without any message
84  --> $DIR/missing_assert_message.rs:40:5
85   |
86LL |     assert!(foo(),);
87   |     ^^^^^^^^^^^^^^^
88   |
89   = help: consider describing why the failing assert is problematic
90
91error: assert without any message
92  --> $DIR/missing_assert_message.rs:42:5
93   |
94LL |     assert_eq!(foo(), foo(),);
95   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
96   |
97   = help: consider describing why the failing assert is problematic
98
99error: assert without any message
100  --> $DIR/missing_assert_message.rs:44:5
101   |
102LL |     assert_ne!(foo(), foo(),);
103   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
104   |
105   = help: consider describing why the failing assert is problematic
106
107error: assert without any message
108  --> $DIR/missing_assert_message.rs:46:5
109   |
110LL |     debug_assert!(foo(),);
111   |     ^^^^^^^^^^^^^^^^^^^^^
112   |
113   = help: consider describing why the failing assert is problematic
114
115error: assert without any message
116  --> $DIR/missing_assert_message.rs:48:5
117   |
118LL |     debug_assert_eq!(foo(), foo(),);
119   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
120   |
121   = help: consider describing why the failing assert is problematic
122
123error: assert without any message
124  --> $DIR/missing_assert_message.rs:50:5
125   |
126LL |     debug_assert_ne!(foo(), foo(),);
127   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128   |
129   = help: consider describing why the failing assert is problematic
130
131error: aborting due to 16 previous errors
132