Move rc_buffer lint into perf category
This commit is contained in:
parent
d0ddbb9d0d
commit
27200855c3
@ -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::CHAR_LIT_AS_U8),
|
||||||
LintId::of(&types::FN_TO_NUMERIC_CAST),
|
LintId::of(&types::FN_TO_NUMERIC_CAST),
|
||||||
LintId::of(&types::FN_TO_NUMERIC_CAST_WITH_TRUNCATION),
|
LintId::of(&types::FN_TO_NUMERIC_CAST_WITH_TRUNCATION),
|
||||||
|
LintId::of(&types::RC_BUFFER),
|
||||||
LintId::of(&types::REDUNDANT_ALLOCATION),
|
LintId::of(&types::REDUNDANT_ALLOCATION),
|
||||||
LintId::of(&types::TYPE_COMPLEXITY),
|
LintId::of(&types::TYPE_COMPLEXITY),
|
||||||
LintId::of(&types::UNIT_ARG),
|
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(&slow_vector_initialization::SLOW_VECTOR_INITIALIZATION),
|
||||||
LintId::of(&stable_sort_primitive::STABLE_SORT_PRIMITIVE),
|
LintId::of(&stable_sort_primitive::STABLE_SORT_PRIMITIVE),
|
||||||
LintId::of(&types::BOX_VEC),
|
LintId::of(&types::BOX_VEC),
|
||||||
|
LintId::of(&types::RC_BUFFER),
|
||||||
LintId::of(&types::REDUNDANT_ALLOCATION),
|
LintId::of(&types::REDUNDANT_ALLOCATION),
|
||||||
LintId::of(&vec::USELESS_VEC),
|
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(&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(&transmute::USELESS_TRANSMUTE),
|
LintId::of(&transmute::USELESS_TRANSMUTE),
|
||||||
LintId::of(&types::RC_BUFFER),
|
|
||||||
LintId::of(&use_self::USE_SELF),
|
LintId::of(&use_self::USE_SELF),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -241,7 +241,7 @@
|
|||||||
/// fn foo(interned: Rc<str>) { ... }
|
/// fn foo(interned: Rc<str>) { ... }
|
||||||
/// ```
|
/// ```
|
||||||
pub RC_BUFFER,
|
pub RC_BUFFER,
|
||||||
nursery,
|
perf,
|
||||||
"shared ownership of a buffer type"
|
"shared ownership of a buffer type"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1853,7 +1853,7 @@
|
|||||||
},
|
},
|
||||||
Lint {
|
Lint {
|
||||||
name: "rc_buffer",
|
name: "rc_buffer",
|
||||||
group: "nursery",
|
group: "perf",
|
||||||
desc: "shared ownership of a buffer type",
|
desc: "shared ownership of a buffer type",
|
||||||
deprecation: None,
|
deprecation: None,
|
||||||
module: "types",
|
module: "types",
|
||||||
|
Loading…
Reference in New Issue
Block a user