| 1 | [[disallowed-methods]] |
| 2 | path = "core::cmp::Ord::min" |
| 3 | reason = ''' |
| 4 | too easy to misread `x.min(y)` as "let the minimum value of `x` be `y`" when it actually means the exact opposite; |
| 5 | use `std::cmp::min` instead. |
| 6 | ''' |
| 7 | |
| 8 | [[disallowed-methods]] |
| 9 | path = "core::cmp::Ord::max" |
| 10 | reason = ''' |
| 11 | too easy to misread `x.max(y)` as "let the maximum value of `x` be `y`" when it actually means the exact opposite; |
| 12 | use `std::cmp::max` instead. |
| 13 | ''' |