mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Auto merge of #9975 - xFrednet:0000-refutable-slice-pedantic, r=llogiq
Move `index_refutable_slice` to `pedantic` During the creation, I out this lint into the nursery group to let it run in the wild before moving it to a commonly used group. This move never happened until now, though. It should be safe, as Clippy and I have been using it for months and there are no open issues for is :) --- changelog: Move `index_refutable_slice` to `pedantic` (Now warn-by-default) [#9975](https://github.com/rust-lang/rust-clippy/pull/9975)
This commit is contained in:
commit
bfb973f1c7
@ -47,7 +47,7 @@ declare_clippy_lint! {
|
||||
/// ```
|
||||
#[clippy::version = "1.59.0"]
|
||||
pub INDEX_REFUTABLE_SLICE,
|
||||
nursery,
|
||||
pedantic,
|
||||
"avoid indexing on slices which could be destructed"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user