about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBruno BELANYI <bruno@belanyi.fr>2020-10-07 11:54:00 +0200
committerBruno BELANYI <bruno@belanyi.fr>2020-10-07 11:54:09 +0200
commitaa7c42f75668bc514baf0a64f31771353c3af6cb (patch)
tree180f0b076d9c3207c862a1e56fdcf7aad3baae11 /src
parent5bad9175fb363917ffee2c2da7223e96daa2f5ac (diff)
downloadrust-aa7c42f75668bc514baf0a64f31771353c3af6cb.tar.gz
rust-aa7c42f75668bc514baf0a64f31771353c3af6cb.zip
fixup! New lint: Recommend using `ptr::eq` when possible
Add missing modified files.
Diffstat (limited to 'src')
-rw-r--r--src/lintlist/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index 0dba5a71c50..3cba9867600 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -1845,6 +1845,13 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
         module: "ptr",
     },
     Lint {
+        name: "ptr_eq",
+        group: "style",
+        desc: "use `std::ptr::eq` when comparing raw pointers",
+        deprecation: None,
+        module: "ptr_eq",
+    },
+    Lint {
         name: "ptr_offset_with_cast",
         group: "complexity",
         desc: "unneeded pointer offset cast",