Skip to content

Commit 2720085

Browse files
committed
Move rc_buffer lint into perf category
1 parent d0ddbb9 commit 2720085

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

clippy_lints/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,6 +1480,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14801480
LintId::of(&types::CHAR_LIT_AS_U8),
14811481
LintId::of(&types::FN_TO_NUMERIC_CAST),
14821482
LintId::of(&types::FN_TO_NUMERIC_CAST_WITH_TRUNCATION),
1483+
LintId::of(&types::RC_BUFFER),
14831484
LintId::of(&types::REDUNDANT_ALLOCATION),
14841485
LintId::of(&types::TYPE_COMPLEXITY),
14851486
LintId::of(&types::UNIT_ARG),
@@ -1780,6 +1781,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
17801781
LintId::of(&slow_vector_initialization::SLOW_VECTOR_INITIALIZATION),
17811782
LintId::of(&stable_sort_primitive::STABLE_SORT_PRIMITIVE),
17821783
LintId::of(&types::BOX_VEC),
1784+
LintId::of(&types::RC_BUFFER),
17831785
LintId::of(&types::REDUNDANT_ALLOCATION),
17841786
LintId::of(&vec::USELESS_VEC),
17851787
]);
@@ -1805,7 +1807,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
18051807
LintId::of(&path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE),
18061808
LintId::of(&redundant_pub_crate::REDUNDANT_PUB_CRATE),
18071809
LintId::of(&transmute::USELESS_TRANSMUTE),
1808-
LintId::of(&types::RC_BUFFER),
18091810
LintId::of(&use_self::USE_SELF),
18101811
]);
18111812
}

clippy_lints/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ declare_clippy_lint! {
241241
/// fn foo(interned: Rc<str>) { ... }
242242
/// ```
243243
pub RC_BUFFER,
244-
nursery,
244+
perf,
245245
"shared ownership of a buffer type"
246246
}
247247

src/lintlist/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,7 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
18531853
},
18541854
Lint {
18551855
name: "rc_buffer",
1856-
group: "nursery",
1856+
group: "perf",
18571857
desc: "shared ownership of a buffer type",
18581858
deprecation: None,
18591859
module: "types",

0 commit comments

Comments
 (0)