From 31a5a1c855ae2f0f9c28baaf85d0fce9c9b78a5c Mon Sep 17 00:00:00 2001 From: rzvxa Date: Fri, 2 Aug 2024 20:44:30 +0330 Subject: [PATCH] chore: run `layout_assertions` only on test builds. --- crates/oxc_ast/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_ast/src/lib.rs b/crates/oxc_ast/src/lib.rs index 41ec931cab4072..13f0efb7ba4ba9 100644 --- a/crates/oxc_ast/src/lib.rs +++ b/crates/oxc_ast/src/lib.rs @@ -37,7 +37,7 @@ pub mod syntax_directed_operations; mod trivia; mod generated { - #[cfg(debug_assertions)] + #[cfg(test)] pub mod assert_layouts; pub mod ast_builder; pub mod ast_kind;