Summary
Re-enable and address the clippy::empty_enums lint after Rust stabilizes the required never_type support.
Rationale
Pull request #2499 disables clippy::empty_enums across the Rust workspace because Rust v1.98 does not support the lint's suggested never_type replacement as a stable feature.
Affected area
.cargo/config.toml
- Rust crates in the workspace that contain empty enums
Required changes
- Confirm that the Rust toolchain used by this repository supports
never_type as stable.
- Remove the workspace-level exception for
clippy::empty_enums.
- Replace affected empty enums with the supported
never_type representation where appropriate.
- Run the repository's Rust lint checks.
Acceptance criteria
- The supported Rust toolchain has stable
never_type support.
clippy::empty_enums is no longer disabled in .cargo/config.toml.
- Clippy passes without violations of
clippy::empty_enums.
Backlinks
Summary
Re-enable and address the
clippy::empty_enumslint after Rust stabilizes the requirednever_typesupport.Rationale
Pull request #2499 disables
clippy::empty_enumsacross the Rust workspace because Rust v1.98 does not support the lint's suggestednever_typereplacement as a stable feature.Affected area
.cargo/config.tomlRequired changes
never_typeas stable.clippy::empty_enums.never_typerepresentation where appropriate.Acceptance criteria
never_typesupport.clippy::empty_enumsis no longer disabled in.cargo/config.toml.clippy::empty_enums.Backlinks
clippy::empty_enumsacross the Rust workspace. #2499clippy::empty_enumsacross the Rust workspace. #2499 (comment)