Skip to content
Myr

Update name of empty_enum clippy lint

Before adoption: this commit came in with the history the project adopted, so no landing records it.

warning: lint `clippy::empty_enum` has been renamed to `clippy::empty_enums` --> serde/src/lib.rs:122:5 | 122 | clippy::empty_enum, | ^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::empty_enums` | = note: `#[warn(renamed_and_removed_lints)]` on by default warning: lint `clippy::empty_enum` has been renamed to `clippy::empty_enums` --> serde_core/src/lib.rs:57:5 | 57 | clippy::empty_enum, | ^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::empty_enums` | = note: `#[warn(renamed_and_removed_lints)]` on by default warning: lint `clippy::empty_enum` has been renamed to `clippy::empty_enums` --> test_suite/tests/test_de.rs:5:5 | 5 | clippy::empty_enum, | ^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::empty_enums` | = note: `#[warn(renamed_and_removed_lints)]` on by default warning: lint `clippy::empty_enum` has been renamed to `clippy::empty_enums` --> test_suite/tests/test_de_error.rs:3:5 | 3 | clippy::empty_enum, | ^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::empty_enums` | = note: `#[warn(renamed_and_removed_lints)]` on by default

authored by David Tolnay · committed by David Tolnay · parent 5a44519 · Browse files · 4 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+4 added−4 removed

  • tests:+2 added−2 removed
  • other:+2 added−2 removed

4 files+4 added−4 removed

modified:serde/src/lib.rs+1 added-1 removed
117 unmodified lines
118 clippy::unnested_or_patterns,119 // clippy bug: https://github.com/rust-lang/rust-clippy/issues/7768120 clippy::semicolon_if_nothing_returned,121 // not available in our oldest supported compiler122 clippy::empty_enum,122 clippy::empty_enums,123 clippy::type_repetition_in_bounds, // https://github.com/rust-lang/rust-clippy/issues/8772124 // integer and float ser/de requires these sorts of casts125 clippy::cast_possible_truncation,126 clippy::cast_possible_wrap,
159 unmodified lines
modified:serde_core/src/lib.rs+1 added-1 removed
52 unmodified lines
53 clippy::unnested_or_patterns,54 // clippy bug: https://github.com/rust-lang/rust-clippy/issues/776855 clippy::semicolon_if_nothing_returned,56 // not available in our oldest supported compiler57 clippy::empty_enum,57 clippy::empty_enums,58 clippy::type_repetition_in_bounds, // https://github.com/rust-lang/rust-clippy/issues/877259 // integer and float ser/de requires these sorts of casts60 clippy::cast_possible_truncation,61 clippy::cast_possible_wrap,
60 unmodified lines
modified:test_suite/tests/test_de_error.rs+1 added-1 removed
1#![allow(2 clippy::derive_partial_eq_without_eq,3 clippy::empty_enum,3 clippy::empty_enums,4 clippy::unreadable_literal5)]6#![cfg_attr(feature = "unstable", feature(never_type))]7
1561 unmodified lines
modified:test_suite/tests/test_de.rs+1 added-1 removed
1#![allow(2 clippy::cast_lossless,3 clippy::decimal_literal_representation,4 clippy::derive_partial_eq_without_eq,5 clippy::empty_enum,5 clippy::empty_enums,6 clippy::manual_assert,7 clippy::needless_pass_by_value,8 clippy::uninlined_format_args,9 clippy::unreadable_literal
2378 unmodified lines