Skip to content

Commit 68c411f

Browse files
committed
Move ManualMap into Matches lint pass
1 parent 67cb5ec commit 68c411f

File tree

7 files changed

+339
-321
lines changed

7 files changed

+339
-321
lines changed

clippy_lints/src/lib.register_all.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
133133
LintId::of(main_recursion::MAIN_RECURSION),
134134
LintId::of(manual_async_fn::MANUAL_ASYNC_FN),
135135
LintId::of(manual_bits::MANUAL_BITS),
136-
LintId::of(manual_map::MANUAL_MAP),
137136
LintId::of(manual_non_exhaustive::MANUAL_NON_EXHAUSTIVE),
138137
LintId::of(manual_strip::MANUAL_STRIP),
139138
LintId::of(map_clone::MAP_CLONE),
@@ -142,6 +141,7 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
142141
LintId::of(match_result_ok::MATCH_RESULT_OK),
143142
LintId::of(matches::COLLAPSIBLE_MATCH),
144143
LintId::of(matches::INFALLIBLE_DESTRUCTURING_MATCH),
144+
LintId::of(matches::MANUAL_MAP),
145145
LintId::of(matches::MANUAL_UNWRAP_OR),
146146
LintId::of(matches::MATCH_AS_REF),
147147
LintId::of(matches::MATCH_LIKE_MATCHES_MACRO),

clippy_lints/src/lib.register_lints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ store.register_lints(&[
250250
manual_assert::MANUAL_ASSERT,
251251
manual_async_fn::MANUAL_ASYNC_FN,
252252
manual_bits::MANUAL_BITS,
253-
manual_map::MANUAL_MAP,
254253
manual_non_exhaustive::MANUAL_NON_EXHAUSTIVE,
255254
manual_ok_or::MANUAL_OK_OR,
256255
manual_strip::MANUAL_STRIP,
@@ -261,6 +260,7 @@ store.register_lints(&[
261260
match_result_ok::MATCH_RESULT_OK,
262261
matches::COLLAPSIBLE_MATCH,
263262
matches::INFALLIBLE_DESTRUCTURING_MATCH,
263+
matches::MANUAL_MAP,
264264
matches::MANUAL_UNWRAP_OR,
265265
matches::MATCH_AS_REF,
266266
matches::MATCH_BOOL,

clippy_lints/src/lib.register_style.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ store.register_group(true, "clippy::style", Some("clippy_style"), vec![
4545
LintId::of(main_recursion::MAIN_RECURSION),
4646
LintId::of(manual_async_fn::MANUAL_ASYNC_FN),
4747
LintId::of(manual_bits::MANUAL_BITS),
48-
LintId::of(manual_map::MANUAL_MAP),
4948
LintId::of(manual_non_exhaustive::MANUAL_NON_EXHAUSTIVE),
5049
LintId::of(map_clone::MAP_CLONE),
5150
LintId::of(match_result_ok::MATCH_RESULT_OK),
5251
LintId::of(matches::COLLAPSIBLE_MATCH),
5352
LintId::of(matches::INFALLIBLE_DESTRUCTURING_MATCH),
53+
LintId::of(matches::MANUAL_MAP),
5454
LintId::of(matches::MATCH_LIKE_MATCHES_MACRO),
5555
LintId::of(matches::MATCH_OVERLAPPING_ARM),
5656
LintId::of(matches::MATCH_REF_PATS),

clippy_lints/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ mod main_recursion;
279279
mod manual_assert;
280280
mod manual_async_fn;
281281
mod manual_bits;
282-
mod manual_map;
283282
mod manual_non_exhaustive;
284283
mod manual_ok_or;
285284
mod manual_strip;
@@ -845,7 +844,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
845844
});
846845
store.register_late_pass(|| Box::new(redundant_slicing::RedundantSlicing));
847846
store.register_late_pass(|| Box::new(from_str_radix_10::FromStrRadix10));
848-
store.register_late_pass(|| Box::new(manual_map::ManualMap));
849847
store.register_late_pass(move || Box::new(if_then_some_else_none::IfThenSomeElseNone::new(msrv)));
850848
store.register_late_pass(|| Box::new(bool_assert_comparison::BoolAssertComparison));
851849
store.register_early_pass(move || Box::new(module_style::ModStyle));

clippy_lints/src/manual_map.rs

Lines changed: 0 additions & 316 deletions
This file was deleted.

0 commit comments

Comments
 (0)