Skip to content

SWC no longer compiles with serde 1.0.220 or above #11092

@Foorack

Description

@Foorack

Taking steps, upgrading serde and serde_derive from:

1.0.197 -> ✅1.0.198 -> ... -> ✅1.0.219 -> ❌1.0.220 -> ❌1.0.222

compilation breaks when upgrading serde to 1.0.220 or above with the following error:

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
    --> crates/swc_ecma_ast/src/typescript.rs:1060:1
     |
1060 | #[ast_node]
     | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
     |
     = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
     = note: for types from other crates check whether the crate offers a `serde` feature flag
     = help: the following other types implement trait `Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a serde_json::raw::RawValue
               &'a str
               ()
               (T,)
               (T0, T1)
               (T0, T1, T2)
             and 487 others
     = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
error: could not compile `swc_ecma_ast` (lib) due to 50 previous errors
Full Error Output (Click to expand)
sefaxalma@senor0lunlx0550:~/Documents/git/github.com/swc-project/swc$ cargo build
    Blocking waiting for file lock on package cache
    Updating crates.io index
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
   Compiling swc_ecma_ast v15.0.0 (~/Documents/git/github.com/swc-project/swc/crates/swc_ecma_ast)
   Compiling swc_config v3.1.1 (~/Documents/git/github.com/swc-project/swc/crates/swc_config)
   Compiling serde_spanned v0.6.7
   Compiling gimli v0.28.1
   Compiling regalloc2 v0.9.3
   Compiling backtrace v0.3.74
   Compiling browserslist-rs v0.19.0
   Compiling hstr v2.0.1 (~/Documents/git/github.com/swc-project/swc/crates/hstr)
   Compiling toml_edit v0.22.20
error[E0599]: no variant or associated item named `deserialize` found for enum `serde_core::__private::content::Content` in the current scope
   --> crates/swc_config/src/types/bool_or_data.rs:130:36
    |
130 |         let content = de::Content::deserialize(deserializer)?;
    |                                    ^^^^^^^^^^^ variant or associated item not found in `Content<'_>`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `swc_config` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/class.rs:57:1
   |
57 | #[ast_node]
   | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 426 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/class.rs:303:1
    |
303 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 426 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/decl.rs:14:1
   |
14 | #[ast_node]
   | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 420 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/expr.rs:29:1
   |
29 | #[ast_node(no_clone)]
   | ^^^^^^^^^^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 453 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/expr.rs:632:1
    |
632 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 453 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/expr.rs:869:1
    |
869 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 453 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/expr.rs:901:1
    |
901 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 453 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
    --> crates/swc_ecma_ast/src/expr.rs:1251:1
     |
1251 | #[ast_node]
     | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
     |
     = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
     = note: for types from other crates check whether the crate offers a `serde` feature flag
     = help: the following other types implement trait `Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a serde_json::raw::RawValue
               &'a str
               ()
               (T,)
               (T0, T1)
               (T0, T1, T2)
             and 453 others
     = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
    --> crates/swc_ecma_ast/src/expr.rs:1378:1
     |
1378 | #[ast_node]
     | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
     |
     = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
     = note: for types from other crates check whether the crate offers a `serde` feature flag
     = help: the following other types implement trait `Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a serde_json::raw::RawValue
               &'a str
               ()
               (T,)
               (T0, T1)
               (T0, T1, T2)
             and 453 others
     = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
    --> crates/swc_ecma_ast/src/expr.rs:1411:1
     |
1411 | #[ast_node]
     | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
     |
     = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
     = note: for types from other crates check whether the crate offers a `serde` feature flag
     = help: the following other types implement trait `Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a serde_json::raw::RawValue
               &'a str
               ()
               (T,)
               (T0, T1)
               (T0, T1, T2)
             and 453 others
     = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
    --> crates/swc_ecma_ast/src/expr.rs:1468:1
     |
1468 | #[ast_node]
     | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
     |
     = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
     = note: for types from other crates check whether the crate offers a `serde` feature flag
     = help: the following other types implement trait `Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a serde_json::raw::RawValue
               &'a str
               ()
               (T,)
               (T0, T1)
               (T0, T1, T2)
             and 453 others
     = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
    --> crates/swc_ecma_ast/src/expr.rs:1523:1
     |
1523 | #[ast_node]
     | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
     |
     = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
     = note: for types from other crates check whether the crate offers a `serde` feature flag
     = help: the following other types implement trait `Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a serde_json::raw::RawValue
               &'a str
               ()
               (T,)
               (T0, T1)
               (T0, T1, T2)
             and 453 others
     = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
    --> crates/swc_ecma_ast/src/expr.rs:1657:1
     |
1657 | #[ast_node]
     | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
     |
     = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
     = note: for types from other crates check whether the crate offers a `serde` feature flag
     = help: the following other types implement trait `Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a serde_json::raw::RawValue
               &'a str
               ()
               (T,)
               (T0, T1)
               (T0, T1, T2)
             and 453 others
     = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/function.rs:73:1
   |
73 | #[ast_node]
   | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 417 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/jsx.rs:14:1
   |
14 | #[ast_node]
   | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 434 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/jsx.rs:70:1
   |
70 | #[ast_node]
   | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 434 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/jsx.rs:92:1
   |
