Skip to content

Commit 5643d53

Browse files
JarchoMark-Simulacrum
authored andcommitted
Move significant_drop_in_scrutinee into nursey
1 parent e8cf27d commit 5643d53

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
@@ -151,7 +151,6 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
151151
LintId::of(matches::MATCH_STR_CASE_MISMATCH),
152152
LintId::of(matches::NEEDLESS_MATCH),
153153
LintId::of(matches::REDUNDANT_PATTERN_MATCHING),
154-
LintId::of(matches::SIGNIFICANT_DROP_IN_SCRUTINEE),
155154
LintId::of(matches::SINGLE_MATCH),
156155
LintId::of(matches::WILDCARD_IN_OR_PATTERNS),
157156
LintId::of(mem_replace::MEM_REPLACE_OPTION_WITH_NONE),

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

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ store.register_group(true, "clippy::nursery", Some("clippy_nursery"), vec![
1313
LintId::of(future_not_send::FUTURE_NOT_SEND),
1414
LintId::of(index_refutable_slice::INDEX_REFUTABLE_SLICE),
1515
LintId::of(let_if_seq::USELESS_LET_IF_SEQ),
16+
LintId::of(matches::SIGNIFICANT_DROP_IN_SCRUTINEE),
1617
LintId::of(methods::ITER_WITH_DRAIN),
1718
LintId::of(missing_const_for_fn::MISSING_CONST_FOR_FN),
1819
LintId::of(mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),

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

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ store.register_group(true, "clippy::suspicious", Some("clippy_suspicious"), vec!
2424
LintId::of(loops::EMPTY_LOOP),
2525
LintId::of(loops::FOR_LOOPS_OVER_FALLIBLES),
2626
LintId::of(loops::MUT_RANGE_BOUND),
27-
LintId::of(matches::SIGNIFICANT_DROP_IN_SCRUTINEE),
2827
LintId::of(methods::NO_EFFECT_REPLACE),
2928
LintId::of(methods::SUSPICIOUS_MAP),
3029
LintId::of(mut_key::MUTABLE_KEY_TYPE),

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ declare_clippy_lint! {
845845
/// ```
846846
#[clippy::version = "1.60.0"]
847847
pub SIGNIFICANT_DROP_IN_SCRUTINEE,
848-
suspicious,
848+
nursery,
849849
"warns when a temporary of a type with a drop with a significant side-effect might have a surprising lifetime"
850850
}
851851

0 commit comments

Comments
 (0)