diff --git a/crates/oxc_ast/src/generated/visit.rs b/crates/oxc_ast/src/generated/visit.rs index 1987ef3d45af8..1ec9d45ad8e4c 100644 --- a/crates/oxc_ast/src/generated/visit.rs +++ b/crates/oxc_ast/src/generated/visit.rs @@ -1574,7 +1574,6 @@ pub mod walk { pub fn walk_template_element<'a, V: Visit<'a>>(visitor: &mut V, it: &TemplateElement<'a>) { // NOTE: AstKind doesn't exists! - let _ = (visitor, it); } pub fn walk_expressions<'a, V: Visit<'a>>(visitor: &mut V, it: &Vec<'a, Expression<'a>>) { @@ -2480,7 +2479,6 @@ pub mod walk { pub fn walk_js_doc_unknown_type<'a, V: Visit<'a>>(visitor: &mut V, it: &JSDocUnknownType) { // NOTE: AstKind doesn't exists! - let _ = (visitor, it); } pub fn walk_decorators<'a, V: Visit<'a>>(visitor: &mut V, it: &Vec<'a, Decorator<'a>>) { @@ -3217,7 +3215,6 @@ pub mod walk { pub fn walk_jsx_empty_expression<'a, V: Visit<'a>>(visitor: &mut V, it: &JSXEmptyExpression) { // NOTE: AstKind doesn't exists! - let _ = (visitor, it); } pub fn walk_jsx_fragment<'a, V: Visit<'a>>(visitor: &mut V, it: &JSXFragment<'a>) { diff --git a/crates/oxc_ast/src/generated/visit_mut.rs b/crates/oxc_ast/src/generated/visit_mut.rs index 24d965d77a033..f6e6df06f1a0c 100644 --- a/crates/oxc_ast/src/generated/visit_mut.rs +++ b/crates/oxc_ast/src/generated/visit_mut.rs @@ -1585,7 +1585,6 @@ pub mod walk_mut { it: &mut TemplateElement<'a>, ) { // NOTE: AstType doesn't exists! - let _ = (visitor, it); } pub fn walk_expressions<'a, V: VisitMut<'a>>( @@ -2584,7 +2583,6 @@ pub mod walk_mut { it: &mut JSDocUnknownType, ) { // NOTE: AstType doesn't exists! - let _ = (visitor, it); } pub fn walk_decorators<'a, V: VisitMut<'a>>(visitor: &mut V, it: &mut Vec<'a, Decorator<'a>>) { @@ -3378,7 +3376,6 @@ pub mod walk_mut { it: &mut JSXEmptyExpression, ) { // NOTE: AstType doesn't exists! - let _ = (visitor, it); } pub fn walk_jsx_fragment<'a, V: VisitMut<'a>>(visitor: &mut V, it: &mut JSXFragment<'a>) { diff --git a/tasks/ast_codegen/src/generators/visit.rs b/tasks/ast_codegen/src/generators/visit.rs index 11bdcaeda95b9..59e5921f4bee4 100644 --- a/tasks/ast_codegen/src/generators/visit.rs +++ b/tasks/ast_codegen/src/generators/visit.rs @@ -583,8 +583,6 @@ impl<'a> VisitBuilder<'a> { .collect(); let body = if KIND_BLACK_LIST.contains(&ident.to_string().as_str()) { - let unused = - if fields_visits.is_empty() { Some(quote!(let _ = (visitor, it);)) } else { None }; let note = insert!( "// NOTE: {} doesn't exists!", if self.is_mut { "AstType" } else { "AstKind" } @@ -592,7 +590,6 @@ impl<'a> VisitBuilder<'a> { quote! { #note #(#fields_visits)* - #unused } } else { let kind = self.kind_type(ident);