about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-11-29 11:16:01 +0000
committerbors <bors@rust-lang.org>2022-11-29 11:16:01 +0000
commitbfb973f1c7453789d2f29b5c90a88e2aaf3eabc4 (patch)
tree506b598f0fd7b0d28ee80856e832d1a7238ecea0
parent4cda21dc42d64dea645be70079d2e88a914a96f5 (diff)
parent6bbf16660bf218b16d64d812b4c3d916cf827a88 (diff)
downloadrust-bfb973f1c7453789d2f29b5c90a88e2aaf3eabc4.tar.gz
rust-bfb973f1c7453789d2f29b5c90a88e2aaf3eabc4.zip
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)
-rw-r--r--clippy_lints/src/index_refutable_slice.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/index_refutable_slice.rs b/clippy_lints/src/index_refutable_slice.rs
index ee5f10da5b8..cf35b1f175c 100644
--- a/clippy_lints/src/index_refutable_slice.rs
+++ b/clippy_lints/src/index_refutable_slice.rs
@@ -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"
 }