@@ -51,7 +51,7 @@ impl fmt::Display for AllocError {
5151/// (Non-Null) Pointer and coallocation metadata.
5252#[ unstable( feature = "global_co_alloc_meta" , issue = "none" ) ]
5353#[ derive( Clone , Copy , Debug ) ]
54- pub struct PtrAndMeta < M : ~ const CoAllocMetaBase > {
54+ pub struct PtrAndMeta < M : CoAllocMetaBase > {
5555 pub ptr : NonNull < u8 > ,
5656 pub meta : M ,
5757}
@@ -60,7 +60,7 @@ pub struct PtrAndMeta<M: ~const CoAllocMetaBase> {
6060#[ unstable( feature = "global_co_alloc_meta" , issue = "none" ) ]
6161#[ derive( Clone , Copy , Debug ) ]
6262/// Used for results (from `CoAllocator`'s functions, where applicable).
63- pub struct SliceAndMeta < M : ~ const CoAllocMetaBase > {
63+ pub struct SliceAndMeta < M : CoAllocMetaBase > {
6464 pub slice : NonNull < [ u8 ] > ,
6565 pub meta : M ,
6666}
@@ -189,7 +189,7 @@ pub unsafe trait Allocator {
189189 ///
190190 /// @FIXME Validate (preferrable at compile time, otherwise as a test) that this type's
191191 /// alignment <= `usize` alignment.
192- type CoAllocMeta : ~ const CoAllocMetaBase = CoAllocMetaPlain ;
192+ type CoAllocMeta : CoAllocMetaBase = CoAllocMetaPlain ;
193193
194194 /// Attempts to allocate a block of memory.
195195 ///
0 commit comments