Skip to content

Commit

Permalink
Auto merge of #121268 - Urgau:improve_ambi_wide_ptr_cmps, r=Nadrieril
Browse files Browse the repository at this point in the history
Add detection of [Partial]Ord methods in the `ambiguous_wide_pointer_comparisons` lint

Partially addresses rust-lang/rust#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`.
  • Loading branch information
bors committed Mar 29, 2024
2 parents 3a53270 + b901ffb commit 8d829ae
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 8d829ae

Please sign in to comment.