-//! This file is managed by util/dev update_lints. Do not edit.
+//! This file is managed by `util/dev update_lints`. Do not edit.
pub mod lint;
+pub use lint::Level;
pub use lint::Lint;
-pub use lint::LintLevel;
pub use lint::LINT_LEVELS;
-pub const ALL_LINTS: [Lint; 304] = [
+// begin lint list, do not remove this comment, it’s used in `update_lints`
+pub const ALL_LINTS: [Lint; 306] = [
Lint {
name: "absurd_extreme_comparisons",
group: "correctness",
deprecation: None,
module: "collapsible_if",
},
- Lint {
- name: "const_static_lifetime",
- group: "style",
- desc: "Using explicit `\'static` lifetime for constants when elision rules would allow omitting them.",
- deprecation: None,
- module: "const_static_lifetime",
- },
Lint {
name: "copy_iterator",
group: "pedantic",
deprecation: None,
module: "arithmetic",
},
+ Lint {
+ name: "integer_division",
+ group: "restriction",
+ desc: "integer division may cause loss of precision",
+ deprecation: None,
+ module: "integer_division",
+ },
Lint {
name: "into_iter_on_array",
group: "correctness",
deprecation: None,
module: "redundant_pattern_matching",
},
+ Lint {
+ name: "redundant_static_lifetimes",
+ group: "style",
+ desc: "Using explicit `\'static` lifetime for constants or statics when elision rules would allow omitting them.",
+ deprecation: None,
+ module: "redundant_static_lifetimes",
+ },
Lint {
name: "ref_in_deref",
group: "complexity",
deprecation: None,
module: "trivially_copy_pass_by_ref",
},
+ Lint {
+ name: "try_err",
+ group: "style",
+ desc: "return errors explicitly rather than hiding them behind a `?`",
+ deprecation: None,
+ module: "try_err",
+ },
Lint {
name: "type_complexity",
group: "complexity",
module: "unicode",
},
];
+// end lint list, do not remove this comment, it’s used in `update_lints`