Skip to content

Commit 09d4d49

Browse files
committed
ExhaustiveEnums -> ExhaustiveItems
1 parent f6cb96e commit 09d4d49

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

clippy_lints/src/exhaustive_enums.rs renamed to clippy_lints/src/exhaustive_items.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ declare_clippy_lint! {
3434
"default lint description"
3535
}
3636

37-
declare_lint_pass!(ExhaustiveEnums => [EXHAUSTIVE_ENUMS]);
37+
declare_lint_pass!(ExhaustiveItems => [EXHAUSTIVE_ENUMS]);
3838

39-
impl LateLintPass<'_> for ExhaustiveEnums {
39+
impl LateLintPass<'_> for ExhaustiveItems {
4040
fn check_item(&mut self, cx: &LateContext<'_>, item: &Item<'_>) {
4141
if_chain! {
4242
if let ItemKind::Enum(..) = item.kind;

clippy_lints/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ mod escape;
200200
mod eta_reduction;
201201
mod eval_order_dependence;
202202
mod excessive_bools;
203-
mod exhaustive_enums;
203+
mod exhaustive_items;
204204
mod exit;
205205
mod explicit_write;
206206
mod fallible_impl_from;
@@ -612,7 +612,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
612612
&eval_order_dependence::EVAL_ORDER_DEPENDENCE,
613613
&excessive_bools::FN_PARAMS_EXCESSIVE_BOOLS,
614614
&excessive_bools::STRUCT_EXCESSIVE_BOOLS,
615-
&exhaustive_enums::EXHAUSTIVE_ENUMS,
615+
&exhaustive_items::EXHAUSTIVE_ENUMS,
616616
&exit::EXIT,
617617
&explicit_write::EXPLICIT_WRITE,
618618
&fallible_impl_from::FALLIBLE_IMPL_FROM,
@@ -1098,7 +1098,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10981098
store.register_late_pass(|| box eval_order_dependence::EvalOrderDependence);
10991099
store.register_late_pass(|| box missing_doc::MissingDoc::new());
11001100
store.register_late_pass(|| box missing_inline::MissingInline);
1101-
store.register_late_pass(move || box exhaustive_enums::ExhaustiveEnums);
1101+
store.register_late_pass(move || box exhaustive_items::ExhaustiveItems);
11021102
store.register_late_pass(|| box if_let_some_result::OkIfLet);
11031103
store.register_late_pass(|| box partialeq_ne_impl::PartialEqNeImpl);
11041104
store.register_late_pass(|| box unused_io_amount::UnusedIoAmount);
@@ -1249,7 +1249,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12491249
LintId::of(&create_dir::CREATE_DIR),
12501250
LintId::of(&dbg_macro::DBG_MACRO),
12511251
LintId::of(&else_if_without_else::ELSE_IF_WITHOUT_ELSE),
1252-
LintId::of(&exhaustive_enums::EXHAUSTIVE_ENUMS),
1252+
LintId::of(&exhaustive_items::EXHAUSTIVE_ENUMS),
12531253
LintId::of(&exit::EXIT),
12541254
LintId::of(&float_literal::LOSSY_FLOAT_LITERAL),
12551255
LintId::of(&implicit_return::IMPLICIT_RETURN),
File renamed without changes.
File renamed without changes.

tests/ui/exhaustive_enums.stderr renamed to tests/ui/exhaustive_items.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: enums should not be exhaustive
2-
--> $DIR/exhaustive_enums.rs:10:1
2+
--> $DIR/exhaustive_items.rs:10:1
33
|
44
LL | / pub enum Exhaustive {
55
LL | | Foo,
@@ -10,7 +10,7 @@ LL | | }
1010
| |_^
1111
|
1212
note: the lint level is defined here
13-
--> $DIR/exhaustive_enums.rs:3:9
13+
--> $DIR/exhaustive_items.rs:3:9
1414
|
1515
LL | #![deny(clippy::exhaustive_enums)]
1616
| ^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)