Downgrade rc_buffer to restriction

This commit is contained in:
David Tolnay 2020-10-06 19:46:03 -07:00
parent 14e72696a6
commit 0e159a55d6
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
3 changed files with 3 additions and 4 deletions

View file

@ -1171,6 +1171,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
LintId::of(&shadow::SHADOW_REUSE),
LintId::of(&shadow::SHADOW_SAME),
LintId::of(&strings::STRING_ADD),
LintId::of(&types::RC_BUFFER),
LintId::of(&unwrap_in_result::UNWRAP_IN_RESULT),
LintId::of(&verbose_file_reads::VERBOSE_FILE_READS),
LintId::of(&write::PRINT_STDOUT),
@ -1504,7 +1505,6 @@ 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),
@ -1805,7 +1805,6 @@ 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),
]);

View file

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

View file

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