Skip to content

Commit 0e159a5

Browse files
committed
Downgrade rc_buffer to restriction
1 parent 14e7269 commit 0e159a5

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

clippy_lints/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11711171
LintId::of(&shadow::SHADOW_REUSE),
11721172
LintId::of(&shadow::SHADOW_SAME),
11731173
LintId::of(&strings::STRING_ADD),
1174+
LintId::of(&types::RC_BUFFER),
11741175
LintId::of(&unwrap_in_result::UNWRAP_IN_RESULT),
11751176
LintId::of(&verbose_file_reads::VERBOSE_FILE_READS),
11761177
LintId::of(&write::PRINT_STDOUT),
@@ -1504,7 +1505,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15041505
LintId::of(&types::CHAR_LIT_AS_U8),
15051506
LintId::of(&types::FN_TO_NUMERIC_CAST),
15061507
LintId::of(&types::FN_TO_NUMERIC_CAST_WITH_TRUNCATION),
1507-
LintId::of(&types::RC_BUFFER),
15081508
LintId::of(&types::REDUNDANT_ALLOCATION),
15091509
LintId::of(&types::TYPE_COMPLEXITY),
15101510
LintId::of(&types::UNIT_ARG),
@@ -1805,7 +1805,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
18051805
LintId::of(&slow_vector_initialization::SLOW_VECTOR_INITIALIZATION),
18061806
LintId::of(&stable_sort_primitive::STABLE_SORT_PRIMITIVE),
18071807
LintId::of(&types::BOX_VEC),
1808-
LintId::of(&types::RC_BUFFER),
18091808
LintId::of(&types::REDUNDANT_ALLOCATION),
18101809
LintId::of(&vec::USELESS_VEC),
18111810
]);

clippy_lints/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ declare_clippy_lint! {
242242
/// fn foo(interned: Rc<str>) { ... }
243243
/// ```
244244
pub RC_BUFFER,
245-
perf,
245+
restriction,
246246
"shared ownership of a buffer type"
247247
}
248248

src/lintlist/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,7 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
18881888
},
18891889
Lint {
18901890
name: "rc_buffer",
1891-
group: "perf",
1891+
group: "restriction",
18921892
desc: "shared ownership of a buffer type",
18931893
deprecation: None,
18941894
module: "types",

0 commit comments

Comments
 (0)