Clippy lints / Deprecated
Clippy lint · Deprecated · checked with Clippy 0.1.99
clippy::pub_enum_variant_names: Nothing
What it meansThis lint is deprecated. Nothing. This lint has been deprecated Remove it from your config; rustc or Clippy will warn that it no longer exists.
Does it matter?
Removed or merged into another lint. Remove it from your config.
Removed or merged into another lint. Remove it from your config.
How to fix it
Clippy does not fix this one automatically. Change the code by hand:
Turn it off, or on
Allow it where it does not fit your code, as narrowly as you can:
On one item
#[allow(clippy::pub_enum_variant_names)]
fn my_function() { /* ... */ }Whole crate (Cargo.toml)
[lints.clippy]
pub_enum_variant_names = "allow"One run
cargo clippy -- -A clippy::pub-enum-variant-namesThe [lints] table needs Rust 1.74 or newer. In a workspace, put it under [workspace.lints.clippy] and add [lints] workspace = true to each member.
Clippy's own documentation
What it does
Nothing. This lint has been deprecated
Deprecation reason
clippy::enum_variant_names now covers this case via the avoid-breaking-exported-api config.
From the Clippy lint list (0.1.99), part of the Rust project, MIT or Apache-2.0. Official entry.
Related lints
- match_on_vec_itemsNothing
- misaligned_transmuteNothing
- option_map_or_err_okNothing
- range_step_by_zeroNothing
- regex_macroNothing
- replace_constsNothing
All 847 Clippy lints · Rust compiler errors · Cargo.toml checker
Up next
Related lintclippy::match_on_vec_itemsNothingRead it next →Did this answer your question?