[INFO] fetching crate enum_kind 0.2.2... [INFO] testing enum_kind-0.2.2 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate enum_kind 0.2.2 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate enum_kind 0.2.2 [INFO] finished tweaking crates.io crate enum_kind 0.2.2 [INFO] tweaked toml for crates.io crate enum_kind 0.2.2 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate enum_kind 0.2.2 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 7 packages to latest compatible versions [INFO] [stderr] Adding pmutil v0.5.3 (available: v0.6.1) [INFO] [stderr] Adding swc_macros_common v0.3.14 (available: v1.0.1) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.106) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bbae27976b01d075d5d025608a3d6da09d360f5f9ee1b7e762b41e952f4df284 [INFO] running `Command { std: "docker" "start" "-a" "bbae27976b01d075d5d025608a3d6da09d360f5f9ee1b7e762b41e952f4df284", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bbae27976b01d075d5d025608a3d6da09d360f5f9ee1b7e762b41e952f4df284", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbae27976b01d075d5d025608a3d6da09d360f5f9ee1b7e762b41e952f4df284", kill_on_drop: false }` [INFO] [stdout] bbae27976b01d075d5d025608a3d6da09d360f5f9ee1b7e762b41e952f4df284 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 54067dba4745b901354aeac669f9aa0455fbe188a4fbb2097976a32d6d20dce9 [INFO] running `Command { std: "docker" "start" "-a" "54067dba4745b901354aeac669f9aa0455fbe188a4fbb2097976a32d6d20dce9", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling pmutil v0.5.3 [INFO] [stderr] Compiling swc_macros_common v0.3.14 [INFO] [stderr] Compiling enum_kind v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0599]: no method named `with_generics` found for struct `syn::ItemImpl` in the current scope [INFO] [stdout] --> src/expand.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 56 | / Quote::new_call_site() [INFO] [stdout] 57 | | .quote_with(smart_quote!( [INFO] [stdout] 58 | | Vars { [INFO] [stdout] 59 | | Type: name, [INFO] [stdout] ... | [INFO] [stdout] 68 | | .parse::() [INFO] [stdout] 69 | | .with_generics(generics) [INFO] [stdout] | | -^^^^^^^^^^^^^ method not found in `syn::ItemImpl` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/expand.rs:89:25 [INFO] [stdout] | [INFO] [stdout] 89 | VariantBinder::new(Some(enum_name), &v.name, &v.data, &v.attrs.extras) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ------- expected `syn::data::Fields`, found `syn::Fields` [INFO] [stdout] | [INFO] [stdout] note: two different versions of crate `syn` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/data.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / ast_enum_of_structs! { [INFO] [stdout] 26 | | /// Data stored within an enum variant or struct. [INFO] [stdout] 27 | | /// [INFO] [stdout] 28 | | /// *This type is available only if Syn is built with the `"derive"` or `"full"` [INFO] [stdout] ... | [INFO] [stdout] 48 | | } [INFO] [stdout] | |__^ this is the found type `syn::Fields` [INFO] [stdout] | [INFO] [stdout] ::: src/expand.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use syn::*; [INFO] [stdout] | --- one version of crate `syn` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use swc_macros_common::prelude::*; [INFO] [stdout] | ----------------- one version of crate `syn` used here, as a dependency of crate `swc_macros_common` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.106/src/data.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / ast_enum_of_structs! { [INFO] [stdout] 27 | | /// Data stored within an enum variant or struct. [INFO] [stdout] 28 | | /// [INFO] [stdout] 29 | | /// # Syntax tree enum [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ this is the expected type `syn::data::Fields` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: expected `&[Attribute]`, found `&Vec` [INFO] [stdout] --> src/expand.rs:89:79 [INFO] [stdout] | [INFO] [stdout] 89 | VariantBinder::new(Some(enum_name), &v.name, &v.data, &v.attrs.extras) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected reference `&[syn::attr::Attribute]` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/swc_macros_common-0.3.14/src/binder.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 93 | pub const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] = note: this error originates in the macro `strip_attrs_pub` which comes from the expansion of the macro `ast_enum_of_structs` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expand.rs:90:45 [INFO] [stdout] | [INFO] [stdout] 90 | ... .bind("_", Some(call_site()), None); [INFO] [stdout] | ---- ^^^^^^^^^^^ expected `Ref`, found `Span` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `proc_macro2::Span` due to the type of the argument passed [INFO] [stdout] --> src/expand.rs:90:40 [INFO] [stdout] | [INFO] [stdout] 90 | ... .bind("_", Some(call_site()), None); [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/option.rs:601:5 [INFO] [stdout] help: try wrapping the expression in `syn::token::Ref` [INFO] [stdout] | [INFO] [stdout] 90 | .bind("_", Some(syn::token::Ref { span: call_site() }), None); [INFO] [stdout] | +++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expand.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | pat, [INFO] [stdout] | ^^^ expected `Pat`, found `syn::pat::Pat` [INFO] [stdout] | [INFO] [stdout] note: two different versions of crate `syn` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/pat.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / ast_enum_of_structs! { [INFO] [stdout] 6 | | /// A pattern in a local binding, function signature, match expression, or [INFO] [stdout] 7 | | /// various other places. [INFO] [stdout] 8 | | /// [INFO] [stdout] ... | [INFO] [stdout] 98 | | } [INFO] [stdout] | |__^ this is the expected type `Pat` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use swc_macros_common::prelude::*; [INFO] [stdout] | ----------------- one version of crate `syn` used here, as a dependency of crate `swc_macros_common` [INFO] [stdout] | [INFO] [stdout] ::: src/expand.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use syn::*; [INFO] [stdout] | --- one version of crate `syn` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.106/src/pat.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / ast_enum_of_structs! { [INFO] [stdout] 16 | | /// A pattern in a local binding, function signature, match expression, or [INFO] [stdout] 17 | | /// various other places. [INFO] [stdout] 18 | | /// [INFO] [stdout] ... | [INFO] [stdout] 102 | | } [INFO] [stdout] | |_^ this is the found type `syn::pat::Pat` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: this error originates in the macro `strip_attrs_pub` which comes from the expansion of the macro `ast_enum_of_structs` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expand.rs:151:57 [INFO] [stdout] | [INFO] [stdout] 151 | ... .filter(|attr| is_attr_name(attr, "cfg")) [INFO] [stdout] | ------------ ^^^^ expected `&Attribute`, found `&&Attribute` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&syn::attr::Attribute` [INFO] [stdout] found reference `&&syn::Attribute` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/swc_macros_common-0.3.14/src/lib.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn is_attr_name(attr: &Attribute, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expand.rs:154:42 [INFO] [stdout] | [INFO] [stdout] 154 | fat_arrow_token: call_site(), [INFO] [stdout] | ^^^^^^^^^^^ expected `FatArrow`, found `Span` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expand.rs:155:37 [INFO] [stdout] | [INFO] [stdout] 155 | comma: Some(call_site()), [INFO] [stdout] | ---- ^^^^^^^^^^^ expected `Comma`, found `Span` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `proc_macro2::Span` due to the type of the argument passed [INFO] [stdout] --> src/expand.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | comma: Some(call_site()), [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/option.rs:601:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expand.rs:164:26 [INFO] [stdout] | [INFO] [stdout] 164 | match_token: call_site(), [INFO] [stdout] | ^^^^^^^^^^^ expected `Match`, found `Span` [INFO] [stdout] | [INFO] [stdout] help: try wrapping the expression in `syn::token::Match` [INFO] [stdout] | [INFO] [stdout] 164 | match_token: syn::token::Match { span: call_site() }, [INFO] [stdout] | +++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expand.rs:165:26 [INFO] [stdout] | [INFO] [stdout] 165 | brace_token: call_site(), [INFO] [stdout] | ^^^^^^^^^^^ expected `Brace`, found `Span` [INFO] [stdout] | [INFO] [stdout] help: try wrapping the expression in `syn::token::Brace` [INFO] [stdout] | [INFO] [stdout] 165 | brace_token: syn::token::Brace { span: call_site() }, [INFO] [stdout] | +++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `syn::punctuated::Punctuated` cannot be built from an iterator over elements of type `swc_macros_common::prelude::Element` [INFO] [stdout] --> src/expand.rs:194:18 [INFO] [stdout] | [INFO] [stdout] 194 | .collect(), [INFO] [stdout] | ^^^^^^^ value of type `syn::punctuated::Punctuated` cannot be built from `std::iter::Iterator>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromIterator>` is not implemented for `syn::punctuated::Punctuated` [INFO] [stdout] = help: the following other types implement trait `FromIterator`: [INFO] [stdout] `syn::punctuated::Punctuated` implements `FromIterator>` [INFO] [stdout] `syn::punctuated::Punctuated` implements `FromIterator` [INFO] [stdout] note: the method call chain might not have had the expected associated types [INFO] [stdout] --> src/expand.rs:193:18 [INFO] [stdout] | [INFO] [stdout] 184 | inputs: vec![ [INFO] [stdout] | _________________________- [INFO] [stdout] 185 | | // TODO [INFO] [stdout] 186 | | Element::End(FnArg::Receiver(Receiver { [INFO] [stdout] 187 | | reference: Some((name_span.as_token(), None)), [INFO] [stdout] ... | [INFO] [stdout] 191 | | })), [INFO] [stdout] 192 | | ] [INFO] [stdout] | |_________________- this expression has type `Vec>` [INFO] [stdout] 193 | .into_iter() [INFO] [stdout] | ^^^^^^^^^^^ `Iterator::Item` is `Element` here [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/iter/traits/iterator.rs:2014:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expand.rs:202:30 [INFO] [stdout] | [INFO] [stdout] 202 | brace_token: call_site(), [INFO] [stdout] | ^^^^^^^^^^^ expected `Brace`, found `Span` [INFO] [stdout] | [INFO] [stdout] help: try wrapping the expression in `syn::token::Brace` [INFO] [stdout] | [INFO] [stdout] 202 | brace_token: syn::token::Brace { span: call_site() }, [INFO] [stdout] | +++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `?` operator has incompatible types [INFO] [stdout] --> src/parse.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 43 | let fns: Punctuated = fns.parse_terminated(FnDef::parse)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Punctuated`, found `Punctuated` [INFO] [stdout] | [INFO] [stdout] = note: `?` operator cannot convert from `syn::punctuated::Punctuated` to `swc_macros_common::prelude::Punctuated` [INFO] [stdout] note: two different versions of crate `syn` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.106/src/punctuated.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Punctuated { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `swc_macros_common::prelude::Punctuated` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/punctuated.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Punctuated { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `syn::punctuated::Punctuated` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use swc_macros_common::prelude::*; [INFO] [stdout] | ----------------- one version of crate `syn` used here, as a dependency of crate `swc_macros_common` [INFO] [stdout] | [INFO] [stdout] ::: src/expand.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use syn::*; [INFO] [stdout] | --- one version of crate `syn` used here, as a direct dependency of the current crate [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: function takes 0 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/parse.rs:70:27 [INFO] [stdout] | [INFO] [stdout] 70 | span: def_site::(), [INFO] [stdout] | ^^^^^^^^-------- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 generic arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here, with 0 generic parameters [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/swc_macros_common-0.3.14/src/lib.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn def_site() -> Span { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parse.rs:117:83 [INFO] [stdout] | [INFO] [stdout] 117 | let fn_values: Punctuated<_, token::Comma> = Punctuated::parse_terminated(input)?; [INFO] [stdout] | ---------------------------- ^^^^^ expected `syn::parse::ParseBuffer<'_>`, found `ParseBuffer<'_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: two different versions of crate `syn` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/parse.rs:252:1 [INFO] [stdout] | [INFO] [stdout] 252 | pub struct ParseBuffer<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ParseBuffer` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.106/src/parse.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub struct ParseBuffer<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `syn::parse::ParseBuffer` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use swc_macros_common::prelude::*; [INFO] [stdout] | ----------------- one version of crate `syn` used here, as a dependency of crate `swc_macros_common` [INFO] [stdout] | [INFO] [stdout] ::: src/expand.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use syn::*; [INFO] [stdout] | --- one version of crate `syn` used here, as a direct dependency of the current crate [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.106/src/punctuated.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 290 | pub fn parse_terminated(input: ParseStream) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `syn::Error` [INFO] [stdout] --> src/parse.rs:117:89 [INFO] [stdout] | [INFO] [stdout] 117 | let fn_values: Punctuated<_, token::Comma> = Punctuated::parse_terminated(input)?; [INFO] [stdout] | -----------------------------------^ the trait `From` is not implemented for `syn::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, syn::error::Error>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the trait `From` is not implemented for `syn::Error` [INFO] [stdout] but trait `From` is implemented for it [INFO] [stdout] = help: for that trait implementation, expected `proc_macro2::LexError`, found `syn::error::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `syn::token::Comma: syn::parse::Parse` is not satisfied [INFO] [stdout] --> src/parse.rs:117:54 [INFO] [stdout] | [INFO] [stdout] 117 | let fn_values: Punctuated<_, token::Comma> = Punctuated::parse_terminated(input)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `syn::parse::Parse` is not implemented for `syn::token::Comma` [INFO] [stdout] | [INFO] [stdout] note: there are multiple different versions of crate `syn` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.106/src/parse.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub trait Parse: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use swc_macros_common::prelude::*; [INFO] [stdout] | ----------------- one version of crate `syn` used here, as a dependency of crate `swc_macros_common` [INFO] [stdout] | [INFO] [stdout] ::: src/expand.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use syn::*; [INFO] [stdout] | --- one version of crate `syn` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/token.rs:126:1 [INFO] [stdout] | [INFO] [stdout] 126 | pub trait Token: private::Sealed { [INFO] [stdout] | -------------------------------- this is the found trait [INFO] [stdout] ... [INFO] [stdout] 707 | / define_punctuation! { [INFO] [stdout] 708 | | "+" pub struct Add/1 /// `+` [INFO] [stdout] 709 | | "+=" pub struct AddEq/2 /// `+=` [INFO] [stdout] 710 | | "&" pub struct And/1 /// `&` [INFO] [stdout] ... | [INFO] [stdout] 753 | | "~" pub struct Tilde/1 /// `~` [INFO] [stdout] 754 | | } [INFO] [stdout] | |__- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.106/src/token.rs:748:1 [INFO] [stdout] | [INFO] [stdout] 748 | / define_punctuation! { [INFO] [stdout] 749 | | "&" pub struct And/1 /// bitwise and logical AND, borrow, references, reference patterns [INFO] [stdout] 750 | | "&&" pub struct AndAnd/2 /// lazy AND, borrow, references, reference patterns [INFO] [stdout] 751 | | "&=" pub struct AndEq/2 /// bitwise AND assignment [INFO] [stdout] ... | [INFO] [stdout] 794 | | "~" pub struct Tilde/1 /// unused since before Rust 1.0 [INFO] [stdout] 795 | | } [INFO] [stdout] | |_- this type implements the required trait [INFO] [stdout] = note: two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `swc_macros_common::prelude::Punctuated::::parse_terminated` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.106/src/punctuated.rs:293:12 [INFO] [stdout] | [INFO] [stdout] 290 | pub fn parse_terminated(input: ParseStream) -> Result [INFO] [stdout] | ---------------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 293 | P: Parse, [INFO] [stdout] | ^^^^^ required by this bound in `Punctuated::::parse_terminated` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `input::VariantAttr: syn::parse::Parse` is not satisfied [INFO] [stdout] --> src/parse.rs:117:54 [INFO] [stdout] | [INFO] [stdout] 117 | let fn_values: Punctuated<_, token::Comma> = Punctuated::parse_terminated(input)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `syn::parse::Parse` is not implemented for `input::VariantAttr` [INFO] [stdout] --> src/input.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct VariantAttr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: there are multiple different versions of crate `syn` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.106/src/parse.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 214 | pub trait Parse: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use swc_macros_common::prelude::*; [INFO] [stdout] | ----------------- one version of crate `syn` used here, as a dependency of crate `swc_macros_common` [INFO] [stdout] | [INFO] [stdout] ::: src/expand.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use syn::*; [INFO] [stdout] | --- one version of crate `syn` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/input.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct VariantAttr { [INFO] [stdout] | ---------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/token.rs:126:1 [INFO] [stdout] | [INFO] [stdout] 126 | pub trait Token: private::Sealed { [INFO] [stdout] | -------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `swc_macros_common::prelude::Punctuated::::parse_terminated` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.106/src/punctuated.rs:292:12 [INFO] [stdout] | [INFO] [stdout] 290 | pub fn parse_terminated(input: ParseStream) -> Result [INFO] [stdout] | ---------------- required by a bound in this associated function [INFO] [stdout] 291 | where [INFO] [stdout] 292 | T: Parse, [INFO] [stdout] | ^^^^^ required by this bound in `Punctuated::::parse_terminated` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parse.rs:191:25 [INFO] [stdout] | [INFO] [stdout] 191 | if is_attr_name(&attr, "doc") { [INFO] [stdout] | ------------ ^^^^^ expected `syn::attr::Attribute`, found `syn::Attribute` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: two different versions of crate `syn` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/attr.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / ast_struct! { [INFO] [stdout] 13 | | /// An attribute like `#[repr(transparent)]`. [INFO] [stdout] 14 | | /// [INFO] [stdout] 15 | | /// *This type is available only if Syn is built with the `"derive"` or `"full"` [INFO] [stdout] ... | [INFO] [stdout] 156 | | } [INFO] [stdout] | |__^ this is the found type `syn::Attribute` [INFO] [stdout] | [INFO] [stdout] ::: src/expand.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use syn::*; [INFO] [stdout] | --- one version of crate `syn` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use swc_macros_common::prelude::*; [INFO] [stdout] | ----------------- one version of crate `syn` used here, as a dependency of crate `swc_macros_common` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.106/src/attr.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / ast_struct! { [INFO] [stdout] 20 | | /// An attribute, like `#[repr(transparent)]`. [INFO] [stdout] 21 | | /// [INFO] [stdout] 22 | | ///
[INFO] [stdout] ... | [INFO] [stdout] 179 | | } [INFO] [stdout] | |_^ this is the expected type `syn::attr::Attribute` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/swc_macros_common-0.3.14/src/lib.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn is_attr_name(attr: &Attribute, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `strip_attrs_pub` which comes from the expansion of the macro `ast_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parse.rs:195:25 [INFO] [stdout] | [INFO] [stdout] 195 | if is_attr_name(&attr, "kind") { [INFO] [stdout] | ------------ ^^^^^ expected `syn::attr::Attribute`, found `syn::Attribute` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: two different versions of crate `syn` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/attr.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / ast_struct! { [INFO] [stdout] 13 | | /// An attribute like `#[repr(transparent)]`. [INFO] [stdout] 14 | | /// [INFO] [stdout] 15 | | /// *This type is available only if Syn is built with the `"derive"` or `"full"` [INFO] [stdout] ... | [INFO] [stdout] 156 | | } [INFO] [stdout] | |__^ this is the found type `syn::Attribute` [INFO] [stdout] | [INFO] [stdout] ::: src/expand.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use syn::*; [INFO] [stdout] | --- one version of crate `syn` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use swc_macros_common::prelude::*; [INFO] [stdout] | ----------------- one version of crate `syn` used here, as a dependency of crate `swc_macros_common` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.106/src/attr.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / ast_struct! { [INFO] [stdout] 20 | | /// An attribute, like `#[repr(transparent)]`. [INFO] [stdout] 21 | | /// [INFO] [stdout] 22 | | ///
[INFO] [stdout] ... | [INFO] [stdout] 179 | | } [INFO] [stdout] | |_^ this is the expected type `syn::attr::Attribute` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/swc_macros_common-0.3.14/src/lib.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn is_attr_name(attr: &Attribute, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `strip_attrs_pub` which comes from the expansion of the macro `ast_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `enum_kind` (lib) due to 19 previous errors [INFO] running `Command { std: "docker" "inspect" "54067dba4745b901354aeac669f9aa0455fbe188a4fbb2097976a32d6d20dce9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54067dba4745b901354aeac669f9aa0455fbe188a4fbb2097976a32d6d20dce9", kill_on_drop: false }` [INFO] [stdout] 54067dba4745b901354aeac669f9aa0455fbe188a4fbb2097976a32d6d20dce9