Use existing slice_pattern feature for SlicePattern

Co-authored-by: Ashley Mannix <kodraus@hey.com>
This commit is contained in:
Ian Jackson 2020-12-12 13:41:38 +00:00 committed by Ian Jackson
parent 274e2993cb
commit f51b68199c

View File

@ -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.