about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-29 18:23:57 +0000
committerbors <bors@rust-lang.org>2024-03-29 18:23:57 +0000
commitaf4a5a13a15fa0c60e06321077ef452f769b42fd (patch)
tree34fa2676e47438840fbdb8ced2dbf3337452935d /compiler/rustc_trait_selection/src
parent399fa2f6e419fd2c70942c191c2e55814af8d167 (diff)
parentd4b514f982e4214e0f9237c905670b1207ae0c95 (diff)
downloadrust-af4a5a13a15fa0c60e06321077ef452f769b42fd.tar.gz
rust-af4a5a13a15fa0c60e06321077ef452f769b42fd.zip
Auto merge of #121268 - Urgau:improve_ambi_wide_ptr_cmps, r=Nadrieril
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`.
Diffstat (limited to 'compiler/rustc_trait_selection/src')
0 files changed, 0 insertions, 0 deletions