Skip to content

Commit

Permalink
Use existing slice_pattern feature for SlicePattern
Browse files Browse the repository at this point in the history
Co-authored-by: Ashley Mannix <kodraus@hey.com>
  • Loading branch information
ijackson and KodrAus committed Dec 27, 2020
1 parent 274e299 commit f51b681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/slice/mod.rs
Expand Up @@ -3219,7 +3219,7 @@ impl<T> Default for &mut [T] {
}
}

#[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.
Expand Down

0 comments on commit f51b681

Please sign in to comment.