about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-16 17:55:21 +0100
committerGitHub <noreply@github.com>2024-01-16 17:55:21 +0100
commit304a17a4750428d2d791dfe7cda69b0cb2e4fb0d (patch)
tree151a5c4007cb0c1185e2a380fd86c35716506b23
parent533cfde67caa9c15cc01a685d247bb92ace96e81 (diff)
parenta43dc2b67cee8e56cbe73d36ec0a99c6b0f2dd59 (diff)
downloadrust-304a17a4750428d2d791dfe7cda69b0cb2e4fb0d.tar.gz
rust-304a17a4750428d2d791dfe7cda69b0cb2e4fb0d.zip
Rollup merge of #118361 - Dylan-DPC:80626/stab/bound-map, r=Amanieu
stabilise bound_map

Closes https://github.com/rust-lang/rust/issues/86026
-rw-r--r--library/core/src/ops/range.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/core/src/ops/range.rs b/library/core/src/ops/range.rs
index b419a738fbe..e809273c9ed 100644
--- a/library/core/src/ops/range.rs
+++ b/library/core/src/ops/range.rs
@@ -710,7 +710,6 @@ impl<T> Bound<T> {
     /// # Examples
     ///
     /// ```
-    /// #![feature(bound_map)]
     /// use std::ops::Bound::*;
     ///
     /// let bound_string = Included("Hello, World!");
@@ -719,7 +718,6 @@ impl<T> Bound<T> {
     /// ```
     ///
     /// ```
-    /// #![feature(bound_map)]
     /// use std::ops::Bound;
     /// use Bound::*;
     ///
@@ -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,