You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR:
- lints more case of raw pointer comparisons
- do not omit the named function to raw pointer conversion before
suggesting
- trigger the `ptr_eq` lint only if `cmp_null` doesn't trigger first, as
this is a more specialized version
- lints against `!=` in addition to `==`
The `ptr_eq` code has been moved from under `operators` to `ptr.rs`, in
order to benefit from factorization.
Fixrust-lang#14337
changelog: [`ptr_eq`]: handle more cases
Example files to reproduce an issue is at https://gist.github.com/tailhook/bbfa10b5b9f3f3084cb1
The error exists both in 0.10 and current master (0.10-1417-g6291955)
Here is a log:
The text was updated successfully, but these errors were encountered: