@@ -566,13 +566,13 @@ impl<T> Vec<T> {
566
566
///
567
567
/// # Examples
568
568
///
569
+ // FIXME Update this when vec_into_raw_parts is stabilized
569
570
/// ```
570
571
/// use std::ptr;
571
572
/// use std::mem;
572
573
///
573
574
/// let v = vec![1, 2, 3];
574
575
///
575
- // FIXME Update this when vec_into_raw_parts is stabilized
576
576
/// // Prevent running `v`'s destructor so we are in complete control
577
577
/// // of the allocation.
578
578
/// let mut v = mem::ManuallyDrop::new(v);
@@ -674,6 +674,7 @@ impl<T> Vec<T> {
674
674
///
675
675
/// # Examples
676
676
///
677
+ // FIXME Update this when vec_into_raw_parts is stabilized
677
678
/// ```
678
679
/// #![feature(box_vec_non_null)]
679
680
///
@@ -682,7 +683,6 @@ impl<T> Vec<T> {
682
683
///
683
684
/// let v = vec![1, 2, 3];
684
685
///
685
- // FIXME Update this when vec_into_raw_parts is stabilized
686
686
/// // Prevent running `v`'s destructor so we are in complete control
687
687
/// // of the allocation.
688
688
/// let mut v = mem::ManuallyDrop::new(v);
@@ -994,6 +994,7 @@ impl<T, A: Allocator> Vec<T, A> {
994
994
///
995
995
/// # Examples
996
996
///
997
+ // FIXME Update this when vec_into_raw_parts is stabilized
997
998
/// ```
998
999
/// #![feature(allocator_api)]
999
1000
///
@@ -1007,7 +1008,6 @@ impl<T, A: Allocator> Vec<T, A> {
1007
1008
/// v.push(2);
1008
1009
/// v.push(3);
1009
1010
///
1010
- // FIXME Update this when vec_into_raw_parts is stabilized
1011
1011
/// // Prevent running `v`'s destructor so we are in complete control
1012
1012
/// // of the allocation.
1013
1013
/// let mut v = mem::ManuallyDrop::new(v);
@@ -1114,6 +1114,7 @@ impl<T, A: Allocator> Vec<T, A> {
1114
1114
///
1115
1115
/// # Examples
1116
1116
///
1117
+ // FIXME Update this when vec_into_raw_parts is stabilized
1117
1118
/// ```
1118
1119
/// #![feature(allocator_api, box_vec_non_null)]
1119
1120
///
@@ -1127,7 +1128,6 @@ impl<T, A: Allocator> Vec<T, A> {
1127
1128
/// v.push(2);
1128
1129
/// v.push(3);
1129
1130
///
1130
- // FIXME Update this when vec_into_raw_parts is stabilized
1131
1131
/// // Prevent running `v`'s destructor so we are in complete control
1132
1132
/// // of the allocation.
1133
1133
/// let mut v = mem::ManuallyDrop::new(v);
0 commit comments