-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add detection of [Partial]Ord methods in the ambiguous_wide_pointer_comparisons
lint
#121268
Conversation
☔ The latest upstream changes (presumably #119673) made this pull request unmergeable. Please resolve the merge conflicts. |
5a613c9
to
6ebca3c
Compare
@estebank ping. |
r? compiler |
r? @Nadrieril (as discussed privately) |
6ebca3c
to
d4b514f
Compare
I've addressed all the review comments and CI passes; this is ready. @rustbot ready |
Thanks! @bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (af4a5a1): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 669.534s -> 667.985s (-0.23%) |
One secondary regression on incr alongside some improvements even on the same bench, nothing to worry about |
…eril Add support for `NonNull`s in the `ambiguous_wide_ptr_comparisions` lint This PR add support for `NonNull` pointers in the `ambiguous_wide_ptr_comparisions` lint. Fixes rust-lang#121264 r? `@Nadrieril` (since you just reviewed rust-lang#121268, feel free to reassign)
…eril Add support for `NonNull`s in the `ambiguous_wide_ptr_comparisions` lint This PR add support for `NonNull` pointers in the `ambiguous_wide_ptr_comparisions` lint. Fixes rust-lang#121264 r? `@Nadrieril` (since you just reviewed rust-lang#121268, feel free to reassign)
Partially addresses #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
.