mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
Make indexing_slicing a restriction lint (fixes #2933)
This commit is contained in:
parent
55a38382c8
commit
f43d0e53b2
2 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ declare_clippy_lint! {
|
|||
/// ```
|
||||
declare_clippy_lint! {
|
||||
pub INDEXING_SLICING,
|
||||
pedantic,
|
||||
restriction,
|
||||
"indexing/slicing usage"
|
||||
}
|
||||
|
||||
|
|
|
@ -407,6 +407,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
|
|||
arithmetic::INTEGER_ARITHMETIC,
|
||||
assign_ops::ASSIGN_OPS,
|
||||
else_if_without_else::ELSE_IF_WITHOUT_ELSE,
|
||||
indexing_slicing::INDEXING_SLICING,
|
||||
inherent_impl::MULTIPLE_INHERENT_IMPL,
|
||||
literal_representation::DECIMAL_LITERAL_REPRESENTATION,
|
||||
mem_forget::MEM_FORGET,
|
||||
|
@ -437,7 +438,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
|
|||
enum_variants::PUB_ENUM_VARIANT_NAMES,
|
||||
enum_variants::STUTTER,
|
||||
if_not_else::IF_NOT_ELSE,
|
||||
indexing_slicing::INDEXING_SLICING,
|
||||
infinite_iter::MAYBE_INFINITE_ITER,
|
||||
items_after_statements::ITEMS_AFTER_STATEMENTS,
|
||||
matches::SINGLE_MATCH_ELSE,
|
||||
|
|
Loading…
Reference in a new issue