Downgrade option_if_let_else to nursery
This commit is contained in:
parent
7c5487dc62
commit
3c8eaa8b2c
@ -1125,7 +1125,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
|
|||||||
LintId::of(needless_for_each::NEEDLESS_FOR_EACH),
|
LintId::of(needless_for_each::NEEDLESS_FOR_EACH),
|
||||||
LintId::of(needless_pass_by_value::NEEDLESS_PASS_BY_VALUE),
|
LintId::of(needless_pass_by_value::NEEDLESS_PASS_BY_VALUE),
|
||||||
LintId::of(non_expressive_names::SIMILAR_NAMES),
|
LintId::of(non_expressive_names::SIMILAR_NAMES),
|
||||||
LintId::of(option_if_let_else::OPTION_IF_LET_ELSE),
|
|
||||||
LintId::of(pass_by_ref_or_value::LARGE_TYPES_PASSED_BY_VALUE),
|
LintId::of(pass_by_ref_or_value::LARGE_TYPES_PASSED_BY_VALUE),
|
||||||
LintId::of(pass_by_ref_or_value::TRIVIALLY_COPY_PASS_BY_REF),
|
LintId::of(pass_by_ref_or_value::TRIVIALLY_COPY_PASS_BY_REF),
|
||||||
LintId::of(ranges::RANGE_MINUS_ONE),
|
LintId::of(ranges::RANGE_MINUS_ONE),
|
||||||
@ -1802,6 +1801,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
|
|||||||
LintId::of(mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),
|
LintId::of(mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),
|
||||||
LintId::of(mutex_atomic::MUTEX_INTEGER),
|
LintId::of(mutex_atomic::MUTEX_INTEGER),
|
||||||
LintId::of(nonstandard_macro_braces::NONSTANDARD_MACRO_BRACES),
|
LintId::of(nonstandard_macro_braces::NONSTANDARD_MACRO_BRACES),
|
||||||
|
LintId::of(option_if_let_else::OPTION_IF_LET_ELSE),
|
||||||
LintId::of(path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE),
|
LintId::of(path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE),
|
||||||
LintId::of(redundant_pub_crate::REDUNDANT_PUB_CRATE),
|
LintId::of(redundant_pub_crate::REDUNDANT_PUB_CRATE),
|
||||||
LintId::of(regex::TRIVIAL_REGEX),
|
LintId::of(regex::TRIVIAL_REGEX),
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
/// }, |foo| foo);
|
/// }, |foo| foo);
|
||||||
/// ```
|
/// ```
|
||||||
pub OPTION_IF_LET_ELSE,
|
pub OPTION_IF_LET_ELSE,
|
||||||
pedantic,
|
nursery,
|
||||||
"reimplementation of Option::map_or"
|
"reimplementation of Option::map_or"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user