Skip to content

Commit

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

stabilise bound_map

Closes rust-lang#86026
  • Loading branch information
rust-timer committed Jan 16, 2024
2 parents bf2637f + a43dc2b commit 2db8fda
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 2db8fda

Please sign in to comment.