Skip to content

Commit

Permalink
Rename variant_marked_non_exhaustive to `enum_variant_marked_non_ex…
Browse files Browse the repository at this point in the history
…haustive`. (#908)

This improves our lint naming consistency, since other enum variant
lints have `enum_variant_` prefixes.
  • Loading branch information
obi1kenobi authored Sep 2, 2024
1 parent c07cd27 commit f289eeb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SemverQuery(
id: "variant_marked_non_exhaustive",
id: "enum_variant_marked_non_exhaustive",
human_readable_name: "enum variant marked #[non_exhaustive]",
description: "An exhaustive enum variant has been marked #[non_exhaustive].",
reference: Some("An exhaustive enum variant has been marked #[non_exhaustive], preventing it from being constructed using a literal from outside its own crate."),
Expand Down
2 changes: 1 addition & 1 deletion src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,7 @@ add_lints!(
enum_tuple_variant_field_now_doc_hidden,
enum_unit_variant_changed_kind,
enum_variant_added,
enum_variant_marked_non_exhaustive,
enum_variant_missing,
exported_function_changed_abi,
function_abi_no_longer_unwind,
Expand Down Expand Up @@ -872,5 +873,4 @@ add_lints!(
union_now_doc_hidden,
union_pub_field_now_doc_hidden,
unit_struct_changed_kind,
variant_marked_non_exhaustive,
);

0 comments on commit f289eeb

Please sign in to comment.