docs(allocator): update docs for Vec (#8555)

Remove line from `oxc_allocator::Vec` docs saying "Should only be used for storing AST types.". We are now using `Vec` in `Semantic` too, and there's no problem with that.
This commit is contained in:
overlookmotel 2025-01-16 19:18:16 +00:00
parent a04833787d
commit fa1a6d5ede

View file

@ -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.