diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-07-02 11:35:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-02 11:35:31 +0200 |
| commit | cd3a48fdb650f6ce7c6c8a31d2136073fc3338f5 (patch) | |
| tree | 6506c14a5c81708d7d5025208d8a0d91c66000eb | |
| parent | c02c26e393e77380f196968f6fd6d33ff8bd7d3e (diff) | |
| parent | f2b21e2d0b66c58ec2eb2e23c792e12b214c3be2 (diff) | |
| download | rust-cd3a48fdb650f6ce7c6c8a31d2136073fc3338f5.tar.gz rust-cd3a48fdb650f6ce7c6c8a31d2136073fc3338f5.zip | |
Rollup merge of #86797 - inquisitivecrystal:bound-cloned, r=jyn514
Stabilize `Bound::cloned()` This PR stabilizes the function `Bound::cloned()`. Closes #61356.
| -rw-r--r-- | library/core/src/ops/range.rs | 3 | ||||
| -rw-r--r-- | library/core/tests/lib.rs | 1 | ||||
| -rw-r--r-- | library/proc_macro/src/lib.rs | 1 |
3 files changed, 1 insertions, 4 deletions
diff --git a/library/core/src/ops/range.rs b/library/core/src/ops/range.rs index bb948376bc7..9bf0382312e 100644 --- a/library/core/src/ops/range.rs +++ b/library/core/src/ops/range.rs @@ -737,14 +737,13 @@ impl<T: Clone> Bound<&T> { /// # Examples /// /// ``` - /// #![feature(bound_cloned)] /// use std::ops::Bound::*; /// use std::ops::RangeBounds; /// /// assert_eq!((1..12).start_bound(), Included(&1)); /// assert_eq!((1..12).start_bound().cloned(), Included(1)); /// ``` - #[unstable(feature = "bound_cloned", issue = "61356")] + #[stable(feature = "bound_cloned", since = "1.55.0")] pub fn cloned(self) -> Bound<T> { match self { Bound::Unbounded => Bound::Unbounded, diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs index 56af3848584..dee2478886d 100644 --- a/library/core/tests/lib.rs +++ b/library/core/tests/lib.rs @@ -4,7 +4,6 @@ #![feature(array_map)] #![feature(array_windows)] #![feature(bool_to_option)] -#![feature(bound_cloned)] #![feature(box_syntax)] #![feature(cell_update)] #![feature(cfg_panic)] diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs index 7586229504c..9b155db6d7b 100644 --- a/library/proc_macro/src/lib.rs +++ b/library/proc_macro/src/lib.rs @@ -31,7 +31,6 @@ #![feature(restricted_std)] #![feature(rustc_attrs)] #![feature(min_specialization)] -#![feature(bound_cloned)] #![recursion_limit = "256"] #[unstable(feature = "proc_macro_internals", issue = "27812")] |
