Skip to content

Commit 76f0305

Browse files
flip1995dtolnay
authored andcommitted
Move transmute_undefined_repr back to nursery
There's still open discussion if this lint is ready to be enabled by default. We want to give us more time to figure this out and prevent this lint from getting to stable as an enabled-by-default lint.
1 parent 08504c6 commit 76f0305

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

src/tools/clippy/clippy_lints/src/lib.register_all.rs

-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
281281
LintId::of(transmute::TRANSMUTE_INT_TO_FLOAT),
282282
LintId::of(transmute::TRANSMUTE_NUM_TO_BYTES),
283283
LintId::of(transmute::TRANSMUTE_PTR_TO_REF),
284-
LintId::of(transmute::TRANSMUTE_UNDEFINED_REPR),
285284
LintId::of(transmute::UNSOUND_COLLECTION_TRANSMUTE),
286285
LintId::of(transmute::WRONG_TRANSMUTE),
287286
LintId::of(transmuting_null::TRANSMUTING_NULL),

src/tools/clippy/clippy_lints/src/lib.register_correctness.rs

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ store.register_group(true, "clippy::correctness", Some("clippy_correctness"), ve
5858
LintId::of(serde_api::SERDE_API_MISUSE),
5959
LintId::of(size_of_in_element_count::SIZE_OF_IN_ELEMENT_COUNT),
6060
LintId::of(swap::ALMOST_SWAPPED),
61-
LintId::of(transmute::TRANSMUTE_UNDEFINED_REPR),
6261
LintId::of(transmute::UNSOUND_COLLECTION_TRANSMUTE),
6362
LintId::of(transmute::WRONG_TRANSMUTE),
6463
LintId::of(transmuting_null::TRANSMUTING_NULL),

src/tools/clippy/clippy_lints/src/lib.register_nursery.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ store.register_group(true, "clippy::nursery", Some("clippy_nursery"), vec![
2626
LintId::of(strings::STRING_LIT_AS_BYTES),
2727
LintId::of(suspicious_operation_groupings::SUSPICIOUS_OPERATION_GROUPINGS),
2828
LintId::of(trailing_empty_array::TRAILING_EMPTY_ARRAY),
29+
LintId::of(transmute::TRANSMUTE_UNDEFINED_REPR),
2930
LintId::of(transmute::USELESS_TRANSMUTE),
3031
LintId::of(use_self::USE_SELF),
3132
])

src/tools/clippy/clippy_lints/src/transmute/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ declare_clippy_lint! {
377377
/// ```
378378
#[clippy::version = "1.60.0"]
379379
pub TRANSMUTE_UNDEFINED_REPR,
380-
correctness,
380+
nursery,
381381
"transmute to or from a type with an undefined representation"
382382
}
383383

0 commit comments

Comments
 (0)