[INFO] fetching crate witgen_macro_helper 0.15.0... [INFO] testing witgen_macro_helper-0.15.0 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate witgen_macro_helper 0.15.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate witgen_macro_helper 0.15.0 [INFO] finished tweaking crates.io crate witgen_macro_helper 0.15.0 [INFO] tweaked toml for crates.io crate witgen_macro_helper 0.15.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate witgen_macro_helper 0.15.0 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 29 packages to latest compatible versions [INFO] [stderr] Adding heck v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.106) [INFO] [stderr] Adding syn-file-expand v0.2.0 (available: v0.3.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn-file-expand v0.2.0 [INFO] [stderr] Downloaded aha-wit-parser v0.2.0 [INFO] [stderr] Downloaded im-rc v15.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a15c418e9a39952bc29adf5eda269eab28b475b1b74dfcf472125676d74e35f1 [INFO] running `Command { std: "docker" "start" "-a" "a15c418e9a39952bc29adf5eda269eab28b475b1b74dfcf472125676d74e35f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a15c418e9a39952bc29adf5eda269eab28b475b1b74dfcf472125676d74e35f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a15c418e9a39952bc29adf5eda269eab28b475b1b74dfcf472125676d74e35f1", kill_on_drop: false }` [INFO] [stdout] a15c418e9a39952bc29adf5eda269eab28b475b1b74dfcf472125676d74e35f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a0df822645bb2d4bbe6e84c8cb9e60c20e3f74f5102b98edad5b4a6350dbd08 [INFO] running `Command { std: "docker" "start" "-a" "2a0df822645bb2d4bbe6e84c8cb9e60c20e3f74f5102b98edad5b4a6350dbd08", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling im-rc v15.1.0 [INFO] [stderr] Compiling pulldown-cmark v0.8.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling bitmaps v2.1.0 [INFO] [stderr] Compiling rand_xoshiro v0.6.0 [INFO] [stderr] Compiling id-arena v2.2.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling sized-chunks v0.6.5 [INFO] [stderr] Compiling aha-wit-parser v0.2.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling syn-file-expand v0.2.0 [INFO] [stderr] Compiling witgen_macro_helper v0.15.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.34s [INFO] running `Command { std: "docker" "inspect" "2a0df822645bb2d4bbe6e84c8cb9e60c20e3f74f5102b98edad5b4a6350dbd08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a0df822645bb2d4bbe6e84c8cb9e60c20e3f74f5102b98edad5b4a6350dbd08", kill_on_drop: false }` [INFO] [stdout] 2a0df822645bb2d4bbe6e84c8cb9e60c20e3f74f5102b98edad5b4a6350dbd08 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3666c05ab03470aa97175ad4d4bf1eac5bd8b1d4ef0fe75bae58dfb65c9581f6 [INFO] running `Command { std: "docker" "start" "-a" "3666c05ab03470aa97175ad4d4bf1eac5bd8b1d4ef0fe75bae58dfb65c9581f6", kill_on_drop: false }` [INFO] [stderr] Compiling witgen_macro_helper v0.15.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `Command { std: "docker" "inspect" "3666c05ab03470aa97175ad4d4bf1eac5bd8b1d4ef0fe75bae58dfb65c9581f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3666c05ab03470aa97175ad4d4bf1eac5bd8b1d4ef0fe75bae58dfb65c9581f6", kill_on_drop: false }` [INFO] [stdout] 3666c05ab03470aa97175ad4d4bf1eac5bd8b1d4ef0fe75bae58dfb65c9581f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3fd26ab7eac6677a93704893a00b16bbb02d0edde8fcf9df7b6e66a4b0439b7d [INFO] running `Command { std: "docker" "start" "-a" "3fd26ab7eac6677a93704893a00b16bbb02d0edde8fcf9df7b6e66a4b0439b7d", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/witgen_macro_helper-371835c08f663eb0) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests witgen_macro_helper [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/lib.rs - parse_tokens (line 23) ... FAILED [INFO] [stdout] test src/lib.rs - parse_file (line 69) ... FAILED [INFO] [stdout] test src/generator.rs - generator::gen_wit_enum (line 75) ... ok [INFO] [stdout] test src/generator.rs - generator::gen_wit_struct (line 15) ... FAILED [INFO] [stdout] test src/generator.rs - generator::gen_wit_type_alias (line 188) ... FAILED [INFO] [stdout] test src/generator.rs - generator::gen_wit_function (line 156) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - parse_tokens (line 23) stdout ---- [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/lib.rs:24:41 [INFO] [stdout] | [INFO] [stdout] 3 | let wit: Result = tokens.try_into() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | } _doctest_main_src_lib_rs_23_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Wit` in this scope [INFO] [stdout] --> src/lib.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 3 | let wit: Result = tokens.try_into() [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use witgen_macro_helper::Wit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `tokens` in this scope [INFO] [stdout] --> src/lib.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 3 | let wit: Result = tokens.try_into() [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 3 | let wit: Result = tokens.try_into() [INFO] [stdout] | ^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 3 | let wit: Result = tokens.try_into() [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - parse_file (line 69) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Wit` in this scope [INFO] [stdout] --> src/lib.rs:70:10 [INFO] [stdout] | [INFO] [stdout] 3 | let wit: Wit = file.into(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use witgen_macro_helper::Wit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/lib.rs:70:16 [INFO] [stdout] | [INFO] [stdout] 3 | let wit: Wit = file.into(); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0423. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/generator.rs - generator::gen_wit_struct (line 15) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `string` in this scope [INFO] [stdout] --> src/generator.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 5 | a: string, [INFO] [stdout] | ^^^^^^ help: a struct with a similar name exists (notice the capitalization): `String` [INFO] [stdout] | [INFO] [stdout] --> /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/alloc/src/string.rs:360:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `String` defined here [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/generator.rs - generator::gen_wit_type_alias (line 188) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `option` in this scope [INFO] [stdout] --> src/generator.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 4 | type foo = (String, option); [INFO] [stdout] | ^^^^^^ help: an enum with a similar name exists (notice the capitalization): `Option` [INFO] [stdout] | [INFO] [stdout] --> /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:594:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named enum `Option` defined here [INFO] [stdout] [INFO] [stdout] warning: type `foo` should have an upper camel case name [INFO] [stdout] --> src/generator.rs:190:6 [INFO] [stdout] | [INFO] [stdout] 4 | type foo = (String, option); [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/generator.rs - generator::gen_wit_function (line 156) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `string` in this scope [INFO] [stdout] --> src/generator.rs:158:11 [INFO] [stdout] | [INFO] [stdout] 4 | fn foo(a: string, b: Option) -> Result { Ok(a)} [INFO] [stdout] | ^^^^^^ help: a struct with a similar name exists (notice the capitalization): `String` [INFO] [stdout] | [INFO] [stdout] --> /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/alloc/src/string.rs:360:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `String` defined here [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `string` in this scope [INFO] [stdout] --> src/generator.rs:158:45 [INFO] [stdout] | [INFO] [stdout] 4 | fn foo(a: string, b: Option) -> Result { Ok(a)} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/alloc/src/string.rs:360:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `String` defined here [INFO] [stdout] help: a struct with a similar name exists (notice the capitalization) [INFO] [stdout] | [INFO] [stdout] 4 - fn foo(a: string, b: Option) -> Result { Ok(a)} [INFO] [stdout] 4 + fn foo(a: string, b: Option) -> Result { Ok(a)} [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | fn foo(a: string, b: Option) -> Result { Ok(a)} [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/generator.rs:158:38 [INFO] [stdout] | [INFO] [stdout] 4 | fn foo(a: string, b: Option) -> Result { Ok(a)} [INFO] [stdout] | ^^^^^^ ------ supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 4 | fn foo(a: string, b: Option) -> Result { Ok(a)} [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/generator.rs - generator::gen_wit_function (line 156) [INFO] [stdout] src/generator.rs - generator::gen_wit_struct (line 15) [INFO] [stdout] src/generator.rs - generator::gen_wit_type_alias (line 188) [INFO] [stdout] src/lib.rs - parse_file (line 69) [INFO] [stdout] src/lib.rs - parse_tokens (line 23) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "3fd26ab7eac6677a93704893a00b16bbb02d0edde8fcf9df7b6e66a4b0439b7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fd26ab7eac6677a93704893a00b16bbb02d0edde8fcf9df7b6e66a4b0439b7d", kill_on_drop: false }` [INFO] [stdout] 3fd26ab7eac6677a93704893a00b16bbb02d0edde8fcf9df7b6e66a4b0439b7d