[INFO] fetching crate struct2map 0.1.6... [INFO] checking struct2map-0.1.6 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate struct2map 0.1.6 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate struct2map 0.1.6 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded struct2map-derive v0.1.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6f2d69a27d008dca6e60fde309e94543905bd67d063d910aa955ec65bb496be0 [INFO] running `Command { std: "docker" "start" "-a" "6f2d69a27d008dca6e60fde309e94543905bd67d063d910aa955ec65bb496be0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6f2d69a27d008dca6e60fde309e94543905bd67d063d910aa955ec65bb496be0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f2d69a27d008dca6e60fde309e94543905bd67d063d910aa955ec65bb496be0", kill_on_drop: false }` [INFO] [stdout] 6f2d69a27d008dca6e60fde309e94543905bd67d063d910aa955ec65bb496be0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a076db57a7585738533a78ec59360794f8d5652bb4b0a8db0b8cf6062e7f5af [INFO] running `Command { std: "docker" "start" "-a" "0a076db57a7585738533a78ec59360794f8d5652bb4b0a8db0b8cf6062e7f5af", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling struct2map-derive v0.1.6 [INFO] [stderr] Checking 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 undeclared crate or module `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 undeclared crate or module `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] [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] [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] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/string.rs:362:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `String` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [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 `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] 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_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 `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: aborting due to 12 previous errors [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 13 previous errors [INFO] running `Command { std: "docker" "inspect" "0a076db57a7585738533a78ec59360794f8d5652bb4b0a8db0b8cf6062e7f5af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a076db57a7585738533a78ec59360794f8d5652bb4b0a8db0b8cf6062e7f5af", kill_on_drop: false }` [INFO] [stdout] 0a076db57a7585738533a78ec59360794f8d5652bb4b0a8db0b8cf6062e7f5af