Stabilize Bound::cloned()
This commit is contained in:
parent
a435b49e86
commit
f2b21e2d0b
@ -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,
|
||||
|
@ -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)]
|
||||
|
@ -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")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user