diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2019-10-26 02:45:56 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-26 02:45:56 +0900 |
| commit | a808ba374f7fdf6fea3f0bde9ce09f98f0db7d2d (patch) | |
| tree | 53532045ef05b19d5dd34f08575ee645329ae6ab /src/libcore | |
| parent | 23f890f10202a71168c6424da0cdf94135d3c40c (diff) | |
| parent | 6600cf604091a99bba990d41b93885b40c02a97d (diff) | |
| download | rust-a808ba374f7fdf6fea3f0bde9ce09f98f0db7d2d.tar.gz rust-a808ba374f7fdf6fea3f0bde9ce09f98f0db7d2d.zip | |
Rollup merge of #65705 - shepmaster:vec-into-raw, r=SimonSapin
Add {String,Vec}::into_raw_parts
Aspects to address:
- [x] Create a tracking issue
- #65816
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/intrinsics.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index b240d059114..4655d39fb8f 100644 --- a/src/libcore/intrinsics.rs +++ b/src/libcore/intrinsics.rs @@ -874,6 +874,7 @@ extern "rust-intrinsic" { /// // the original inner type (`&i32`) to the converted inner type /// // (`Option<&i32>`), so read the nomicon pages linked above. /// let v_from_raw = unsafe { + // FIXME Update this when vec_into_raw_parts is stabilized /// // Ensure the original vector is not dropped. /// let mut v_clone = std::mem::ManuallyDrop::new(v_clone); /// Vec::from_raw_parts(v_clone.as_mut_ptr() as *mut Option<&i32>, |
