about summary refs log tree commit diff
path: root/clippy_lints/src/lib.register_all.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-03-18 15:54:45 +0000
committerbors <bors@rust-lang.org>2022-03-18 15:54:45 +0000
commita31dcb77be146ec04a653cd1e7dee21600b3f29e (patch)
tree6094ec5b5366e4f6fb0690380eaa6b55f3735473 /clippy_lints/src/lib.register_all.rs
parent9fd3c2d7886a61a10c37f922f6e866e221565add (diff)
parent39329d1d404d38437270acf3cb1337a231367efc (diff)
downloadrust-a31dcb77be146ec04a653cd1e7dee21600b3f29e.tar.gz
rust-a31dcb77be146ec04a653cd1e7dee21600b3f29e.zip
Auto merge of #8562 - Jarcho:enum_tuple_variant_as_int, r=Manishearth
Add lint `cast_enum_constructor`

fixes: #1116

changelog: Add lint `cast_enum_constructor`
Diffstat (limited to 'clippy_lints/src/lib.register_all.rs')
-rw-r--r--clippy_lints/src/lib.register_all.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/lib.register_all.rs b/clippy_lints/src/lib.register_all.rs
index 653d4daa6b6..e360757f781 100644
--- a/clippy_lints/src/lib.register_all.rs
+++ b/clippy_lints/src/lib.register_all.rs
@@ -23,6 +23,7 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
     LintId::of(bool_assert_comparison::BOOL_ASSERT_COMPARISON),
     LintId::of(booleans::LOGIC_BUG),
     LintId::of(booleans::NONMINIMAL_BOOL),
+    LintId::of(casts::CAST_ENUM_CONSTRUCTOR),
     LintId::of(casts::CAST_ENUM_TRUNCATION),
     LintId::of(casts::CAST_REF_TO_MUT),
     LintId::of(casts::CAST_SLICE_DIFFERENT_SIZES),