Skip to content

Commit fa1a6d5

Browse files
committed
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.
1 parent a048337 commit fa1a6d5

File tree

1 file changed

+0
-2
lines changed
  • crates/oxc_allocator/src

1 file changed

+0
-2
lines changed

crates/oxc_allocator/src/vec.rs

-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ use crate::{Allocator, Box, String};
2222

2323
/// A `Vec` without [`Drop`], which stores its data in the arena allocator.
2424
///
25-
/// Should only be used for storing AST types.
26-
///
2725
/// Must NOT be used to store types which have a [`Drop`] implementation.
2826
/// `T::drop` will NOT be called on the `Vec`'s contents when the `Vec` is dropped.
2927
/// If `T` owns memory outside of the arena, this will be a memory leak.

0 commit comments

Comments
 (0)