Skip to content

Commit

Permalink
Rollup merge of #118361 - Dylan-DPC:80626/stab/bound-map, r=Amanieu
Browse files Browse the repository at this point in the history
stabilise bound_map

Closes #86026
  • Loading branch information
matthiaskrgr authored Jan 16, 2024
2 parents 533cfde + a43dc2b commit 304a17a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/core/src/ops/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,6 @@ impl<T> Bound<T> {
/// # Examples
///
/// ```
/// #![feature(bound_map)]
/// use std::ops::Bound::*;
///
/// let bound_string = Included("Hello, World!");
Expand All @@ -719,7 +718,6 @@ impl<T> Bound<T> {
/// ```
///
/// ```
/// #![feature(bound_map)]
/// use std::ops::Bound;
/// use Bound::*;
///
Expand All @@ -728,7 +726,7 @@ impl<T> Bound<T> {
/// assert_eq!(unbounded_string.map(|s| s.len()), Unbounded);
/// ```
#[inline]
#[unstable(feature = "bound_map", issue = "86026")]
#[stable(feature = "bound_map", since = "CURRENT_RUSTC_VERSION")]
pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Bound<U> {
match self {
Unbounded => Unbounded,
Expand Down

0 comments on commit 304a17a

Please sign in to comment.