[INFO] fetching crate struct2map 0.1.6... [INFO] building struct2map-0.1.6 against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] extracting crate struct2map 0.1.6 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate struct2map 0.1.6 [INFO] finished tweaking crates.io crate struct2map 0.1.6 [INFO] tweaked toml for crates.io crate struct2map 0.1.6 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate struct2map 0.1.6 on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 79fe82ccfda60efd7d05190b95073badf2c3fefaad7e9c92110f4f0344e4a51e [INFO] running `Command { std: "docker" "start" "-a" "79fe82ccfda60efd7d05190b95073badf2c3fefaad7e9c92110f4f0344e4a51e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "79fe82ccfda60efd7d05190b95073badf2c3fefaad7e9c92110f4f0344e4a51e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79fe82ccfda60efd7d05190b95073badf2c3fefaad7e9c92110f4f0344e4a51e", kill_on_drop: false }` [INFO] [stdout] 79fe82ccfda60efd7d05190b95073badf2c3fefaad7e9c92110f4f0344e4a51e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 61bf8596d48d0cf8a6856e4f7383b51b343fdab76551401f7f816b2f8e2f3494 [INFO] running `Command { std: "docker" "start" "-a" "61bf8596d48d0cf8a6856e4f7383b51b343fdab76551401f7f816b2f8e2f3494", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling struct2map-derive v0.1.6 [INFO] [stderr] Compiling struct2map v0.1.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.17s [INFO] running `Command { std: "docker" "inspect" "61bf8596d48d0cf8a6856e4f7383b51b343fdab76551401f7f816b2f8e2f3494", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61bf8596d48d0cf8a6856e4f7383b51b343fdab76551401f7f816b2f8e2f3494", kill_on_drop: false }` [INFO] [stdout] 61bf8596d48d0cf8a6856e4f7383b51b343fdab76551401f7f816b2f8e2f3494 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 775c1503174f52dbf7f0c6f381eeadfd8c6fd90c1c8a079371be41a825fcd1b5 [INFO] running `Command { std: "docker" "start" "-a" "775c1503174f52dbf7f0c6f381eeadfd8c6fd90c1c8a079371be41a825fcd1b5", kill_on_drop: false }` [INFO] [stderr] Compiling struct2map v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `structmap` [INFO] [stdout] --> tests/test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use structmap::{FromMap, ToMap}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `structmap` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 | use struct2map::{FromMap, ToMap}; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `structmap_derive` [INFO] [stdout] --> tests/test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use structmap_derive::{FromMap, ToMap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `structmap_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 4 | use struct2map_derive::{FromMap, ToMap}; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `rename` in this scope [INFO] [stdout] --> tests/test.rs:71:7 [INFO] [stdout] | [INFO] [stdout] 71 | #[rename(name = "Full Name")] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `rename` is an attribute that can be used by the derive macro `ToMap`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `rename` in this scope [INFO] [stdout] --> tests/test.rs:74:7 [INFO] [stdout] | [INFO] [stdout] 74 | #[rename(name = "Data")] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `rename` is an attribute that can be used by the derive macro `ToMap`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GenericMap` [INFO] [stdout] --> tests/test.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | let mut hm = GenericMap::new(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `GenericMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 + use struct2map::GenericMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value` [INFO] [stdout] --> tests/test.rs:37:37 [INFO] [stdout] | [INFO] [stdout] 37 | hm.insert(String::from("name"), Value::new("example")); [INFO] [stdout] | ^^^^^ use of undeclared type `Value` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 + use struct2map::value::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value` [INFO] [stdout] --> tests/test.rs:38:38 [INFO] [stdout] | [INFO] [stdout] 38 | hm.insert(String::from("value"), Value::new(0i64)); [INFO] [stdout] | ^^^^^ use of undeclared type `Value` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 + use struct2map::value::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StringMap` in this scope [INFO] [stdout] --> tests/test.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let hm: StringMap = TestStruct::to_stringmap(test_struct); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6/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 [INFO] [stdout] | [INFO] [stdout] 52 - let hm: StringMap = TestStruct::to_stringmap(test_struct); [INFO] [stdout] 52 + let hm: String = TestStruct::to_stringmap(test_struct); [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 + use struct2map::StringMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `to_stringmap` found for struct `TestStruct` in the current scope [INFO] [stdout] --> tests/test.rs:52:37 [INFO] [stdout] | [INFO] [stdout] 7 | struct TestStruct { [INFO] [stdout] | ----------------- function or associated item `to_stringmap` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 52 | let hm: StringMap = TestStruct::to_stringmap(test_struct); [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `TestStruct` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_stringmap`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `struct2map::ToMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `to_stringmap` found for struct `TestStructRename` in the current scope [INFO] [stdout] --> tests/test.rs:94:32 [INFO] [stdout] | [INFO] [stdout] 70 | struct TestStructRename { [INFO] [stdout] | ----------------------- function or associated item `to_stringmap` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 94 | let hm = TestStructRename::to_stringmap(test_struct); [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `TestStructRename` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_stringmap`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `struct2map::ToMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `to_genericmap` found for struct `TestStruct` in the current scope [INFO] [stdout] --> tests/test.rs:64:26 [INFO] [stdout] | [INFO] [stdout] 7 | struct TestStruct { [INFO] [stdout] | ----------------- function or associated item `to_genericmap` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 64 | let hm = TestStruct::to_genericmap(test_struct); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `TestStruct` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_genericmap`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `struct2map::ToMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_genericmap` found for struct `TestStruct` in the current scope [INFO] [stdout] --> tests/test.rs:40:40 [INFO] [stdout] | [INFO] [stdout] 7 | struct TestStruct { [INFO] [stdout] | ----------------- function or associated item `from_genericmap` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 40 | let test: TestStruct = TestStruct::from_genericmap(hm); [INFO] [stdout] | ^^^^^^^^^^^^^^^ function or associated item not found in `TestStruct` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_genericmap`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `struct2map::FromMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `struct2map` (test "test") due to 12 previous errors [INFO] running `Command { std: "docker" "inspect" "775c1503174f52dbf7f0c6f381eeadfd8c6fd90c1c8a079371be41a825fcd1b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "775c1503174f52dbf7f0c6f381eeadfd8c6fd90c1c8a079371be41a825fcd1b5", kill_on_drop: false }` [INFO] [stdout] 775c1503174f52dbf7f0c6f381eeadfd8c6fd90c1c8a079371be41a825fcd1b5