You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/neg_cmp_op_on_partial_ord.stderr
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,27 @@
1
1
error: The use of negated comparision operators on partially orded types produces code that is hard to read and refactor. Please consider to use the `partial_cmp` instead, to make it clear that the two values could be incomparable.
2
-
--> $DIR/neg_cmp_op_on_partial_ord.rs:18:21
2
+
--> $DIR/neg_cmp_op_on_partial_ord.rs:17:21
3
3
|
4
-
18 | let _not_less = !(a_value < another_value);
4
+
17 | let _not_less = !(a_value < another_value);
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D neg-cmp-op-on-partial-ord` implied by `-D warnings`
8
8
9
9
error: The use of negated comparision operators on partially orded types produces code that is hard to read and refactor. Please consider to use the `partial_cmp` instead, to make it clear that the two values could be incomparable.
10
-
--> $DIR/neg_cmp_op_on_partial_ord.rs:21:30
10
+
--> $DIR/neg_cmp_op_on_partial_ord.rs:20:30
11
11
|
12
-
21 | let _not_less_or_equal = !(a_value <= another_value);
12
+
20 | let _not_less_or_equal = !(a_value <= another_value);
13
13
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
14
15
15
error: The use of negated comparision operators on partially orded types produces code that is hard to read and refactor. Please consider to use the `partial_cmp` instead, to make it clear that the two values could be incomparable.
16
-
--> $DIR/neg_cmp_op_on_partial_ord.rs:24:24
16
+
--> $DIR/neg_cmp_op_on_partial_ord.rs:23:24
17
17
|
18
-
24 | let _not_greater = !(a_value > another_value);
18
+
23 | let _not_greater = !(a_value > another_value);
19
19
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
20
20
21
21
error: The use of negated comparision operators on partially orded types produces code that is hard to read and refactor. Please consider to use the `partial_cmp` instead, to make it clear that the two values could be incomparable.
22
-
--> $DIR/neg_cmp_op_on_partial_ord.rs:27:33
22
+
--> $DIR/neg_cmp_op_on_partial_ord.rs:26:33
23
23
|
24
-
27 | let _not_greater_or_equal = !(a_value >= another_value);
24
+
26 | let _not_greater_or_equal = !(a_value >= another_value);
0 commit comments