[INFO] fetching crate witgen_macro_helper 0.15.0... [INFO] testing witgen_macro_helper-0.15.0 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate witgen_macro_helper 0.15.0 into /workspace/builds/worker-6-tc2/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-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate witgen_macro_helper 0.15.0 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a75b7b894824a05425ab754e80637b401110eeae22b1ca548d7770f6fd71ae66 [INFO] running `Command { std: "docker" "start" "-a" "a75b7b894824a05425ab754e80637b401110eeae22b1ca548d7770f6fd71ae66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a75b7b894824a05425ab754e80637b401110eeae22b1ca548d7770f6fd71ae66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a75b7b894824a05425ab754e80637b401110eeae22b1ca548d7770f6fd71ae66", kill_on_drop: false }` [INFO] [stdout] a75b7b894824a05425ab754e80637b401110eeae22b1ca548d7770f6fd71ae66 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a5752b3afab966cbfc252033b0be253e5a3ea9f4eccd02fb762e8731d15012a [INFO] running `Command { std: "docker" "start" "-a" "7a5752b3afab966cbfc252033b0be253e5a3ea9f4eccd02fb762e8731d15012a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling bitmaps v2.1.0 [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 rand_xoshiro v0.6.0 [INFO] [stderr] Compiling id-arena v2.2.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling aha-wit-parser v0.2.0 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling sized-chunks v0.6.5 [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 19.59s [INFO] running `Command { std: "docker" "inspect" "7a5752b3afab966cbfc252033b0be253e5a3ea9f4eccd02fb762e8731d15012a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a5752b3afab966cbfc252033b0be253e5a3ea9f4eccd02fb762e8731d15012a", kill_on_drop: false }` [INFO] [stdout] 7a5752b3afab966cbfc252033b0be253e5a3ea9f4eccd02fb762e8731d15012a [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 306bb3c584e1902f5d897c9c8e5e895ea61b786a693af40e71f4d127393dfadc [INFO] running `Command { std: "docker" "start" "-a" "306bb3c584e1902f5d897c9c8e5e895ea61b786a693af40e71f4d127393dfadc", 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.64s [INFO] running `Command { std: "docker" "inspect" "306bb3c584e1902f5d897c9c8e5e895ea61b786a693af40e71f4d127393dfadc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "306bb3c584e1902f5d897c9c8e5e895ea61b786a693af40e71f4d127393dfadc", kill_on_drop: false }` [INFO] [stdout] 306bb3c584e1902f5d897c9c8e5e895ea61b786a693af40e71f4d127393dfadc [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4de6ac5afd63dd3e4aa9122c6e6f6e4207ea9d7aeeb70d80db392d0ef981db61 [INFO] running `Command { std: "docker" "start" "-a" "4de6ac5afd63dd3e4aa9122c6e6f6e4207ea9d7aeeb70d80db392d0ef981db61", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [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_file (line 69) ... FAILED [INFO] [stdout] test src/lib.rs - parse_tokens (line 23) ... 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] test src/generator.rs - generator::gen_wit_struct (line 15) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/generator.rs - generator::gen_wit_enum (line 75) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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/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/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/2440211fe03bc45c89b6dc1a3df18382ce91e32b/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/2440211fe03bc45c89b6dc1a3df18382ce91e32b/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/2440211fe03bc45c89b6dc1a3df18382ce91e32b/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] ---- 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/2440211fe03bc45c89b6dc1a3df18382ce91e32b/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] [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.72s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4de6ac5afd63dd3e4aa9122c6e6f6e4207ea9d7aeeb70d80db392d0ef981db61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4de6ac5afd63dd3e4aa9122c6e6f6e4207ea9d7aeeb70d80db392d0ef981db61", kill_on_drop: false }` [INFO] [stdout] 4de6ac5afd63dd3e4aa9122c6e6f6e4207ea9d7aeeb70d80db392d0ef981db61