diff --git a/crates/oxc_traverse/src/context/mod.rs b/crates/oxc_traverse/src/context/mod.rs index 8dbe1f9744f17..7ba88f97b1105 100644 --- a/crates/oxc_traverse/src/context/mod.rs +++ b/crates/oxc_traverse/src/context/mod.rs @@ -1,4 +1,4 @@ -use oxc_allocator::{Allocator, Box, Vec as ArenaVec}; +use oxc_allocator::{Allocator, Box as ArenaBox, Vec as ArenaVec}; use oxc_ast::{ AstBuilder, ast::{Expression, IdentifierReference, Statement}, @@ -122,11 +122,11 @@ pub struct TraverseCtx<'a> { impl<'a> TraverseCtx<'a> { /// Allocate a node in the arena. /// - /// Returns a [`Box`]. + /// Returns a [`Box<'a, T>`](ArenaBox). /// /// Shortcut for `ctx.ast.alloc`. #[inline] - pub fn alloc(&self, node: T) -> Box<'a, T> { + pub fn alloc(&self, node: T) -> ArenaBox<'a, T> { self.ast.alloc(node) }