File tree 1 file changed +0
-5
lines changed
1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -364,7 +364,6 @@ impl fmt::Display for AllocErr {
364
364
/// The `CannotReallocInPlace` error is used when `grow_in_place` or
365
365
/// `shrink_in_place` were unable to reuse the given memory block for
366
366
/// a requested layout.
367
- // FIXME: should this be in libcore or liballoc?
368
367
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
369
368
#[ derive( Clone , PartialEq , Eq , Debug ) ]
370
369
pub struct CannotReallocInPlace ;
@@ -456,10 +455,6 @@ impl From<LayoutErr> for CollectionAllocErr {
456
455
/// The `GlobalAlloc` trait is an `unsafe` trait for a number of reasons, and
457
456
/// implementors must ensure that they adhere to these contracts:
458
457
///
459
- /// * Pointers returned from allocation functions must point to valid memory and
460
- /// retain their validity until at least the instance of `GlobalAlloc` is dropped
461
- /// itself.
462
- ///
463
458
/// * It's undefined behavior if global allocators unwind. This restriction may
464
459
/// be lifted in the future, but currently a panic from any of these
465
460
/// functions may lead to memory unsafety.
You can’t perform that action at this time.
0 commit comments