29 lines
1.7 KiB
Plaintext
29 lines
1.7 KiB
Plaintext
|
error: The use of negated comparision operators on partially ordedtypes produces code that is hard to read and refactor. Pleaseconsider to use the partial_cmp() instead, to make it clearthat the two values could be incomparable.
|
||
|
--> $DIR/neg_cmp_op_on_partial_ord.rs:18:21
|
||
|
|
|
||
|
18 | let _not_less = !(a_value < another_value);
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: `-D neg-cmp-op-on-partial-ord` implied by `-D warnings`
|
||
|
|
||
|
error: The use of negated comparision operators on partially ordedtypes produces code that is hard to read and refactor. Pleaseconsider to use the partial_cmp() instead, to make it clearthat the two values could be incomparable.
|
||
|
--> $DIR/neg_cmp_op_on_partial_ord.rs:21:30
|
||
|
|
|
||
|
21 | let _not_less_or_equal = !(a_value <= another_value);
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: The use of negated comparision operators on partially ordedtypes produces code that is hard to read and refactor. Pleaseconsider to use the partial_cmp() instead, to make it clearthat the two values could be incomparable.
|
||
|
--> $DIR/neg_cmp_op_on_partial_ord.rs:24:24
|
||
|
|
|
||
|
24 | let _not_greater = !(a_value > another_value);
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: The use of negated comparision operators on partially ordedtypes produces code that is hard to read and refactor. Pleaseconsider to use the partial_cmp() instead, to make it clearthat the two values could be incomparable.
|
||
|
--> $DIR/neg_cmp_op_on_partial_ord.rs:27:33
|
||
|
|
|
||
|
27 | let _not_greater_or_equal = !(a_value >= another_value);
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: aborting due to 4 previous errors
|
||
|
|