Skip to content

Commit fba71bb

Browse files
Merge pull request #22086 from rust-lang/ci/gen-lints
Update generated lints
2 parents 45f4cbc + 49cc236 commit fba71bb

1 file changed

Lines changed: 155 additions & 51 deletions

File tree

crates/ide-db/src/generated/lints.rs

Lines changed: 155 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,13 @@ pub const DEFAULT_LINTS: &[Lint] = &[
285285
warn_since: None,
286286
deny_since: None,
287287
},
288+
Lint {
289+
label: "deprecated_llvm_intrinsic",
290+
description: r##"detects uses of deprecated LLVM intrinsics"##,
291+
default_severity: Severity::Allow,
292+
warn_since: None,
293+
deny_since: None,
294+
},
288295
Lint {
289296
label: "deprecated_safe_2024",
290297
description: r##"detects unsafe functions being used as safe functions"##,
@@ -425,6 +432,13 @@ pub const DEFAULT_LINTS: &[Lint] = &[
425432
warn_since: None,
426433
deny_since: None,
427434
},
435+
Lint {
436+
label: "float_literal_f32_fallback",
437+
description: r##"detects unsuffixed floating point literals whose type fallback to `f32`"##,
438+
default_severity: Severity::Warning,
439+
warn_since: None,
440+
deny_since: None,
441+
},
428442
Lint {
429443
label: "for_loops_over_fallibles",
430444
description: r##"for-looping over an `Option` or a `Result`, which is more clearly expressed as an `if let`"##,
@@ -1681,7 +1695,7 @@ pub const DEFAULT_LINTS: &[Lint] = &[
16811695
Lint {
16821696
label: "varargs_without_pattern",
16831697
description: r##"detects usage of `...` arguments without a pattern in non-foreign items"##,
1684-
default_severity: Severity::Warning,
1698+
default_severity: Severity::Error,
16851699
warn_since: None,
16861700
deny_since: None,
16871701
},
@@ -1715,7 +1729,7 @@ pub const DEFAULT_LINTS: &[Lint] = &[
17151729
},
17161730
Lint {
17171731
label: "future_incompatible",
1718-
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"##,
1732+
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"##,
17191733
default_severity: Severity::Allow,
17201734
warn_since: None,
17211735
deny_since: None,
@@ -1813,7 +1827,7 @@ pub const DEFAULT_LINT_GROUPS: &[LintGroup] = &[
18131827
LintGroup {
18141828
lint: Lint {
18151829
label: "future_incompatible",
1816-
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"##,
1830+
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"##,
18171831
default_severity: Severity::Allow,
18181832
warn_since: None,
18191833
deny_since: None,
@@ -1831,6 +1845,7 @@ pub const DEFAULT_LINT_GROUPS: &[LintGroup] = &[
18311845
"conflicting_repr_hints",
18321846
"const_evaluatable_unchecked",
18331847
"elided_lifetimes_in_associated_constant",
1848+
"float_literal_f32_fallback",
18341849
"forbidden_lint_groups",
18351850
"ill_formed_attribute_input",
18361851
"invalid_macro_export_arguments",
@@ -2485,6 +2500,22 @@ The tracking issue for this feature is: [#40180]
24852500

24862501
[#40180]: https://github.com/rust-lang/rust/issues/40180
24872502

2503+
------------------------
2504+
"##,
2505+
default_severity: Severity::Allow,
2506+
warn_since: None,
2507+
deny_since: None,
2508+
},
2509+
Lint {
2510+
label: "abort_immediate",
2511+
description: r##"# `abort_immediate`
2512+
2513+
2514+
2515+
The tracking issue for this feature is: [#154601]
2516+
2517+
[#154601]: https://github.com/rust-lang/rust/issues/154601
2518+
24882519
------------------------
24892520
"##,
24902521
default_severity: Severity::Allow,
@@ -4615,6 +4646,47 @@ Allows checking whether or not the backend correctly supports unstable float typ
46154646
This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
46164647

46174648
------------------------
4649+
"##,
4650+
default_severity: Severity::Allow,
4651+
warn_since: None,
4652+
deny_since: None,
4653+
},
4654+
Lint {
4655+
label: "cfg_target_object_format",
4656+
description: r##"# `cfg_target_object_format`
4657+
4658+
The tracking issue for this feature is: [#152586]
4659+
4660+
[#152586]: https://github.com/rust-lang/rust/issues/152586
4661+
4662+
------------------------
4663+
4664+
The `cfg_target_object_format` feature makes it possible to execute different code
4665+
depending on the current target's object file format.
4666+
4667+
## Examples
4668+
4669+
```rust
4670+
#![feature(cfg_target_object_format)]
4671+
4672+
#[cfg(target_object_format = "elf")]
4673+
fn a() {
4674+
// ...
4675+
}
4676+
4677+
#[cfg(target_object_format = "mach-o")]
4678+
fn a() {
4679+
// ...
4680+
}
4681+
4682+
fn b() {
4683+
if cfg!(target_object_format = "wasm") {
4684+
// ...
4685+
} else {
4686+
// ...
4687+
}
4688+
}
4689+
```
46184690
"##,
46194691
default_severity: Severity::Allow,
46204692
warn_since: None,
@@ -7714,6 +7786,22 @@ The tracking issue for this feature is: [#116909]
77147786
---
77157787

77167788
Enable the `f16` type for IEEE 16-bit floating numbers (half precision).
7789+
"##,
7790+
default_severity: Severity::Allow,
7791+
warn_since: None,
7792+
deny_since: None,
7793+
},
7794+
Lint {
7795+
label: "f32_from_f16",
7796+
description: r##"# `f32_from_f16`
7797+
7798+
7799+
7800+
The tracking issue for this feature is: [#154005]
7801+
7802+
[#154005]: https://github.com/rust-lang/rust/issues/154005
7803+
7804+
------------------------
77177805
"##,
77187806
default_severity: Severity::Allow,
77197807
warn_since: None,
@@ -8017,6 +8105,22 @@ The tracking issue for this feature is: [#91079]
80178105

80188106
This feature is internal to the Rust compiler and is not intended for general use.
80198107

8108+
------------------------
8109+
"##,
8110+
default_severity: Severity::Allow,
8111+
warn_since: None,
8112+
deny_since: None,
8113+
},
8114+
Lint {
8115+
label: "fma4_target_feature",
8116+
description: r##"# `fma4_target_feature`
8117+
8118+
fma4 target feature on x86.
8119+
8120+
The tracking issue for this feature is: [#155233]
8121+
8122+
[#155233]: https://github.com/rust-lang/rust/issues/155233
8123+
80208124
------------------------
80218125
"##,
80228126
default_severity: Severity::Allow,
@@ -8898,22 +9002,6 @@ The tracking issue for this feature is: [#134821]
88989002

88999003
[#134821]: https://github.com/rust-lang/rust/issues/134821
89009004

8901-
------------------------
8902-
"##,
8903-
default_severity: Severity::Allow,
8904-
warn_since: None,
8905-
deny_since: None,
8906-
},
8907-
Lint {
8908-
label: "int_lowest_highest_one",
8909-
description: r##"# `int_lowest_highest_one`
8910-
8911-
8912-
8913-
The tracking issue for this feature is: [#145203]
8914-
8915-
[#145203]: https://github.com/rust-lang/rust/issues/145203
8916-
89179005
------------------------
89189006
"##,
89199007
default_severity: Severity::Allow,
@@ -9261,22 +9349,6 @@ The tracking issue for this feature is: [#111192]
92619349

92629350
[#111192]: https://github.com/rust-lang/rust/issues/111192
92639351

9264-
------------------------
9265-
"##,
9266-
default_severity: Severity::Allow,
9267-
warn_since: None,
9268-
deny_since: None,
9269-
},
9270-
Lint {
9271-
label: "isolate_most_least_significant_one",
9272-
description: r##"# `isolate_most_least_significant_one`
9273-
9274-
9275-
9276-
The tracking issue for this feature is: [#136909]
9277-
9278-
[#136909]: https://github.com/rust-lang/rust/issues/136909
9279-
92809352
------------------------
92819353
"##,
92829354
default_severity: Severity::Allow,
@@ -14884,6 +14956,38 @@ The tracking issue for this feature is: [#109929]
1488414956

1488514957
[#109929]: https://github.com/rust-lang/rust/issues/109929
1488614958

14959+
------------------------
14960+
"##,
14961+
default_severity: Severity::Allow,
14962+
warn_since: None,
14963+
deny_since: None,
14964+
},
14965+
Lint {
14966+
label: "transmute_neo",
14967+
description: r##"# `transmute_neo`
14968+
14969+
14970+
14971+
The tracking issue for this feature is: [#155079]
14972+
14973+
[#155079]: https://github.com/rust-lang/rust/issues/155079
14974+
14975+
------------------------
14976+
"##,
14977+
default_severity: Severity::Allow,
14978+
warn_since: None,
14979+
deny_since: None,
14980+
},
14981+
Lint {
14982+
label: "transmute_prefix",
14983+
description: r##"# `transmute_prefix`
14984+
14985+
14986+
14987+
The tracking issue for this feature is: [#155079]
14988+
14989+
[#155079]: https://github.com/rust-lang/rust/issues/155079
14990+
1488714991
------------------------
1488814992
"##,
1488914993
default_severity: Severity::Allow,
@@ -15181,6 +15285,22 @@ The tracking issue for this feature is: [#63178]
1518115285

1518215286
[#63178]: https://github.com/rust-lang/rust/issues/63178
1518315287

15288+
------------------------
15289+
"##,
15290+
default_severity: Severity::Allow,
15291+
warn_since: None,
15292+
deny_since: None,
15293+
},
15294+
Lint {
15295+
label: "try_from_int_error_kind",
15296+
description: r##"# `try_from_int_error_kind`
15297+
15298+
15299+
15300+
The tracking issue for this feature is: [#153978]
15301+
15302+
[#153978]: https://github.com/rust-lang/rust/issues/153978
15303+
1518415304
------------------------
1518515305
"##,
1518615306
default_severity: Severity::Allow,
@@ -15543,22 +15663,6 @@ The tracking issue for this feature is: [#100499]
1554315663

1554415664
[#100499]: https://github.com/rust-lang/rust/issues/100499
1554515665

15546-
------------------------
15547-
"##,
15548-
default_severity: Severity::Allow,
15549-
warn_since: None,
15550-
deny_since: None,
15551-
},
15552-
Lint {
15553-
label: "uint_bit_width",
15554-
description: r##"# `uint_bit_width`
15555-
15556-
15557-
15558-
The tracking issue for this feature is: [#142326]
15559-
15560-
[#142326]: https://github.com/rust-lang/rust/issues/142326
15561-
1556215666
------------------------
1556315667
"##,
1556415668
default_severity: Severity::Allow,

0 commit comments

Comments
 (0)