From 452e0eebb43c5ebaf1bfbbbfc7f80684abde2a58 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Thu, 1 Aug 2024 22:48:03 +0000 Subject: [PATCH] refactor(ast): remove defunct `visit_as` + `visit_args` attrs from `#[ast]` macro (#4599) #4371 replaced `#[visit_as(...)]` and `#[visit_args(...)]` with `#[visit(as(...))]` and `#[visit(args(...))]`. Remove these defunct helper attributes from the `#[ast]` macro. --- crates/oxc_ast_macros/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_ast_macros/src/lib.rs b/crates/oxc_ast_macros/src/lib.rs index f58151719..d35379d8e 100644 --- a/crates/oxc_ast_macros/src/lib.rs +++ b/crates/oxc_ast_macros/src/lib.rs @@ -25,7 +25,7 @@ pub fn ast(_args: TokenStream, input: TokenStream) -> TokenStream { /// /// Does not generate any code. /// Only purpose is to allow using `#[scope]`, `#[visit]`, and other attrs in the AST node type defs. -#[proc_macro_derive(Ast, attributes(span, scope, visit, visit_as, visit_args, serde, tsify))] +#[proc_macro_derive(Ast, attributes(scope, visit, span, serde, tsify))] pub fn ast_derive(_item: TokenStream) -> TokenStream { TokenStream::new() }