92 | #[ast_node]
   | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 434 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/jsx.rs:144:1
    |
144 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 434 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/jsx.rs:176:1
    |
176 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 434 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/jsx.rs:187:1
    |
187 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 434 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/jsx.rs:253:1
    |
253 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 434 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/lit.rs:14:1
   |
14 | #[ast_node]
   | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 421 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
 --> crates/swc_ecma_ast/src/module.rs:7:1
  |
7 | #[ast_node]
  | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
  |
  = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
  = note: for types from other crates check whether the crate offers a `serde` feature flag
  = help: the following other types implement trait `Deserialize<'de>`:
            &'a Path
            &'a [u8]
            &'a serde_json::raw::RawValue
            &'a str
            ()
            (T,)
            (T0, T1)
            (T0, T1, T2)
          and 418 others
  = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/module.rs:96:1
   |
96 | #[ast_node]
   | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 418 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/module_decl.rs:14:1
   |
14 | #[ast_node]
   | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 432 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/module_decl.rs:244:1
    |
244 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 432 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/module_decl.rs:260:1
    |
260 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 432 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/module_decl.rs:337:1
    |
337 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 432 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/module_decl.rs:389:1
    |
389 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 432 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/pat.rs:12:1
   |
12 | #[ast_node(no_clone)]
   | ^^^^^^^^^^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 422 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/pat.rs:152:1
    |
152 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 422 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/prop.rs:14:1
   |
14 | #[ast_node]
   | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 422 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/prop.rs:101:1
    |
101 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 422 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/stmt.rs:35:1
   |
35 | #[ast_node(no_clone)]
   | ^^^^^^^^^^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 437 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/stmt.rs:459:1
    |
459 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 437 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/stmt.rs:489:1
    |
489 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 437 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
  --> crates/swc_ecma_ast/src/typescript.rs:97:1
   |
97 | #[ast_node]
   | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
   |
   = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
   = note: for types from other crates check whether the crate offers a `serde` feature flag
   = help: the following other types implement trait `Deserialize<'de>`:
             &'a Path
             &'a [u8]
             &'a serde_json::raw::RawValue
             &'a str
             ()
             (T,)
             (T0, T1)
             (T0, T1, T2)
           and 487 others
   = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/typescript.rs:119:1
    |
119 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 487 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/typescript.rs:136:1
    |
136 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 487 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/typescript.rs:261:1
    |
261 | #[ast_node(no_clone)]
    | ^^^^^^^^^^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 487 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/typescript.rs:359:1
    |
359 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 487 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/typescript.rs:462:1
    |
462 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 487 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/typescript.rs:531:1
    |
531 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 487 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/typescript.rs:556:1
    |
556 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 487 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/typescript.rs:651:1
    |
651 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 487 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/typescript.rs:852:1
    |
852 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 487 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
   --> crates/swc_ecma_ast/src/typescript.rs:963:1
    |
963 | #[ast_node]
    | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag
    = help: the following other types implement trait `Deserialize<'de>`:
              &'a Path
              &'a [u8]
              &'a serde_json::raw::RawValue
              &'a str
              ()
              (T,)
              (T0, T1)
              (T0, T1, T2)
            and 487 others
    = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
    --> crates/swc_ecma_ast/src/typescript.rs:1002:1
     |
1002 | #[ast_node]
     | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
     |
     = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
     = note: for types from other crates check whether the crate offers a `serde` feature flag
     = help: the following other types implement trait `Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a serde_json::raw::RawValue
               &'a str
               ()
               (T,)
               (T0, T1)
               (T0, T1, T2)
             and 487 others
     = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
    --> crates/swc_ecma_ast/src/typescript.rs:1036:1
     |
1036 | #[ast_node]
     | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
     |
     = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
     = note: for types from other crates check whether the crate offers a `serde` feature flag
     = help: the following other types implement trait `Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a serde_json::raw::RawValue
               &'a str
               ()
               (T,)
               (T0, T1)
               (T0, T1, T2)
             and 487 others
     = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `serde_core::__private::content::Content<'_>: serde::Deserialize<'de>` is not satisfied
    --> crates/swc_ecma_ast/src/typescript.rs:1060:1
     |
1060 | #[ast_node]
     | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `serde_core::__private::content::Content<'_>`
     |
     = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `serde_core::__private::content::Content<'_>` type
     = note: for types from other crates check whether the crate offers a `serde` feature flag
     = help: the following other types implement trait `Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a serde_json::raw::RawValue
               &'a str
               ()
               (T,)
               (T0, T1)
               (T0, T1, T2)
             and 487 others
     = note: this error originates in the derive macro `::swc_common::DeserializeEnum` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
error: could not compile `swc_ecma_ast` (lib) due to 50 previous errors

This issue arose in my own project when I upgraded the top-level dependency of serde from 218 to 222, and the whole project no longer compiled, due to swc being a sub-sub-sub-sub dependency to rustyscript.

Looking at the changelog for release 220, the following PR is pointed out as the only public change:

serde-rs/serde#2608

Although internally a lot more changes were made:

serde-rs/serde@v1.0.219...v1.0.220

As 220 was released yesterday, I wasn't sure if anyone else had caught this yet, and wanted to share these observations. I haven't yet figured out why swc no longer compiles with latest serde. That is root of this issue to solve.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions