mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
af4a5a13a1
Add detection of [Partial]Ord methods in the `ambiguous_wide_pointer_comparisons` lint Partially addresses https://github.com/rust-lang/rust/issues/121264 by adding diagnostics items for PartialOrd and Ord methods, detecting such diagnostics items as "binary operation" and suggesting the correct replacement. I also took the opportunity to change the suggestion to use new methods `.cast()` on `*mut T` an d `*const T`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |