diff --git a/crates/oxc_allocator/src/vec.rs b/crates/oxc_allocator/src/vec.rs index c72ff61d1a42e..37aa49d2afdc5 100644 --- a/crates/oxc_allocator/src/vec.rs +++ b/crates/oxc_allocator/src/vec.rs @@ -22,8 +22,6 @@ use crate::{Allocator, Box, String}; /// A `Vec` without [`Drop`], which stores its data in the arena allocator. /// -/// Should only be used for storing AST types. -/// /// Must NOT be used to store types which have a [`Drop`] implementation. /// `T::drop` will NOT be called on the `Vec`'s contents when the `Vec` is dropped. /// If `T` owns memory outside of the arena, this will be a memory leak.