From f63b568c486476671c35f2314342a24fcaa0e4e8 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Fri, 23 Aug 2024 23:04:27 +0000 Subject: [PATCH] refactor(ast): remove `#[non_exhaustive]` attr from `AstBuilder` (#5130) Partially revert #4925. That PR's description gave no explanation of why this attribute is desirable. --- crates/oxc_ast/src/generated/ast_builder.rs | 1 - tasks/ast_tools/src/generators/ast_builder.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/crates/oxc_ast/src/generated/ast_builder.rs b/crates/oxc_ast/src/generated/ast_builder.rs index 4df9e4ff0..2af319881 100644 --- a/crates/oxc_ast/src/generated/ast_builder.rs +++ b/crates/oxc_ast/src/generated/ast_builder.rs @@ -14,7 +14,6 @@ use crate::ast::*; /// AST builder for creating AST nodes #[derive(Clone, Copy)] -#[non_exhaustive] pub struct AstBuilder<'a> { pub allocator: &'a Allocator, } diff --git a/tasks/ast_tools/src/generators/ast_builder.rs b/tasks/ast_tools/src/generators/ast_builder.rs index f8466623f..a7f6ef27a 100644 --- a/tasks/ast_tools/src/generators/ast_builder.rs +++ b/tasks/ast_tools/src/generators/ast_builder.rs @@ -57,7 +57,6 @@ impl Generator for AstBuilderGenerator { ///@@line_break /// AST builder for creating AST nodes #[derive(Clone, Copy)] - #[non_exhaustive] pub struct AstBuilder<'a> { pub allocator: &'a Allocator, }