Move rc_buffer lint into perf category

This commit is contained in:
Robin Schoonover 2020-09-16 17:19:35 -06:00
parent d0ddbb9d0d
commit 27200855c3
3 changed files with 4 additions and 3 deletions

View file

@ -1480,6 +1480,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
LintId::of(&types::CHAR_LIT_AS_U8),
LintId::of(&types::FN_TO_NUMERIC_CAST),
LintId::of(&types::FN_TO_NUMERIC_CAST_WITH_TRUNCATION),
LintId::of(&types::RC_BUFFER),
LintId::of(&types::REDUNDANT_ALLOCATION),
LintId::of(&types::TYPE_COMPLEXITY),
LintId::of(&types::UNIT_ARG),
@ -1780,6 +1781,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
LintId::of(&slow_vector_initialization::SLOW_VECTOR_INITIALIZATION),
LintId::of(&stable_sort_primitive::STABLE_SORT_PRIMITIVE),
LintId::of(&types::BOX_VEC),
LintId::of(&types::RC_BUFFER),
LintId::of(&types::REDUNDANT_ALLOCATION),
LintId::of(&vec::USELESS_VEC),
]);
@ -1805,7 +1807,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
LintId::of(&path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE),
LintId::of(&redundant_pub_crate::REDUNDANT_PUB_CRATE),
LintId::of(&transmute::USELESS_TRANSMUTE),
LintId::of(&types::RC_BUFFER),
LintId::of(&use_self::USE_SELF),
]);
}

View file

@ -241,7 +241,7 @@ declare_clippy_lint! {
/// fn foo(interned: Rc<str>) { ... }
/// ```
pub RC_BUFFER,
nursery,
perf,
"shared ownership of a buffer type"
}

View file

@ -1853,7 +1853,7 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
},
Lint {
name: "rc_buffer",
group: "nursery",
group: "perf",
desc: "shared ownership of a buffer type",
deprecation: None,
module: "types",