]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #24282 - SimonSapin:patch-6, r=pnkfelix
authorManish Goregaokar <manishsmail@gmail.com>
Sat, 11 Apr 2015 13:35:17 +0000 (19:05 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Sat, 11 Apr 2015 13:35:17 +0000 (19:05 +0530)
 https://botbot.me/mozilla/rust-internals/2015-04-10/?msg=36316959&page=6

src/libarena/lib.rs

index 3f85af9719778ea780a7fd983b09674e732fe607..e190fb422261534c83fed4f8f3825c5c464ca95e 100644 (file)
@@ -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>,