Lint unnamed address comparisons

This commit is contained in:
Tomasz Miąsko
2020-03-12 00:00:00 +00:00
parent 563da5248d
commit b77b219280
10 changed files with 323 additions and 2 deletions
+15 -1
View File
@@ -6,7 +6,7 @@
pub use lint::LINT_LEVELS;
// begin lint list, do not remove this comment, its used in `update_lints`
pub const ALL_LINTS: [Lint; 361] = [
pub const ALL_LINTS: [Lint; 363] = [
Lint {
name: "absurd_extreme_comparisons",
group: "correctness",
@@ -623,6 +623,13 @@
deprecation: None,
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",
@@ -2408,6 +2415,13 @@
deprecation: None,
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",