Skip to content

Commit

Permalink
Doc: remove a "safety note" made obsolete by dropck for TypedArena
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Apr 10, 2015
1 parent 9539627 commit c2fa1f7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/libarena/lib.rs
Expand Up @@ -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>,
Expand Down

0 comments on commit c2fa1f7

Please sign in to comment.