]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/neg_cmp_op_on_partial_ord.stderr
Fix `unnecessary_cast` suggestion when taking a reference
[rust.git] / tests / ui / neg_cmp_op_on_partial_ord.stderr
index ee0f9af6f9557270319bbf366895444e27fab613..c78560007217df78dd4f78a65810cb4956cabfef 100644 (file)
@@ -1,27 +1,27 @@
-error: The use of negated comparison operators on partially ordered types produces code that is hard to read and refactor. Please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable.
-  --> $DIR/neg_cmp_op_on_partial_ord.rs:24:21
+error: the use of negated comparison operators on partially ordered types produces code that is hard to read and refactor, please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable
+  --> $DIR/neg_cmp_op_on_partial_ord.rs:16:21
    |
-24 |     let _not_less = !(a_value < another_value);
+LL |     let _not_less = !(a_value < another_value);
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `-D clippy::neg-cmp-op-on-partial-ord` implied by `-D warnings`
 
-error: The use of negated comparison operators on partially ordered types produces code that is hard to read and refactor. Please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable.
-  --> $DIR/neg_cmp_op_on_partial_ord.rs:27:30
+error: the use of negated comparison operators on partially ordered types produces code that is hard to read and refactor, please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable
+  --> $DIR/neg_cmp_op_on_partial_ord.rs:19:30
    |
-27 |     let _not_less_or_equal = !(a_value <= another_value);
+LL |     let _not_less_or_equal = !(a_value <= another_value);
    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-error: The use of negated comparison operators on partially ordered types produces code that is hard to read and refactor. Please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable.
-  --> $DIR/neg_cmp_op_on_partial_ord.rs:30:24
+error: the use of negated comparison operators on partially ordered types produces code that is hard to read and refactor, please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable
+  --> $DIR/neg_cmp_op_on_partial_ord.rs:22:24
    |
-30 |     let _not_greater = !(a_value > another_value);
+LL |     let _not_greater = !(a_value > another_value);
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-error: The use of negated comparison operators on partially ordered types produces code that is hard to read and refactor. Please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable.
-  --> $DIR/neg_cmp_op_on_partial_ord.rs:33:33
+error: the use of negated comparison operators on partially ordered types produces code that is hard to read and refactor, please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable
+  --> $DIR/neg_cmp_op_on_partial_ord.rs:25:33
    |
-33 |     let _not_greater_or_equal = !(a_value >= another_value);
+LL |     let _not_greater_or_equal = !(a_value >= another_value);
    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to 4 previous errors