From c2fa1f769da0847581f1b43df5dd03818d418fa3 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 10 Apr 2015 18:30:52 +0200 Subject: [PATCH] Doc: remove a "safety note" made obsolete by dropck for TypedArena https://botbot.me/mozilla/rust-internals/2015-04-10/?msg=36316959&page=6 --- src/libarena/lib.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libarena/lib.rs b/src/libarena/lib.rs index 3f85af97197..e190fb42226 100644 --- a/src/libarena/lib.rs +++ b/src/libarena/lib.rs @@ -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 { /// A pointer to the next object to be allocated. ptr: Cell<*const T>,