From f51b68199c80288185f8619c5a2e34cc1cfd85c4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 12 Dec 2020 13:41:38 +0000 Subject: [PATCH] Use existing slice_pattern feature for SlicePattern Co-authored-by: Ashley Mannix --- library/core/src/slice/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 0556bb1e633..5f1fe08fe81 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -3219,7 +3219,7 @@ fn default() -> Self { } } -#[unstable(feature = "x", issue = "none")] +#[unstable(feature = "slice_pattern", reason = "stopgap trait for slice patterns", issue = "56345")] /// Patterns in slices - currently, only used by `strip_prefix` and `strip_suffix`. At a future /// point, we hope to generalise `core::str::Pattern` (which at the time of writing is limited to /// `str`) to slices, and then this trait will be replaced or abolished.