Skip to content

Commit f51b681

Browse files
ijacksonKodrAus
andcommitted
Use existing slice_pattern feature for SlicePattern
Co-authored-by: Ashley Mannix <[email protected]>
1 parent 274e299 commit f51b681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3219,7 +3219,7 @@ impl<T> Default for &mut [T] {
32193219
}
32203220
}
32213221

3222-
#[unstable(feature = "x", issue = "none")]
3222+
#[unstable(feature = "slice_pattern", reason = "stopgap trait for slice patterns", issue = "56345")]
32233223
/// Patterns in slices - currently, only used by `strip_prefix` and `strip_suffix`. At a future
32243224
/// point, we hope to generalise `core::str::Pattern` (which at the time of writing is limited to
32253225
/// `str`) to slices, and then this trait will be replaced or abolished.

0 commit comments

Comments
 (0)