[INFO] fetching crate struct2map 0.1.6... [INFO] testing struct2map-0.1.6 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate struct2map 0.1.6 into /workspace/builds/worker-4-tc1/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-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate struct2map 0.1.6 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 425a2cf00789f6794bbcf11a382fe5c0a025c935a5c1343a2ab997ad1e830a54 [INFO] running `Command { std: "docker" "start" "-a" "425a2cf00789f6794bbcf11a382fe5c0a025c935a5c1343a2ab997ad1e830a54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "425a2cf00789f6794bbcf11a382fe5c0a025c935a5c1343a2ab997ad1e830a54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "425a2cf00789f6794bbcf11a382fe5c0a025c935a5c1343a2ab997ad1e830a54", kill_on_drop: false }` [INFO] [stdout] 425a2cf00789f6794bbcf11a382fe5c0a025c935a5c1343a2ab997ad1e830a54 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be3ef631eaa03feaecb287d99033b30cfd91383f3c8dffb24d79a738f7d6d4b3 [INFO] running `Command { std: "docker" "start" "-a" "be3ef631eaa03feaecb287d99033b30cfd91383f3c8dffb24d79a738f7d6d4b3", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [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 3.92s [INFO] running `Command { std: "docker" "inspect" "be3ef631eaa03feaecb287d99033b30cfd91383f3c8dffb24d79a738f7d6d4b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be3ef631eaa03feaecb287d99033b30cfd91383f3c8dffb24d79a738f7d6d4b3", kill_on_drop: false }` [INFO] [stdout] be3ef631eaa03feaecb287d99033b30cfd91383f3c8dffb24d79a738f7d6d4b3 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc3dfb8b2a1b65a58cb5db2495109046fb9e1ff88e9754640fdbd1c245347d54 [INFO] running `Command { std: "docker" "start" "-a" "dc3dfb8b2a1b65a58cb5db2495109046fb9e1ff88e9754640fdbd1c245347d54", 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] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/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 [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 `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] 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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "dc3dfb8b2a1b65a58cb5db2495109046fb9e1ff88e9754640fdbd1c245347d54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc3dfb8b2a1b65a58cb5db2495109046fb9e1ff88e9754640fdbd1c245347d54", kill_on_drop: false }` [INFO] [stdout] dc3dfb8b2a1b65a58cb5db2495109046fb9e1ff88e9754640fdbd1c245347d54