diff --git a/crates/ast_node/src/spanned.rs b/crates/ast_node/src/spanned.rs index 2cf4fc1427ec..ceaeb03a2fbf 100644 --- a/crates/ast_node/src/spanned.rs +++ b/crates/ast_node/src/spanned.rs @@ -5,7 +5,7 @@ use pmutil::{smart_quote, Quote, ToTokensExt}; use swc_macros_common::prelude::*; use syn::*; -#[derive(Debug, FromField)] +#[derive(FromField)] #[darling(attributes(span))] struct MyField { /// Name of the field. diff --git a/crates/swc_ecma_ast/build.rs b/crates/swc_ecma_ast/build.rs deleted file mode 100644 index 17fe53a27deb..000000000000 --- a/crates/swc_ecma_ast/build.rs +++ /dev/null @@ -1,4 +0,0 @@ -#[cfg(all(feature = "rkyv-impl", feature = "rkyv-bytecheck-impl"))] -compile_error!("Cannot enable bytechcked, non-bytechecked rkyv both"); - -fn main() {} diff --git a/crates/swc_ecma_ast/src/lib.rs b/crates/swc_ecma_ast/src/lib.rs index fac5554a4e2a..7ed9b0c0a1d4 100644 --- a/crates/swc_ecma_ast/src/lib.rs +++ b/crates/swc_ecma_ast/src/lib.rs @@ -9,7 +9,8 @@ #![allow(clippy::clone_on_copy)] #![recursion_limit = "1024"] -// #![deny(variant_size_differences)] +#[cfg(all(feature = "rkyv-impl", feature = "rkyv-bytecheck-impl"))] +compile_error!("Cannot enable bytechcked, non-bytechecked rkyv both"); use serde::{Deserialize, Serialize}; use swc_common::{ast_node, EqIgnoreSpan, Span}; diff --git a/crates/swc_plugin_proxy/build.rs b/crates/swc_plugin_proxy/build.rs deleted file mode 100644 index 17fe53a27deb..000000000000 --- a/crates/swc_plugin_proxy/build.rs +++ /dev/null @@ -1,4 +0,0 @@ -#[cfg(all(feature = "rkyv-impl", feature = "rkyv-bytecheck-impl"))] -compile_error!("Cannot enable bytechcked, non-bytechecked rkyv both"); - -fn main() {} diff --git a/crates/swc_plugin_proxy/src/lib.rs b/crates/swc_plugin_proxy/src/lib.rs index c37bf5289a6e..69b7d16bc6fb 100644 --- a/crates/swc_plugin_proxy/src/lib.rs +++ b/crates/swc_plugin_proxy/src/lib.rs @@ -1,5 +1,8 @@ #![cfg_attr(not(feature = "__rkyv"), allow(warnings))] +#[cfg(all(feature = "rkyv-impl", feature = "rkyv-bytecheck-impl"))] +compile_error!("Cannot enable bytechcked, non-bytechecked rkyv both"); + mod comments; mod memory_interop; mod metadata;