Skip to content

Commit b249844

Browse files
authored
Rollup merge of #78608 - ThinkChaos:stabilize_refcell_take, r=m-ou-se
Stabilize refcell_take Tracking Issue: #71395 ``@KodrAus`` nominated this for FCP, so here's a PR! I've never made a stabilization PR, so please mention if there's anything I can improve, thanks.
2 parents 186ec64 + 5c6689b commit b249844

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

library/core/src/cell.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,6 @@ impl<T: Default> RefCell<T> {
10271027
/// # Examples
10281028
///
10291029
/// ```
1030-
/// #![feature(refcell_take)]
10311030
/// use std::cell::RefCell;
10321031
///
10331032
/// let c = RefCell::new(5);
@@ -1036,7 +1035,7 @@ impl<T: Default> RefCell<T> {
10361035
/// assert_eq!(five, 5);
10371036
/// assert_eq!(c.into_inner(), 0);
10381037
/// ```
1039-
#[unstable(feature = "refcell_take", issue = "71395")]
1038+
#[stable(feature = "refcell_take", since = "1.50.0")]
10401039
pub fn take(&self) -> T {
10411040
self.replace(Default::default())
10421041
}

library/std/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@
297297
#![feature(raw)]
298298
#![feature(raw_ref_macros)]
299299
#![feature(ready_macro)]
300-
#![feature(refcell_take)]
301300
#![feature(rustc_attrs)]
302301
#![feature(rustc_private)]
303302
#![feature(shrink_to)]

0 commit comments

Comments
 (0)