We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74c7880 commit bc2ecc9Copy full SHA for bc2ecc9
clippy_lints/src/array_indexing.rs
@@ -43,9 +43,8 @@ declare_lint! {
43
/// x[2];
44
/// &x[0..2];
45
/// ```
46
-declare_lint! {
+declare_restriction_lint! {
47
pub INDEXING_SLICING,
48
- Allow,
49
"indexing/slicing usage"
50
}
51
clippy_lints/src/lib.rs
@@ -260,11 +260,11 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
260
reg.register_lint_group("clippy_restrictions", vec![
261
arithmetic::FLOAT_ARITHMETIC,
262
arithmetic::INTEGER_ARITHMETIC,
263
+ array_indexing::INDEXING_SLICING,
264
assign_ops::ASSIGN_OPS,
265
]);
266
267
reg.register_lint_group("clippy_pedantic", vec![
- array_indexing::INDEXING_SLICING,
268
booleans::NONMINIMAL_BOOL,
269
enum_glob_use::ENUM_GLOB_USE,
270
enum_variants::STUTTER,
0 commit comments