Skip to content

Commit cd3a48f

Browse files
Rollup merge of #86797 - inquisitivecrystal:bound-cloned, r=jyn514
Stabilize `Bound::cloned()` This PR stabilizes the function `Bound::cloned()`. Closes #61356.
2 parents c02c26e + f2b21e2 commit cd3a48f

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

Diff for: library/core/src/ops/range.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -737,14 +737,13 @@ impl<T: Clone> Bound<&T> {
737737
/// # Examples
738738
///
739739
/// ```
740-
/// #![feature(bound_cloned)]
741740
/// use std::ops::Bound::*;
742741
/// use std::ops::RangeBounds;
743742
///
744743
/// assert_eq!((1..12).start_bound(), Included(&1));
745744
/// assert_eq!((1..12).start_bound().cloned(), Included(1));
746745
/// ```
747-
#[unstable(feature = "bound_cloned", issue = "61356")]
746+
#[stable(feature = "bound_cloned", since = "1.55.0")]
748747
pub fn cloned(self) -> Bound<T> {
749748
match self {
750749
Bound::Unbounded => Bound::Unbounded,

Diff for: library/core/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#![feature(array_map)]
55
#![feature(array_windows)]
66
#![feature(bool_to_option)]
7-
#![feature(bound_cloned)]
87
#![feature(box_syntax)]
98
#![feature(cell_update)]
109
#![feature(cfg_panic)]

Diff for: library/proc_macro/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#![feature(restricted_std)]
3232
#![feature(rustc_attrs)]
3333
#![feature(min_specialization)]
34-
#![feature(bound_cloned)]
3534
#![recursion_limit = "256"]
3635

3736
#[unstable(feature = "proc_macro_internals", issue = "27812")]

0 commit comments

Comments
 (0)