From fa1a6d5ede378eb41b584393745ed0cd39a03c2b Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Thu, 16 Jan 2025 19:18:16 +0000 Subject: [PATCH] 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. --- crates/oxc_allocator/src/vec.rs | 2 -- 1 file changed, 2 deletions(-) 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.