@@ -150,8 +150,8 @@ use self::spec_extend::SpecExtend;
150
150
mod spec_extend;
151
151
152
152
/// Default `Vec`, `DefVec`, `DecVeque`, `DefDecVeq` "cooperation" (`COOP_PREFERRED`) generic parameter.
153
- /// NOT for public use. It's exported only so that library/proc_macro (and other internals) can use this. TODO FIXME.
154
- #[ unstable( feature = "global_co_alloc_def " , issue = "none" ) ]
153
+ /// NOT for public use. It's exported only so that library/proc_macro (and other internals) can use this. FIXME.
154
+ #[ unstable( feature = "global_co_alloc_default " , issue = "none" ) ]
155
155
// pub const DEFAULT_COOP_PREFERRED: bool = true;
156
156
#[ macro_export]
157
157
macro_rules! DEFAULT_COOP_PREFERRED {
@@ -445,10 +445,10 @@ pub type DefVec<T, A = Global> = Vec<T, A, { DEFAULT_COOP_PREFERRED!() }>;
445
445
pub type WeVec < T , const WEIGHT : u8 > = Vec < T , Global , { WEIGHT > 127 } > ;
446
446
447
447
impl < T > Vec < T > {
448
- /*impl<T, const COOP_PREFERRED: bool> Vec<T, Global, COOP_PREFERRED>
449
- where
450
- [(); core::alloc::co_alloc_metadata_num_slots_with_preference::<Global>(COOP_PREFERRED)]:,
451
- {*/
448
+ /*impl<T, const COOP_PREFERRED: bool> Vec<T, Global, COOP_PREFERRED>
449
+ where
450
+ [(); core::alloc::co_alloc_metadata_num_slots_with_preference::<Global>(COOP_PREFERRED)]:,
451
+ {*/
452
452
/// Constructs a new, empty `Vec<T>`.
453
453
///
454
454
/// The vector will not allocate until elements are pushed onto it.
@@ -525,7 +525,6 @@ where
525
525
pub fn with_capacity ( capacity : usize ) -> Self {
526
526
Self :: with_capacity_in ( capacity, Global )
527
527
}
528
-
529
528
}
530
529
531
530
////////////////////////////////////////////////////////////////////////////////
@@ -546,7 +545,7 @@ where
546
545
Vec { buf : RawVec :: NEW , len : 0 }
547
546
}
548
547
549
- // TODO @FIXME document co-allocation
548
+ // @FIXME document co-allocation
550
549
/// Constructs a new, empty `Vec<T>` with at least the specified capacity.
551
550
///
552
551
/// The vector will be able to hold at least `capacity` elements without
0 commit comments