[INFO] fetching crate swc_ecma_quote 27.0.0... [INFO] testing swc_ecma_quote-27.0.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate swc_ecma_quote 27.0.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate swc_ecma_quote 27.0.0 [INFO] finished tweaking crates.io crate swc_ecma_quote 27.0.0 [INFO] tweaked toml for crates.io crate swc_ecma_quote 27.0.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate swc_ecma_quote 27.0.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate swc_ecma_quote 27.0.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unicode-id-start v1.3.1 [INFO] [stderr] Downloaded smartstring v1.0.1 [INFO] [stderr] Downloaded is-macro v0.3.7 [INFO] [stderr] Downloaded phf_generator v0.11.2 [INFO] [stderr] Downloaded swc_ecma_ast v18.0.0 [INFO] [stderr] Downloaded swc_ecma_quote_macros v27.0.0 [INFO] [stderr] Downloaded string_enum v1.0.2 [INFO] [stderr] Downloaded swc_ecma_parser v27.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 52de71cf632f51987f358187651953f5da3991b172f264676209c2f3f31f5fc0 [INFO] running `Command { std: "docker" "start" "-a" "52de71cf632f51987f358187651953f5da3991b172f264676209c2f3f31f5fc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "52de71cf632f51987f358187651953f5da3991b172f264676209c2f3f31f5fc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52de71cf632f51987f358187651953f5da3991b172f264676209c2f3f31f5fc0", kill_on_drop: false }` [INFO] [stdout] 52de71cf632f51987f358187651953f5da3991b172f264676209c2f3f31f5fc0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1cffb06520ec41ca3470b56e726ea5f199857634a4c0d192d2337b10b83189fc [INFO] running `Command { std: "docker" "start" "-a" "1cffb06520ec41ca3470b56e726ea5f199857634a4c0d192d2337b10b83189fc", kill_on_drop: false }` [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling unicode-width v0.2.2 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling swc_visit v2.0.1 [INFO] [stderr] Compiling unicode-id-start v1.3.1 [INFO] [stderr] Compiling better_scoped_tls v1.0.1 [INFO] [stderr] Compiling seq-macro v0.3.6 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling swc_macros_common v1.0.1 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling from_variant v3.0.0 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling ast_node v5.0.0 [INFO] [stderr] Compiling swc_eq_ignore_macros v1.0.1 [INFO] [stderr] Compiling is-macro v0.3.7 [INFO] [stderr] Compiling string_enum v1.0.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling triomphe v0.1.14 [INFO] [stderr] Compiling bytes-str v0.2.5 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling hstr v3.0.2 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling swc_atoms v9.0.0 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling swc_common v17.0.0 [INFO] [stderr] Compiling swc_ecma_ast v18.0.0 [INFO] [stderr] Compiling swc_ecma_parser v27.0.0 [INFO] [stderr] Compiling swc_ecma_quote_macros v27.0.0 [INFO] [stderr] Compiling swc_ecma_quote v27.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 38.89s [INFO] running `Command { std: "docker" "inspect" "1cffb06520ec41ca3470b56e726ea5f199857634a4c0d192d2337b10b83189fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cffb06520ec41ca3470b56e726ea5f199857634a4c0d192d2337b10b83189fc", kill_on_drop: false }` [INFO] [stdout] 1cffb06520ec41ca3470b56e726ea5f199857634a4c0d192d2337b10b83189fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f397bd2744b53b37f5d860804a96a767e228005b794f6cd6ee1683256fcf316e [INFO] running `Command { std: "docker" "start" "-a" "f397bd2744b53b37f5d860804a96a767e228005b794f6cd6ee1683256fcf316e", kill_on_drop: false }` [INFO] [stderr] Compiling swc_ecma_quote v27.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.59s [INFO] running `Command { std: "docker" "inspect" "f397bd2744b53b37f5d860804a96a767e228005b794f6cd6ee1683256fcf316e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f397bd2744b53b37f5d860804a96a767e228005b794f6cd6ee1683256fcf316e", kill_on_drop: false }` [INFO] [stdout] f397bd2744b53b37f5d860804a96a767e228005b794f6cd6ee1683256fcf316e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a2869d172199bb7e27bd6292125efb45b6f5bae20f5d4ddac3f8d4a9869780b8 [INFO] running `Command { std: "docker" "start" "-a" "a2869d172199bb7e27bd6292125efb45b6f5bae20f5d4ddac3f8d4a9869780b8", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/swc_ecma_quote-cd7ec67fa468068a) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Doc-tests swc_ecma_quote [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - quote (line 36) ... FAILED [INFO] [stdout] test src/lib.rs - quote (line 92) ... FAILED [INFO] [stdout] test src/lib.rs - quote (line 76) ... FAILED [INFO] [stdout] test src/lib.rs - quote (line 60) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - quote (line 36) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let _stmt = quote!("const $name = 4;" as Stmt, name = Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let _stmt = quote!("const $name = 4;" as Stmt, name = Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let _stmt = quote!("const $name = 4;" as Stmt, name = Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 35 + use swc_ecma_ast::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let _stmt = quote!("const $name = 4;" as Stmt, name = Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 35 + use swc_ecma_ast::Decl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let _stmt = quote!("const $name = 4;" as Stmt, name = Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 35 + use swc_common::SyntaxContext; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let _stmt = quote!("const $name = 4;" as Stmt, name = Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 35 + use swc_ecma_ast::VarDeclKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let _stmt = quote!("const $name = 4;" as Stmt, name = Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 35 + use swc_ecma_ast::Pat; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let _stmt = quote!("const $name = 4;" as Stmt, name = Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 35 + use swc_ecma_ast::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let _stmt = quote!("const $name = 4;" as Stmt, name = Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 35 + use swc_ecma_ast::Lit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:43:55 [INFO] [stdout] | [INFO] [stdout] 43 | let _stmt = quote!("const $name = 4;" as Stmt, name = Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | ^^^^^^^^^^------------------------ argument #3 of type `SyntaxContext` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/swc_ecma_ast-18.0.0/src/ident.rs:597:18 [INFO] [stdout] | [INFO] [stdout] 597 | pub const fn new(sym: Atom, span: Span, ctxt: SyntaxContext) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 43 | let _stmt = quote!("const $name = 4;" as Stmt, name = Ident::new("ref".into(), DUMMY_SP, /* SyntaxContext */)); [INFO] [stdout] | +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - quote (line 92) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let _stmt = quote!( [INFO] [stdout] | _____________^ [INFO] [stdout] 100 | | "import thing from \"$thing\";" as ModuleItem, [INFO] [stdout] 101 | | thing: Str = "foo".into(), [INFO] [stdout] 102 | | ); [INFO] [stdout] | |_____________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let _stmt = quote!( [INFO] [stdout] | _____________^ [INFO] [stdout] 100 | | "import thing from \"$thing\";" as ModuleItem, [INFO] [stdout] 101 | | thing: Str = "foo".into(), [INFO] [stdout] 102 | | ); [INFO] [stdout] | |_____________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let _stmt = quote!( [INFO] [stdout] | _____________^ [INFO] [stdout] 100 | | "import thing from \"$thing\";" as ModuleItem, [INFO] [stdout] 101 | | thing: Str = "foo".into(), [INFO] [stdout] 102 | | ); [INFO] [stdout] | |_____________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 91 + use swc_ecma_ast::ModuleItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let _stmt = quote!( [INFO] [stdout] | _____________^ [INFO] [stdout] 100 | | "import thing from \"$thing\";" as ModuleItem, [INFO] [stdout] 101 | | thing: Str = "foo".into(), [INFO] [stdout] 102 | | ); [INFO] [stdout] | |_____________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 91 + use swc_ecma_ast::ModuleDecl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let _stmt = quote!( [INFO] [stdout] | _____________^ [INFO] [stdout] 100 | | "import thing from \"$thing\";" as ModuleItem, [INFO] [stdout] 101 | | thing: Str = "foo".into(), [INFO] [stdout] 102 | | ); [INFO] [stdout] | |_____________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 91 + use swc_ecma_ast::ImportSpecifier; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let _stmt = quote!( [INFO] [stdout] | _____________^ [INFO] [stdout] 100 | | "import thing from \"$thing\";" as ModuleItem, [INFO] [stdout] 101 | | thing: Str = "foo".into(), [INFO] [stdout] 102 | | ); [INFO] [stdout] | |_____________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 91 + use swc_ecma_ast::Ident; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let _stmt = quote!( [INFO] [stdout] | _____________^ [INFO] [stdout] 100 | | "import thing from \"$thing\";" as ModuleItem, [INFO] [stdout] 101 | | thing: Str = "foo".into(), [INFO] [stdout] 102 | | ); [INFO] [stdout] | |_____________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 91 + use swc_ecma_ast::ImportPhase; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - quote (line 76) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let _stmt = quote!("const $name = 4;" as Stmt, name = [INFO] [stdout] | _____________^ [INFO] [stdout] 84 | | Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | |___________________________________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let _stmt = quote!("const $name = 4;" as Stmt, name = [INFO] [stdout] | _____________^ [INFO] [stdout] 84 | | Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | |___________________________________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let _stmt = quote!("const $name = 4;" as Stmt, name = [INFO] [stdout] | _____________^ [INFO] [stdout] 84 | | Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | |___________________________________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 75 + use swc_ecma_ast::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let _stmt = quote!("const $name = 4;" as Stmt, name = [INFO] [stdout] | _____________^ [INFO] [stdout] 84 | | Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | |___________________________________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 75 + use swc_ecma_ast::Decl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let _stmt = quote!("const $name = 4;" as Stmt, name = [INFO] [stdout] | _____________^ [INFO] [stdout] 84 | | Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | |___________________________________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 75 + use swc_common::SyntaxContext; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let _stmt = quote!("const $name = 4;" as Stmt, name = [INFO] [stdout] | _____________^ [INFO] [stdout] 84 | | Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | |___________________________________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 75 + use swc_ecma_ast::VarDeclKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let _stmt = quote!("const $name = 4;" as Stmt, name = [INFO] [stdout] | _____________^ [INFO] [stdout] 84 | | Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | |___________________________________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 75 + use swc_ecma_ast::Pat; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let _stmt = quote!("const $name = 4;" as Stmt, name = [INFO] [stdout] | _____________^ [INFO] [stdout] 84 | | Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | |___________________________________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 75 + use swc_ecma_ast::Expr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let _stmt = quote!("const $name = 4;" as Stmt, name = [INFO] [stdout] | _____________^ [INFO] [stdout] 84 | | Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | |___________________________________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 75 + use swc_ecma_ast::Lit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | Ident::new("ref".into(), DUMMY_SP)); [INFO] [stdout] | ^^^^^^^^^^------------------------ argument #3 of type `SyntaxContext` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/swc_ecma_ast-18.0.0/src/ident.rs:597:18 [INFO] [stdout] | [INFO] [stdout] 597 | pub const fn new(sym: Atom, span: Span, ctxt: SyntaxContext) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 84 | Ident::new("ref".into(), DUMMY_SP, /* SyntaxContext */)); [INFO] [stdout] | +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - quote (line 60) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let _stmt = quote!( [INFO] [stdout] | _____________^ [INFO] [stdout] 68 | | "const $name = $val;" as Stmt, [INFO] [stdout] 69 | | name = Ident::new("ref".into(), DUMMY_SP), [INFO] [stdout] 70 | | val: Expr = 4.into(), [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_____________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let _stmt = quote!( [INFO] [stdout] | _____________^ [INFO] [stdout] 68 | | "const $name = $val;" as Stmt, [INFO] [stdout] 69 | | name = Ident::new("ref".into(), DUMMY_SP), [INFO] [stdout] 70 | | val: Expr = 4.into(), [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_____________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 59 + use swc_ecma_ast::Stmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let _stmt = quote!( [INFO] [stdout] | _____________^ [INFO] [stdout] 68 | | "const $name = $val;" as Stmt, [INFO] [stdout] 69 | | name = Ident::new("ref".into(), DUMMY_SP), [INFO] [stdout] 70 | | val: Expr = 4.into(), [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_____________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 59 + use swc_ecma_ast::Decl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let _stmt = quote!( [INFO] [stdout] | _____________^ [INFO] [stdout] 68 | | "const $name = $val;" as Stmt, [INFO] [stdout] 69 | | name = Ident::new("ref".into(), DUMMY_SP), [INFO] [stdout] 70 | | val: Expr = 4.into(), [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_____________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 59 + use swc_common::SyntaxContext; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let _stmt = quote!( [INFO] [stdout] | _____________^ [INFO] [stdout] 68 | | "const $name = $val;" as Stmt, [INFO] [stdout] 69 | | name = Ident::new("ref".into(), DUMMY_SP), [INFO] [stdout] 70 | | val: Expr = 4.into(), [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_____________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 59 + use swc_ecma_ast::VarDeclKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] --> src/lib.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let _stmt = quote!( [INFO] [stdout] | _____________^ [INFO] [stdout] 68 | | "const $name = $val;" as Stmt, [INFO] [stdout] 69 | | name = Ident::new("ref".into(), DUMMY_SP), [INFO] [stdout] 70 | | val: Expr = 4.into(), [INFO] [stdout] 71 | | ); [INFO] [stdout] | |_____________^ use of unresolved module or unlinked crate `swc_core` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `swc_core`, use `cargo add swc_core` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `$crate::swc_ecma_quote_macros::internal_quote` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 59 + use swc_ecma_ast::Pat; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:69:24 [INFO] [stdout] | [INFO] [stdout] 69 | name = Ident::new("ref".into(), DUMMY_SP), [INFO] [stdout] | ^^^^^^^^^^------------------------ argument #3 of type `SyntaxContext` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/swc_ecma_ast-18.0.0/src/ident.rs:597:18 [INFO] [stdout] | [INFO] [stdout] 597 | pub const fn new(sym: Atom, span: Span, ctxt: SyntaxContext) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 69 | name = Ident::new("ref".into(), DUMMY_SP, /* SyntaxContext */), [INFO] [stdout] | +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - quote (line 36) [INFO] [stdout] src/lib.rs - quote (line 60) [INFO] [stdout] src/lib.rs - quote (line 76) [INFO] [stdout] src/lib.rs - quote (line 92) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.27s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a2869d172199bb7e27bd6292125efb45b6f5bae20f5d4ddac3f8d4a9869780b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2869d172199bb7e27bd6292125efb45b6f5bae20f5d4ddac3f8d4a9869780b8", kill_on_drop: false }` [INFO] [stdout] a2869d172199bb7e27bd6292125efb45b6f5bae20f5d4ddac3f8d4a9869780b8