diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-01-10 21:11:55 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-01-20 11:09:23 +0100 |
| commit | 602a445b92b37ec6af4d3d7f331e1a0d1360b8d2 (patch) | |
| tree | 392c16311de525e9573a63486a6e7d32469b6fb1 /src/liballoc/boxed.rs | |
| parent | 76b686f78d97a90d9a563a0446de2d86b437e78e (diff) | |
| download | rust-602a445b92b37ec6af4d3d7f331e1a0d1360b8d2.tar.gz rust-602a445b92b37ec6af4d3d7f331e1a0d1360b8d2.zip | |
Assign its own tracking issue to Box::into_raw_non_null
https://github.com/rust-lang/rust/issues/47336
Diffstat (limited to 'src/liballoc/boxed.rs')
| -rw-r--r-- | src/liballoc/boxed.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 1f1e98a2b60..bfe23ddeca3 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -317,12 +317,14 @@ impl<T: ?Sized> Box<T> { /// # Examples /// /// ``` + /// #![feature(box_into_raw_non_null)] + /// /// fn main() { /// let x = Box::new(5); /// let ptr = Box::into_raw_non_null(x); /// } /// ``` - #[unstable(feature = "nonnull", issue = "27730")] + #[unstable(feature = "box_into_raw_non_null", issue = "47336")] #[inline] pub fn into_raw_non_null(b: Box<T>) -> NonNull<T> { Box::into_unique(b).into() |
