Skip to content

Commit 80059df

Browse files
committed
Pin stabilization: fix doctests
1 parent 987a5e4 commit 80059df

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/libcore/marker.rs

-1
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,6 @@ unsafe impl<T: ?Sized> Freeze for &mut T {}
621621
/// So this, for example, can only be done on types implementing `Unpin`:
622622
///
623623
/// ```rust
624-
/// #![feature(pin)]
625624
/// use std::mem::replace;
626625
/// use std::pin::Pin;
627626
///

src/libcore/pin.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
//! # Examples
4444
//!
4545
//! ```rust
46-
//! #![feature(pin)]
47-
//!
4846
//! use std::pin::Pin;
4947
//! use std::marker::PhantomPinned;
5048
//! use std::ptr::NonNull;
@@ -78,7 +76,7 @@
7876
//! // we know this is safe because modifying a field doesn't move the whole struct
7977
//! unsafe {
8078
//! let mut_ref: Pin<&mut Self> = Pin::as_mut(&mut boxed);
81-
//! Pin::get_mut_unchecked(mut_ref).slice = slice;
79+
//! Pin::get_unchecked_mut(mut_ref).slice = slice;
8280
//! }
8381
//! boxed
8482
//! }

0 commit comments

Comments
 (0)