From 2d51c2b548a59d50e54c6f0f88380e396c36d971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Thu, 23 Mar 2023 12:30:05 +0900 Subject: [PATCH 1/3] Improve swc_ecma_ast --- crates/swc_ecma_ast/build.rs | 4 ---- crates/swc_ecma_ast/src/lib.rs | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 crates/swc_ecma_ast/build.rs 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}; From 55f278b21c07fdc821827beaa4dcc06386964033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Thu, 23 Mar 2023 12:31:09 +0900 Subject: [PATCH 2/3] Improve plugin proxy --- crates/swc_plugin_proxy/build.rs | 4 ---- crates/swc_plugin_proxy/src/lib.rs | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 crates/swc_plugin_proxy/build.rs 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; From a698442f0b1fda3f20bf16c2f2f2cb247b9df264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Thu, 23 Mar 2023 12:31:20 +0900 Subject: [PATCH 3/3] Remove unused debug impl --- crates/ast_node/src/spanned.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.