about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-03-12 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-03-30 21:42:16 +0200
commitb77b219280eb8e511f3ed28bf894ab09fdde1e03 (patch)
tree7c2ab232afd0aa3b053fe446f920432e61995b98 /src
parent563da5248d867e7147b084161bee040a241a7419 (diff)
downloadrust-b77b219280eb8e511f3ed28bf894ab09fdde1e03.tar.gz
rust-b77b219280eb8e511f3ed28bf894ab09fdde1e03.zip
Lint unnamed address comparisons
Diffstat (limited to 'src')
-rw-r--r--src/lintlist/mod.rs16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index 5777e7d90e5..fa51af156ef 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -6,7 +6,7 @@ pub use lint::Lint;
 pub use lint::LINT_LEVELS;
 
 // begin lint list, do not remove this comment, it’s used in `update_lints`
-pub const ALL_LINTS: [Lint; 361] = [
+pub const ALL_LINTS: [Lint; 363] = [
     Lint {
         name: "absurd_extreme_comparisons",
         group: "correctness",
@@ -624,6 +624,13 @@ pub const ALL_LINTS: [Lint; 361] = [
         module: "misc",
     },
     Lint {
+        name: "fn_address_comparisons",
+        group: "correctness",
+        desc: "comparison with an address of a function item",
+        deprecation: None,
+        module: "unnamed_address",
+    },
+    Lint {
         name: "fn_params_excessive_bools",
         group: "pedantic",
         desc: "using too many bools in function parameters",
@@ -2409,6 +2416,13 @@ pub const ALL_LINTS: [Lint; 361] = [
         module: "verbose_file_reads",
     },
     Lint {
+        name: "vtable_address_comparisons",
+        group: "correctness",
+        desc: "comparison with an address of a trait vtable",
+        deprecation: None,
+        module: "unnamed_address",
+    },
+    Lint {
         name: "while_immutable_condition",
         group: "correctness",
         desc: "variables used within while expression are not mutated in the body",