Skip to content

Commit 09a827a

Browse files
committed
Revert #6796: Downgrade manual_map to nursery
1 parent ef87e58 commit 09a827a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

clippy_lints/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1540,6 +1540,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15401540
LintId::of(&loops::WHILE_LET_ON_ITERATOR),
15411541
LintId::of(&main_recursion::MAIN_RECURSION),
15421542
LintId::of(&manual_async_fn::MANUAL_ASYNC_FN),
1543+
LintId::of(&manual_map::MANUAL_MAP),
15431544
LintId::of(&manual_non_exhaustive::MANUAL_NON_EXHAUSTIVE),
15441545
LintId::of(&manual_strip::MANUAL_STRIP),
15451546
LintId::of(&manual_unwrap_or::MANUAL_UNWRAP_OR),
@@ -1770,6 +1771,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
17701771
LintId::of(&loops::WHILE_LET_ON_ITERATOR),
17711772
LintId::of(&main_recursion::MAIN_RECURSION),
17721773
LintId::of(&manual_async_fn::MANUAL_ASYNC_FN),
1774+
LintId::of(&manual_map::MANUAL_MAP),
17731775
LintId::of(&manual_non_exhaustive::MANUAL_NON_EXHAUSTIVE),
17741776
LintId::of(&map_clone::MAP_CLONE),
17751777
LintId::of(&matches::INFALLIBLE_DESTRUCTURING_MATCH),
@@ -2045,7 +2047,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
20452047
LintId::of(&floating_point_arithmetic::SUBOPTIMAL_FLOPS),
20462048
LintId::of(&future_not_send::FUTURE_NOT_SEND),
20472049
LintId::of(&let_if_seq::USELESS_LET_IF_SEQ),
2048-
LintId::of(&manual_map::MANUAL_MAP),
20492050
LintId::of(&missing_const_for_fn::MISSING_CONST_FOR_FN),
20502051
LintId::of(&mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),
20512052
LintId::of(&mutex_atomic::MUTEX_INTEGER),

clippy_lints/src/manual_map.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ declare_clippy_lint! {
2323
///
2424
/// **Why is this bad?** Using the `map` method is clearer and more concise.
2525
///
26-
/// **Known problems:** `map` is not capable of representing some control flow which works fine in `match`.
26+
/// **Known problems:** None.
2727
///
2828
/// **Example:**
2929
///
@@ -38,7 +38,7 @@ declare_clippy_lint! {
3838
/// Some(0).map(|x| x + 1);
3939
/// ```
4040
pub MANUAL_MAP,
41-
nursery,
41+
style,
4242
"reimplementation of `map`"
4343
}
4444

0 commit comments

Comments
 (0)