diff --git a/crates/oxc_traverse/scripts/lib/ancestor.mjs b/crates/oxc_traverse/scripts/lib/ancestor.mjs index 04e88f37732dd..c04d22c29aabb 100644 --- a/crates/oxc_traverse/scripts/lib/ancestor.mjs +++ b/crates/oxc_traverse/scripts/lib/ancestor.mjs @@ -110,7 +110,6 @@ export default function generateAncestorsCode(types) { } return ` - #![allow(unused_imports)] #![expect( clippy::cast_ptr_alignment, clippy::elidable_lifetime_names, @@ -123,7 +122,7 @@ export default function generateAncestorsCode(types) { use oxc_allocator::{Address, Box, GetAddress, Vec}; use oxc_ast::ast::*; - use oxc_syntax::{comment_node::CommentNodeId, scope::ScopeId}; + use oxc_syntax::scope::ScopeId; /// Type of [\`Ancestor\`]. /// Used in [\`crate::TraverseCtx::retag_stack\`]. diff --git a/crates/oxc_traverse/src/generated/ancestor.rs b/crates/oxc_traverse/src/generated/ancestor.rs index 7d4a796bae5d5..1983228d35133 100644 --- a/crates/oxc_traverse/src/generated/ancestor.rs +++ b/crates/oxc_traverse/src/generated/ancestor.rs @@ -2,7 +2,6 @@ // Generated by `oxc_traverse/scripts/build.mjs`. // To alter this generated file you have to edit the codegen. -#![allow(unused_imports)] #![expect( clippy::cast_ptr_alignment, clippy::elidable_lifetime_names, @@ -15,7 +14,7 @@ use std::{cell::Cell, marker::PhantomData, mem::offset_of}; use oxc_allocator::{Address, Box, GetAddress, Vec}; use oxc_ast::ast::*; -use oxc_syntax::{comment_node::CommentNodeId, scope::ScopeId}; +use oxc_syntax::scope::ScopeId; /// Type of [`Ancestor`]. /// Used in [`crate::TraverseCtx::retag_stack`].