diff options
| author | Aris Merchant <22333129+inquisitivecrystal@users.noreply.github.com> | 2021-07-01 17:05:08 -0700 |
|---|---|---|
| committer | Aris Merchant <22333129+inquisitivecrystal@users.noreply.github.com> | 2021-07-01 17:09:57 -0700 |
| commit | f2b21e2d0b66c58ec2eb2e23c792e12b214c3be2 (patch) | |
| tree | 72e6110db586d226bcac6a57389238759dbdb56b | |
| parent | a435b49e86d16e98dcc6595dd471f95e823f41aa (diff) | |
| download | rust-f2b21e2d0b66c58ec2eb2e23c792e12b214c3be2.tar.gz rust-f2b21e2d0b66c58ec2eb2e23c792e12b214c3be2.zip | |
Stabilize `Bound::cloned()`
| -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")] |
