From ba7000107e21784ca52e1a5e057894b8a5011a02 Mon Sep 17 00:00:00 2001 From: rzvxa <3788964+rzvxa@users.noreply.github.com> Date: Sat, 3 Aug 2024 15:25:02 +0000 Subject: [PATCH] refactor(ast): put `assert_layouts.rs` behind `debug_assertions` (#4621) #4615 was showing as green on all checks, but failed CI on main once merged because of errors in "Test wasm32-wasip1-threads" job, which only runs on main. This change will make sure any such problem gets caught at the PR stage in future. --- 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 13f0efb7ba4ba..41ec931cab407 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(test)] + #[cfg(debug_assertions)] pub mod assert_layouts; pub mod ast_builder; pub mod ast_kind;