[INFO] cloning repository https://github.com/lokimckay/derive-fields [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lokimckay/derive-fields" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flokimckay%2Fderive-fields", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flokimckay%2Fderive-fields'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c4bc5a327053bfd5542dd4e978340c742b0cfb18 [INFO] testing lokimckay/derive-fields against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flokimckay%2Fderive-fields" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lokimckay/derive-fields [INFO] removed 0 missing tests [INFO] finished tweaking git repo https://github.com/lokimckay/derive-fields [INFO] tweaked toml for git repo https://github.com/lokimckay/derive-fields written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lokimckay/derive-fields on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lokimckay/derive-fields already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded trybuild v1.0.112 [INFO] [stderr] Downloaded target-triple v0.1.4 [INFO] [stderr] Downloaded serde_spanned v1.0.3 [INFO] [stderr] Downloaded toml_datetime v0.7.3 [INFO] [stderr] Downloaded toml_writer v1.0.4 [INFO] [stderr] Downloaded toml_parser v1.0.4 [INFO] [stderr] Downloaded toml v0.9.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fe21a5f165d0e00c9b295cee9ee69d06a798d4275d82b4a36ec67eacff71b67b [INFO] running `Command { std: "docker" "start" "-a" "fe21a5f165d0e00c9b295cee9ee69d06a798d4275d82b4a36ec67eacff71b67b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe21a5f165d0e00c9b295cee9ee69d06a798d4275d82b4a36ec67eacff71b67b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe21a5f165d0e00c9b295cee9ee69d06a798d4275d82b4a36ec67eacff71b67b", kill_on_drop: false }` [INFO] [stdout] fe21a5f165d0e00c9b295cee9ee69d06a798d4275d82b4a36ec67eacff71b67b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c821841e6da9d2e49f49a9d0ddbd1eee7a892c97883df6cc475965289bf467bf [INFO] running `Command { std: "docker" "start" "-a" "c821841e6da9d2e49f49a9d0ddbd1eee7a892c97883df6cc475965289bf467bf", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling convert_case v0.8.0 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling strum v0.27.2 [INFO] [stderr] Compiling derive-fields v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.21s [INFO] running `Command { std: "docker" "inspect" "c821841e6da9d2e49f49a9d0ddbd1eee7a892c97883df6cc475965289bf467bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c821841e6da9d2e49f49a9d0ddbd1eee7a892c97883df6cc475965289bf467bf", kill_on_drop: false }` [INFO] [stdout] c821841e6da9d2e49f49a9d0ddbd1eee7a892c97883df6cc475965289bf467bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bfa815e5bb8380454fcc1274fdc5782021681c137f9d10b179f5f12babe62255 [INFO] running `Command { std: "docker" "start" "-a" "bfa815e5bb8380454fcc1274fdc5782021681c137f9d10b179f5f12babe62255", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling target-triple v0.1.4 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling toml_writer v1.0.4 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling serde_spanned v1.0.3 [INFO] [stderr] Compiling toml_datetime v0.7.3 [INFO] [stderr] Compiling convert_case v0.8.0 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling toml_parser v1.0.4 [INFO] [stderr] Compiling toml v0.9.8 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling strum v0.27.2 [INFO] [stderr] Compiling derive-fields v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling trybuild v1.0.112 [INFO] [stdout] error[E0277]: the trait bound `ExampleStructFieldKey: IntoEnumIterator` is not satisfied [INFO] [stdout] --> tests/derives.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ExampleStruct { [INFO] [stdout] | ^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `IntoEnumIterator` is not implemented for `ExampleStructFieldKey` [INFO] [stdout] --> tests/derives.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Fields, FieldKeys)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `FieldKeys` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ExampleStructFieldKey: IntoEnumIterator` is not satisfied [INFO] [stdout] --> tests/derives.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Fields, FieldKeys)] [INFO] [stdout] | ^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `IntoEnumIterator` is not implemented for `ExampleStructFieldKey` [INFO] [stdout] --> tests/derives.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Fields, FieldKeys)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `FieldKeys` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clone` found for enum `ExampleStructFieldKey` in the current scope [INFO] [stdout] --> tests/derives.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Fields, FieldKeys)] [INFO] [stdout] | --------- method `clone` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 19 | let _ = key.clone(); [INFO] [stdout] | ^^^^^ method not found in `ExampleStructFieldKey` [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 `clone`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clone` found for enum `ExampleStructField` in the current scope [INFO] [stdout] --> tests/derives.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Fields, FieldKeys)] [INFO] [stdout] | ------ method `clone` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 20 | let _ = field.clone(); [INFO] [stdout] | ^^^^^ method not found in `ExampleStructField` [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 `clone`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `derive-fields` (test "derives") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the trait bound `ExampleStructFieldKey: serde::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:17:42 [INFO] [stdout] | [INFO] [stdout] 17 | let key_json = serde_json::to_string(&key).unwrap(); [INFO] [stdout] | --------------------- ^^^^ unsatisfied trait bound [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `serde_core::ser::Serialize` is not implemented for `ExampleStructFieldKey` [INFO] [stdout] --> tests/serde.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Fields, FieldKeys)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Serialize)]` to your `ExampleStructFieldKey` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `serde_core::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T,) [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 129 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.145/src/ser.rs:2247:17 [INFO] [stdout] | [INFO] [stdout] 2245 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2246 | where [INFO] [stdout] 2247 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] = note: this error originates in the derive macro `FieldKeys` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ExampleStructField: serde::Serialize` is not satisfied [INFO] [stdout] --> tests/serde.rs:18:44 [INFO] [stdout] | [INFO] [stdout] 18 | let field_json = serde_json::to_string(&field).unwrap(); [INFO] [stdout] | --------------------- ^^^^^^ unsatisfied trait bound [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `serde_core::ser::Serialize` is not implemented for `ExampleStructField` [INFO] [stdout] --> tests/serde.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Fields, FieldKeys)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Serialize)]` to your `ExampleStructField` type [INFO] [stdout] = note: for types from other crates check whether the crate offers a `serde` feature flag [INFO] [stdout] = help: the following other types implement trait `serde_core::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T,) [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 129 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.145/src/ser.rs:2247:17 [INFO] [stdout] | [INFO] [stdout] 2245 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2246 | where [INFO] [stdout] 2247 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] = note: this error originates in the derive macro `Fields` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `derive-fields` (test "serde") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "bfa815e5bb8380454fcc1274fdc5782021681c137f9d10b179f5f12babe62255", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfa815e5bb8380454fcc1274fdc5782021681c137f9d10b179f5f12babe62255", kill_on_drop: false }` [INFO] [stdout] bfa815e5bb8380454fcc1274fdc5782021681c137f9d10b179f5f12babe62255