about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-07 09:16:46 +0000
committerbors <bors@rust-lang.org>2020-09-07 09:16:46 +0000
commitf76eda3f01ba8e9714b579dc3e563ee973ade83d (patch)
treeba3a7b46c358ebeb4d4295272734a27b22c1d01b
parente114d6228b948ce056de0bcdec2603c8e89d3727 (diff)
parentcf529c767e14f92f791c3c534a27810fb2bae513 (diff)
downloadrust-f76eda3f01ba8e9714b579dc3e563ee973ade83d.tar.gz
rust-f76eda3f01ba8e9714b579dc3e563ee973ade83d.zip
Auto merge of #76395 - dylni:adjust-documentation-for-slice-check-range, r=jyn514
Adjust documentation for slice_check_range

Adjust documentation for #76393.
-rw-r--r--library/core/src/slice/mod.rs2
-rw-r--r--src/doc/unstable-book/src/library-features/slice-check-range.md10
2 files changed, 11 insertions, 1 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs
index aa9ad395b18..c274ddf81bb 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -398,7 +398,7 @@ impl<T> [T] {
     ///
     /// [`Index::index`]: ops::Index::index
     #[track_caller]
-    #[unstable(feature = "slice_check_range", issue = "none")]
+    #[unstable(feature = "slice_check_range", issue = "76393")]
     pub fn check_range<R: RangeBounds<usize>>(&self, range: R) -> Range<usize> {
         let start = match range.start_bound() {
             Bound::Included(&start) => start,
diff --git a/src/doc/unstable-book/src/library-features/slice-check-range.md b/src/doc/unstable-book/src/library-features/slice-check-range.md
new file mode 100644
index 00000000000..83e5738cf54
--- /dev/null
+++ b/src/doc/unstable-book/src/library-features/slice-check-range.md
@@ -0,0 +1,10 @@
+# `slice_check_range`
+
+The tracking issue for this feature is: [#76393]
+
+------------------------
+
+This adds [`slice::check_range`].
+
+[#76393]: https://github.com/rust-lang/rust/issues/76393
+[`slice::check_range`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.check_range