[INFO] fetching crate witgen_macro_helper 0.15.0...
[INFO] testing witgen_macro_helper-0.15.0 against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759
[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 733b47ea4b1b86216f14ef56e49440c33933f230
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d24f9f1335ddbd5cebeaeab35b7fb9e676387df4070df98c22d4e91c8e41d503
[INFO] running `Command { std: "docker" "start" "-a" "d24f9f1335ddbd5cebeaeab35b7fb9e676387df4070df98c22d4e91c8e41d503", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d24f9f1335ddbd5cebeaeab35b7fb9e676387df4070df98c22d4e91c8e41d503", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d24f9f1335ddbd5cebeaeab35b7fb9e676387df4070df98c22d4e91c8e41d503", kill_on_drop: false }`
[INFO] [stdout] d24f9f1335ddbd5cebeaeab35b7fb9e676387df4070df98c22d4e91c8e41d503
[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 -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b97c36f3f4c022fcf022a89221433efb2506c69d68c60335faef2ee7454c3193
[INFO] running `Command { std: "docker" "start" "-a" "b97c36f3f4c022fcf022a89221433efb2506c69d68c60335faef2ee7454c3193", kill_on_drop: false }`
[INFO] [stderr]    Compiling pulldown-cmark v0.8.0
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling quote v1.0.41
[INFO] [stderr]    Compiling proc-macro2 v1.0.101
[INFO] [stderr]    Compiling im-rc v15.1.0
[INFO] [stderr]    Compiling id-arena v2.2.1
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]    Compiling rand_xoshiro v0.6.0
[INFO] [stderr]    Compiling syn v2.0.106
[INFO] [stderr]    Compiling aha-wit-parser v0.2.0
[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 1m 11s
[INFO] running `Command { std: "docker" "inspect" "b97c36f3f4c022fcf022a89221433efb2506c69d68c60335faef2ee7454c3193", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b97c36f3f4c022fcf022a89221433efb2506c69d68c60335faef2ee7454c3193", kill_on_drop: false }`
[INFO] [stdout] b97c36f3f4c022fcf022a89221433efb2506c69d68c60335faef2ee7454c3193
[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 -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a41445fd5af1c2d7d0172313c6426dd70e56975cc8a69b4a2eb5897d0a6fd9c7
[INFO] running `Command { std: "docker" "start" "-a" "a41445fd5af1c2d7d0172313c6426dd70e56975cc8a69b4a2eb5897d0a6fd9c7", 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.67s
[INFO] running `Command { std: "docker" "inspect" "a41445fd5af1c2d7d0172313c6426dd70e56975cc8a69b4a2eb5897d0a6fd9c7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a41445fd5af1c2d7d0172313c6426dd70e56975cc8a69b4a2eb5897d0a6fd9c7", kill_on_drop: false }`
[INFO] [stdout] a41445fd5af1c2d7d0172313c6426dd70e56975cc8a69b4a2eb5897d0a6fd9c7
[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 -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 3583c31ec38fba5c1d8f8df8fc61395db8ddd11b53e2a635dbb4366a61202546
[INFO] running `Command { std: "docker" "start" "-a" "3583c31ec38fba5c1d8f8df8fc61395db8ddd11b53e2a635dbb4366a61202546", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/witgen_macro_helper-4b15763c1606fba8)
[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_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] 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<Wit> = 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<Wit> = 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<Wit> = 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<Wit> = 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<Wit, E> = 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_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]  --> /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/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<bool>);
[INFO] [stdout]   |                     ^^^^^^ help: an enum with a similar name exists (notice the capitalization): `Option`
[INFO] [stdout]  --> /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/core/src/option.rs:591: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<bool>);
[INFO] [stdout]   |      ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_camel_case_types)]` 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<i32>) -> Result<string> { Ok(a)}
[INFO] [stdout]   |           ^^^^^^ help: a struct with a similar name exists (notice the capitalization): `String`
[INFO] [stdout]  --> /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/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<i32>) -> Result<string> { Ok(a)}
[INFO] [stdout]   |                                             ^^^^^^
[INFO] [stdout]  --> /rustc/733b47ea4b1b86216f14ef56e49440c33933f230/library/alloc/src/string.rs:360:1
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named struct `String` defined here
[INFO] [stdout]   |
[INFO] [stdout] help: a struct with a similar name exists (notice the capitalization difference)
[INFO] [stdout]   |
[INFO] [stdout] 4 - fn foo(a: string, b: Option<i32>) -> Result<string> { Ok(a)}
[INFO] [stdout] 4 + fn foo(a: string, b: Option<i32>) -> Result<String> { Ok(a)}
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn foo<string>(a: string, b: Option<i32>) -> Result<string> { 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<i32>) -> Result<string> { 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<i32>) -> Result<string, E> { 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.40s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "3583c31ec38fba5c1d8f8df8fc61395db8ddd11b53e2a635dbb4366a61202546", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3583c31ec38fba5c1d8f8df8fc61395db8ddd11b53e2a635dbb4366a61202546", kill_on_drop: false }`
[INFO] [stdout] 3583c31ec38fba5c1d8f8df8fc61395db8ddd11b53e2a635dbb4366a61202546
