Skip to content

Commit 222826f

Browse files
committed
refactor: Make lint names snake_case
1 parent 77506e5 commit 222826f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/cargo/util/lints.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub struct LintGroup {
6767
}
6868

6969
const RUST_2024_COMPATIBILITY: LintGroup = LintGroup {
70-
name: "rust-2024-compatibility",
70+
name: "rust_2024_compatibility",
7171
default_level: LintLevel::Allow,
7272
desc: "warn about compatibility with Rust 2024",
7373
edition_lint_opts: Some((Edition::Edition2024, LintLevel::Deny)),
@@ -150,7 +150,7 @@ impl From<TomlLintLevel> for LintLevel {
150150
/// [RFC #3143]: https://rust-lang.github.io/rfcs/3143-cargo-weak-namespaced-features.html
151151
/// [RFC #3491]: https://rust-lang.github.io/rfcs/3491-remove-implicit-features.html
152152
const IMPLICIT_FEATURES: Lint = Lint {
153-
name: "implicit-features",
153+
name: "implicit_features",
154154
desc: "warn about the use of unstable features",
155155
groups: &[RUST_2024_COMPATIBILITY],
156156
default_level: LintLevel::Allow,

tests/testsuite/lints/implicit_features/edition_2021_warn/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ edition = "2021"
1919
bar = { version = "0.1.0", optional = true }
2020
2121
[lints.cargo]
22-
implicit-features = "warn"
22+
implicit_features = "warn"
2323
"#,
2424
)
2525
.file("src/lib.rs", "")

tests/testsuite/lints/implicit_features/warn/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ edition = "2024"
2020
bar = { version = "0.1.0", optional = true }
2121
2222
[lints.cargo]
23-
implicit-features = "warn"
23+
implicit_features = "warn"
2424
"#,
2525
)
2626
.file("src/lib.rs", "")

tests/testsuite/lints/rust_2024_compatibility/edition_2021_warn/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ edition = "2021"
1919
bar = { version = "0.1.0", optional = true }
2020
2121
[lints.cargo]
22-
rust-2024-compatibility = "warn"
22+
rust_2024_compatibility = "warn"
2323
"#,
2424
)
2525
.file("src/lib.rs", "")

tests/testsuite/lints/rust_2024_compatibility/warn/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ edition = "2024"
2020
bar = { version = "0.1.0", optional = true }
2121
2222
[lints.cargo]
23-
rust-2024-compatibility = "warn"
23+
rust_2024_compatibility = "warn"
2424
"#,
2525
)
2626
.file("src/lib.rs", "")

0 commit comments

Comments
 (0)