Rollup merge of #24282 - SimonSapin:patch-6, r=pnkfelix
https://botbot.me/mozilla/rust-internals/2015-04-10/?msg=36316959&page=6
This commit is contained in:
commit
1e3fd25b6b
|
@ -362,10 +362,6 @@ fn test_arena_destructors_fail() {
|
|||
}
|
||||
|
||||
/// A faster arena that can hold objects of only one type.
|
||||
///
|
||||
/// Safety note: Modifying objects in the arena that have already had their
|
||||
/// `drop` destructors run can cause leaks, because the destructor will not
|
||||
/// run again for these objects.
|
||||
pub struct TypedArena<T> {
|
||||
/// A pointer to the next object to be allocated.
|
||||
ptr: Cell<*const T>,
|
||||
|
|
Loading…
Reference in New Issue