Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #22086 from rust-lang/ci/gen-lints
Update generated lints
Chayim Refael Friedman 5 weeks ago
parent 45f4cbc · parent 49cc236 · commit fba71bb
-rw-r--r--crates/ide-db/src/generated/lints.rs206
1 files changed, 155 insertions, 51 deletions
diff --git a/crates/ide-db/src/generated/lints.rs b/crates/ide-db/src/generated/lints.rs
index be595ec0f6..a67b0bc5a6 100644
--- a/crates/ide-db/src/generated/lints.rs
+++ b/crates/ide-db/src/generated/lints.rs
@@ -286,6 +286,13 @@ pub const DEFAULT_LINTS: &[Lint] = &[
deny_since: None,
},
Lint {
+ label: "deprecated_llvm_intrinsic",
+ description: r##"detects uses of deprecated LLVM intrinsics"##,
+ default_severity: Severity::Allow,
+ warn_since: None,
+ deny_since: None,
+ },
+ Lint {
label: "deprecated_safe_2024",
description: r##"detects unsafe functions being used as safe functions"##,
default_severity: Severity::Allow,
@@ -426,6 +433,13 @@ pub const DEFAULT_LINTS: &[Lint] = &[
deny_since: None,
},
Lint {
+ label: "float_literal_f32_fallback",
+ description: r##"detects unsuffixed floating point literals whose type fallback to `f32`"##,
+ default_severity: Severity::Warning,
+ warn_since: None,
+ deny_since: None,
+ },
+ Lint {
label: "for_loops_over_fallibles",
description: r##"for-looping over an `Option` or a `Result`, which is more clearly expressed as an `if let`"##,
default_severity: Severity::Warning,
@@ -1681,7 +1695,7 @@ pub const DEFAULT_LINTS: &[Lint] = &[
Lint {
label: "varargs_without_pattern",
description: r##"detects usage of `...` arguments without a pattern in non-foreign items"##,
- default_severity: Severity::Warning,
+ default_severity: Severity::Error,
warn_since: None,
deny_since: None,
},
@@ -1715,7 +1729,7 @@ pub const DEFAULT_LINTS: &[Lint] = &[
},
Lint {
label: "future_incompatible",
- description: r##"lint group for: internal-eq-trait-method-impls, aarch64-softfloat-neon, ambiguous-associated-items, ambiguous-derive-helpers, ambiguous-glob-imported-traits, ambiguous-glob-imports, ambiguous-import-visibilities, ambiguous-panic-imports, coherence-leak-check, conflicting-repr-hints, const-evaluatable-unchecked, elided-lifetimes-in-associated-constant, forbidden-lint-groups, ill-formed-attribute-input, invalid-macro-export-arguments, invalid-type-param-default, late-bound-lifetime-arguments, legacy-derive-helpers, macro-expanded-macro-exports-accessed-by-absolute-paths, out-of-scope-macro-calls, patterns-in-fns-without-body, proc-macro-derive-resolution-fallback, pub-use-of-private-extern-crate, repr-c-enums-larger-than-int, repr-transparent-non-zst-fields, self-constructor-from-outer-item, semicolon-in-expressions-from-macros, uncovered-param-in-projection, uninhabited-static, unstable-name-collisions, unstable-syntax-pre-expansion, unsupported-calling-conventions, varargs-without-pattern"##,
+ description: r##"lint group for: internal-eq-trait-method-impls, aarch64-softfloat-neon, ambiguous-associated-items, ambiguous-derive-helpers, ambiguous-glob-imported-traits, ambiguous-glob-imports, ambiguous-import-visibilities, ambiguous-panic-imports, coherence-leak-check, conflicting-repr-hints, const-evaluatable-unchecked, elided-lifetimes-in-associated-constant, float-literal-f32-fallback, forbidden-lint-groups, ill-formed-attribute-input, invalid-macro-export-arguments, invalid-type-param-default, late-bound-lifetime-arguments, legacy-derive-helpers, macro-expanded-macro-exports-accessed-by-absolute-paths, out-of-scope-macro-calls, patterns-in-fns-without-body, proc-macro-derive-resolution-fallback, pub-use-of-private-extern-crate, repr-c-enums-larger-than-int, repr-transparent-non-zst-fields, self-constructor-from-outer-item, semicolon-in-expressions-from-macros, uncovered-param-in-projection, uninhabited-static, unstable-name-collisions, unstable-syntax-pre-expansion, unsupported-calling-conventions, varargs-without-pattern"##,
default_severity: Severity::Allow,
warn_since: None,
deny_since: None,
@@ -1813,7 +1827,7 @@ pub const DEFAULT_LINT_GROUPS: &[LintGroup] = &[
LintGroup {
lint: Lint {
label: "future_incompatible",
- description: r##"lint group for: internal-eq-trait-method-impls, aarch64-softfloat-neon, ambiguous-associated-items, ambiguous-derive-helpers, ambiguous-glob-imported-traits, ambiguous-glob-imports, ambiguous-import-visibilities, ambiguous-panic-imports, coherence-leak-check, conflicting-repr-hints, const-evaluatable-unchecked, elided-lifetimes-in-associated-constant, forbidden-lint-groups, ill-formed-attribute-input, invalid-macro-export-arguments, invalid-type-param-default, late-bound-lifetime-arguments, legacy-derive-helpers, macro-expanded-macro-exports-accessed-by-absolute-paths, out-of-scope-macro-calls, patterns-in-fns-without-body, proc-macro-derive-resolution-fallback, pub-use-of-private-extern-crate, repr-c-enums-larger-than-int, repr-transparent-non-zst-fields, self-constructor-from-outer-item, semicolon-in-expressions-from-macros, uncovered-param-in-projection, uninhabited-static, unstable-name-collisions, unstable-syntax-pre-expansion, unsupported-calling-conventions, varargs-without-pattern"##,
+ description: r##"lint group for: internal-eq-trait-method-impls, aarch64-softfloat-neon, ambiguous-associated-items, ambiguous-derive-helpers, ambiguous-glob-imported-traits, ambiguous-glob-imports, ambiguous-import-visibilities, ambiguous-panic-imports, coherence-leak-check, conflicting-repr-hints, const-evaluatable-unchecked, elided-lifetimes-in-associated-constant, float-literal-f32-fallback, forbidden-lint-groups, ill-formed-attribute-input, invalid-macro-export-arguments, invalid-type-param-default, late-bound-lifetime-arguments, legacy-derive-helpers, macro-expanded-macro-exports-accessed-by-absolute-paths, out-of-scope-macro-calls, patterns-in-fns-without-body, proc-macro-derive-resolution-fallback, pub-use-of-private-extern-crate, repr-c-enums-larger-than-int, repr-transparent-non-zst-fields, self-constructor-from-outer-item, semicolon-in-expressions-from-macros, uncovered-param-in-projection, uninhabited-static, unstable-name-collisions, unstable-syntax-pre-expansion, unsupported-calling-conventions, varargs-without-pattern"##,
default_severity: Severity::Allow,
warn_since: None,
deny_since: None,
@@ -1831,6 +1845,7 @@ pub const DEFAULT_LINT_GROUPS: &[LintGroup] = &[
"conflicting_repr_hints",
"const_evaluatable_unchecked",
"elided_lifetimes_in_associated_constant",
+ "float_literal_f32_fallback",
"forbidden_lint_groups",
"ill_formed_attribute_input",
"invalid_macro_export_arguments",
@@ -2492,6 +2507,22 @@ The tracking issue for this feature is: [#40180]
deny_since: None,
},
Lint {
+ label: "abort_immediate",
+ description: r##"# `abort_immediate`
+
+
+
+The tracking issue for this feature is: [#154601]
+
+[#154601]: https://github.com/rust-lang/rust/issues/154601
+
+------------------------
+"##,
+ default_severity: Severity::Allow,
+ warn_since: None,
+ deny_since: None,
+ },
+ Lint {
label: "abort_unwind",
description: r##"# `abort_unwind`
@@ -4621,6 +4652,47 @@ This feature has no tracking issue, and is therefore likely internal to the comp
deny_since: None,
},
Lint {
+ label: "cfg_target_object_format",
+ description: r##"# `cfg_target_object_format`
+
+The tracking issue for this feature is: [#152586]
+
+[#152586]: https://github.com/rust-lang/rust/issues/152586
+
+------------------------
+
+The `cfg_target_object_format` feature makes it possible to execute different code
+depending on the current target's object file format.
+
+## Examples
+
+```rust
+#![feature(cfg_target_object_format)]
+
+#[cfg(target_object_format = "elf")]
+fn a() {
+ // ...
+}
+
+#[cfg(target_object_format = "mach-o")]
+fn a() {
+ // ...
+}
+
+fn b() {
+ if cfg!(target_object_format = "wasm") {
+ // ...
+ } else {
+ // ...
+ }
+}
+```
+"##,
+ default_severity: Severity::Allow,
+ warn_since: None,
+ deny_since: None,
+ },
+ Lint {
label: "cfg_target_thread_local",
description: r##"# `cfg_target_thread_local`
@@ -7720,6 +7792,22 @@ Enable the `f16` type for IEEE 16-bit floating numbers (half precision).
deny_since: None,
},
Lint {
+ label: "f32_from_f16",
+ description: r##"# `f32_from_f16`
+
+
+
+The tracking issue for this feature is: [#154005]
+
+[#154005]: https://github.com/rust-lang/rust/issues/154005
+
+------------------------
+"##,
+ default_severity: Severity::Allow,
+ warn_since: None,
+ deny_since: None,
+ },
+ Lint {
label: "fd",
description: r##"# `fd`
@@ -8024,6 +8112,22 @@ This feature is internal to the Rust compiler and is not intended for general us
deny_since: None,
},
Lint {
+ label: "fma4_target_feature",
+ description: r##"# `fma4_target_feature`
+
+fma4 target feature on x86.
+
+The tracking issue for this feature is: [#155233]
+
+[#155233]: https://github.com/rust-lang/rust/issues/155233
+
+------------------------
+"##,
+ default_severity: Severity::Allow,
+ warn_since: None,
+ deny_since: None,
+ },
+ Lint {
label: "fmt_arguments_from_str",
description: r##"# `fmt_arguments_from_str`
@@ -8905,22 +9009,6 @@ The tracking issue for this feature is: [#134821]
deny_since: None,
},
Lint {
- label: "int_lowest_highest_one",
- description: r##"# `int_lowest_highest_one`
-
-
-
-The tracking issue for this feature is: [#145203]
-
-[#145203]: https://github.com/rust-lang/rust/issues/145203
-
-------------------------
-"##,
- default_severity: Severity::Allow,
- warn_since: None,
- deny_since: None,
- },
- Lint {
label: "int_roundings",
description: r##"# `int_roundings`
@@ -9268,22 +9356,6 @@ The tracking issue for this feature is: [#111192]
deny_since: None,
},
Lint {
- label: "isolate_most_least_significant_one",
- description: r##"# `isolate_most_least_significant_one`
-
-
-
-The tracking issue for this feature is: [#136909]
-
-[#136909]: https://github.com/rust-lang/rust/issues/136909
-
-------------------------
-"##,
- default_severity: Severity::Allow,
- warn_since: None,
- deny_since: None,
- },
- Lint {
label: "iter_advance_by",
description: r##"# `iter_advance_by`
@@ -14891,6 +14963,38 @@ The tracking issue for this feature is: [#109929]
deny_since: None,
},
Lint {
+ label: "transmute_neo",
+ description: r##"# `transmute_neo`
+
+
+
+The tracking issue for this feature is: [#155079]
+
+[#155079]: https://github.com/rust-lang/rust/issues/155079
+
+------------------------
+"##,
+ default_severity: Severity::Allow,
+ warn_since: None,
+ deny_since: None,
+ },
+ Lint {
+ label: "transmute_prefix",
+ description: r##"# `transmute_prefix`
+
+
+
+The tracking issue for this feature is: [#155079]
+
+[#155079]: https://github.com/rust-lang/rust/issues/155079
+
+------------------------
+"##,
+ default_severity: Severity::Allow,
+ warn_since: None,
+ deny_since: None,
+ },
+ Lint {
label: "transparent_unions",
description: r##"# `transparent_unions`
@@ -15188,6 +15292,22 @@ The tracking issue for this feature is: [#63178]
deny_since: None,
},
Lint {
+ label: "try_from_int_error_kind",
+ description: r##"# `try_from_int_error_kind`
+
+
+
+The tracking issue for this feature is: [#153978]
+
+[#153978]: https://github.com/rust-lang/rust/issues/153978
+
+------------------------
+"##,
+ default_severity: Severity::Allow,
+ warn_since: None,
+ deny_since: None,
+ },
+ Lint {
label: "try_reserve_kind",
description: r##"# `try_reserve_kind`
@@ -15550,22 +15670,6 @@ The tracking issue for this feature is: [#100499]
deny_since: None,
},
Lint {
- label: "uint_bit_width",
- description: r##"# `uint_bit_width`
-
-
-
-The tracking issue for this feature is: [#142326]
-
-[#142326]: https://github.com/rust-lang/rust/issues/142326
-
-------------------------
-"##,
- default_severity: Severity::Allow,
- warn_since: None,
- deny_since: None,
- },
- Lint {
label: "uint_carryless_mul",
description: r##"# `uint_carryless_mul`