Use existing slice_pattern feature for SlicePattern
Co-authored-by: Ashley Mannix <kodraus@hey.com>
This commit is contained in:
parent
274e2993cb
commit
f51b68199c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user