Doc: remove a "safety note" made obsolete by dropck for TypedArena

https://botbot.me/mozilla/rust-internals/2015-04-10/?msg=36316959&page=6
This commit is contained in:
Simon Sapin 2015-04-10 18:30:52 +02:00
parent 9539627ac7
commit c2fa1f769d

View 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>,