INDEXING_SLICING should probably be a restriction lint.
This commit is contained in:
@@ -43,9 +43,8 @@ declare_lint! {
|
||||
/// x[2];
|
||||
/// &x[0..2];
|
||||
/// ```
|
||||
declare_lint! {
|
||||
declare_restriction_lint! {
|
||||
pub INDEXING_SLICING,
|
||||
Allow,
|
||||
"indexing/slicing usage"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user