Skip to content

stabilise bound_map #118361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
stabilise bound_map
  • Loading branch information
Dylan-DPC committed Nov 27, 2023
commit a43dc2b67cee8e56cbe73d36ec0a99c6b0f2dd59
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