mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
Auto merge of #29523 - durka:patch-9, r=alexcrichton
`Rc::try_unwrap` and `Rc::make_mut` are stable since 1.4.0, but the example code still has `#![feature(rc_unique)]`. Ideally the stable and beta docs would be updated, but I don't think that's possible :(
This commit is contained in:
@@ -227,8 +227,6 @@ pub fn new(value: T) -> Rc<T> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(rc_unique)]
|
||||
///
|
||||
/// use std::rc::Rc;
|
||||
///
|
||||
/// let x = Rc::new(3);
|
||||
@@ -370,7 +368,6 @@ pub fn make_unique(&mut self) -> &mut T {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(rc_unique)]
|
||||
/// use std::rc::Rc;
|
||||
///
|
||||
/// let mut data = Rc::new(5);
|
||||
|
||||
Reference in New Issue
Block a user