Stabilize Bound::cloned()

This commit is contained in:
Aris Merchant 2021-07-01 17:05:08 -07:00
parent a435b49e86
commit f2b21e2d0b
3 changed files with 1 additions and 4 deletions

View File

@ -737,14 +737,13 @@ impl<T: Clone> Bound<&T> {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(bound_cloned)]
/// use std::ops::Bound::*; /// use std::ops::Bound::*;
/// use std::ops::RangeBounds; /// use std::ops::RangeBounds;
/// ///
/// assert_eq!((1..12).start_bound(), Included(&1)); /// assert_eq!((1..12).start_bound(), Included(&1));
/// assert_eq!((1..12).start_bound().cloned(), 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> { pub fn cloned(self) -> Bound<T> {
match self { match self {
Bound::Unbounded => Bound::Unbounded, Bound::Unbounded => Bound::Unbounded,

View File

@ -4,7 +4,6 @@
#![feature(array_map)] #![feature(array_map)]
#![feature(array_windows)] #![feature(array_windows)]
#![feature(bool_to_option)] #![feature(bool_to_option)]
#![feature(bound_cloned)]
#![feature(box_syntax)] #![feature(box_syntax)]
#![feature(cell_update)] #![feature(cell_update)]
#![feature(cfg_panic)] #![feature(cfg_panic)]

View File

@ -31,7 +31,6 @@
#![feature(restricted_std)] #![feature(restricted_std)]
#![feature(rustc_attrs)] #![feature(rustc_attrs)]
#![feature(min_specialization)] #![feature(min_specialization)]
#![feature(bound_cloned)]
#![recursion_limit = "256"] #![recursion_limit = "256"]
#[unstable(feature = "proc_macro_internals", issue = "27812")] #[unstable(feature = "proc_macro_internals", issue = "27812")]