@@ -51,7 +51,7 @@ impl fmt::Display for AllocError {
51
51
/// (Non-Null) Pointer and coallocation metadata.
52
52
#[ unstable( feature = "global_co_alloc_meta" , issue = "none" ) ]
53
53
#[ derive( Clone , Copy , Debug ) ]
54
- pub struct PtrAndMeta < M : ~ const CoAllocMetaBase > {
54
+ pub struct PtrAndMeta < M : CoAllocMetaBase > {
55
55
pub ptr : NonNull < u8 > ,
56
56
pub meta : M ,
57
57
}
@@ -60,7 +60,7 @@ pub struct PtrAndMeta<M: ~const CoAllocMetaBase> {
60
60
#[ unstable( feature = "global_co_alloc_meta" , issue = "none" ) ]
61
61
#[ derive( Clone , Copy , Debug ) ]
62
62
/// Used for results (from `CoAllocator`'s functions, where applicable).
63
- pub struct SliceAndMeta < M : ~ const CoAllocMetaBase > {
63
+ pub struct SliceAndMeta < M : CoAllocMetaBase > {
64
64
pub slice : NonNull < [ u8 ] > ,
65
65
pub meta : M ,
66
66
}
@@ -189,7 +189,7 @@ pub unsafe trait Allocator {
189
189
///
190
190
/// @FIXME Validate (preferrable at compile time, otherwise as a test) that this type's
191
191
/// alignment <= `usize` alignment.
192
- type CoAllocMeta : ~ const CoAllocMetaBase = CoAllocMetaPlain ;
192
+ type CoAllocMeta : CoAllocMetaBase = CoAllocMetaPlain ;
193
193
194
194
/// Attempts to allocate a block of memory.
195
195
///
0 commit comments