about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-10-26 02:45:56 +0900
committerGitHub <noreply@github.com>2019-10-26 02:45:56 +0900
commita808ba374f7fdf6fea3f0bde9ce09f98f0db7d2d (patch)
tree53532045ef05b19d5dd34f08575ee645329ae6ab /src/libcore
parent23f890f10202a71168c6424da0cdf94135d3c40c (diff)
parent6600cf604091a99bba990d41b93885b40c02a97d (diff)
downloadrust-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.rs1
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>,