[INFO] fetching crate variants-derive 0.0.0... [INFO] checking variants-derive-0.0.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate variants-derive 0.0.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate variants-derive 0.0.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate variants-derive 0.0.0 [INFO] tweaked toml for crates.io crate variants-derive 0.0.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate variants-derive 0.0.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate variants-derive 0.0.0 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d1bf2a5a8d7f02ae9789c7106255e1435d6f1545f5566a332a3e06c56d49c90 [INFO] running `Command { std: "docker" "start" "-a" "2d1bf2a5a8d7f02ae9789c7106255e1435d6f1545f5566a332a3e06c56d49c90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d1bf2a5a8d7f02ae9789c7106255e1435d6f1545f5566a332a3e06c56d49c90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d1bf2a5a8d7f02ae9789c7106255e1435d6f1545f5566a332a3e06c56d49c90", kill_on_drop: false }` [INFO] [stdout] 2d1bf2a5a8d7f02ae9789c7106255e1435d6f1545f5566a332a3e06c56d49c90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 73d76e4a79fb7cff5bd85d9cc04b704d1cbfc7e4ad222dd68803623c9376ee97 [INFO] running `Command { std: "docker" "start" "-a" "73d76e4a79fb7cff5bd85d9cc04b704d1cbfc7e4ad222dd68803623c9376ee97", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Checking unicode-ident v1.0.14 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking variants-derive v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `ScsysAttr` is never constructed [INFO] [stdout] --> src/attrs/attr.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ScsysAttr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParamsAttr` is never constructed [INFO] [stdout] --> src/attrs/attr.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ParamsAttr { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capitalize_first` is never used [INFO] [stdout] --> src/utils.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn capitalize_first(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScsysAttr` is never constructed [INFO] [stdout] --> src/attrs/attr.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ScsysAttr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParamsAttr` is never constructed [INFO] [stdout] --> src/attrs/attr.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ParamsAttr { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capitalize_first` is never used [INFO] [stdout] --> src/utils.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn capitalize_first(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `scsys_derive` [INFO] [stdout] --> tests/display.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use scsys_derive::{Display, VariantConstructors}; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `scsys_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `scsys_derive`, use `cargo add scsys_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> tests/display.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | Clone, Debug, Default, Deserialize, Display, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/display.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> tests/display.rs:11:88 [INFO] [stdout] | [INFO] [stdout] 11 | Clone, Debug, Default, Deserialize, Display, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/display.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `display` in this scope [INFO] [stdout] --> tests/display.rs:13:3 [INFO] [stdout] | [INFO] [stdout] 13 | #[display] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `TestStruct` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/display.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TestStruct { [INFO] [stdout] | --------------------- method `to_string` not found for this struct because it doesn't satisfy `TestStruct: ToString` or `TestStruct: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 33 | test_struct.to_string(), [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `TestStruct` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TestStruct: std::fmt::Display` [INFO] [stdout] which is required by `TestStruct: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/fmt/mod.rs:1006:1 [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_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TestStruct: Serialize` is not satisfied [INFO] [stdout] --> tests/display.rs:34:31 [INFO] [stdout] | [INFO] [stdout] 34 | serde_json::to_string(&test_struct).unwrap() [INFO] [stdout] | --------------------- ^^^^^^^^^^^^ the trait `Serialize` is not implemented for `TestStruct` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: for local types consider adding `#[derive(serde::Serialize)]` to your `TestStruct` 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 `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 131 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.133/src/ser.rs:2211:17 [INFO] [stdout] | [INFO] [stdout] 2209 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2210 | where [INFO] [stdout] 2211 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `a` found for enum `SampleUnit` in the current scope [INFO] [stdout] --> tests/display.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum SampleUnit { [INFO] [stdout] | ------------------- variant or associated item `a` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 40 | assert_eq!(SampleUnit::a(), SampleUnit::A); [INFO] [stdout] | ^ variant or associated item not found in `SampleUnit` [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 40 - assert_eq!(SampleUnit::a(), SampleUnit::A); [INFO] [stdout] 40 + assert_eq!(SampleUnit::A, SampleUnit::A); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `b` found for enum `SampleUnit` in the current scope [INFO] [stdout] --> tests/display.rs:41:28 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum SampleUnit { [INFO] [stdout] | ------------------- variant or associated item `b` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 41 | assert_eq!(SampleUnit::b(0), SampleUnit::B(0)); [INFO] [stdout] | ^ variant or associated item not found in `SampleUnit` [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 41 - assert_eq!(SampleUnit::b(0), SampleUnit::B(0)); [INFO] [stdout] 41 + assert_eq!(SampleUnit::B(0), SampleUnit::B(0)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `c` found for enum `SampleUnit` in the current scope [INFO] [stdout] --> tests/display.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum SampleUnit { [INFO] [stdout] | ------------------- variant or associated item `c` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 42 | assert_eq!(SampleUnit::c(0), SampleUnit::C { inner: 0 }); [INFO] [stdout] | ^ variant or associated item not found in `SampleUnit` [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 42 - assert_eq!(SampleUnit::c(0), SampleUnit::C { inner: 0 }); [INFO] [stdout] 42 + assert_eq!(SampleUnit::C { inner: /* value */ }, SampleUnit::C { inner: 0 }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `abc_def` found for enum `SampleUnit` in the current scope [INFO] [stdout] --> tests/display.rs:43:28 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum SampleUnit { [INFO] [stdout] | ------------------- variant or associated item `abc_def` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 43 | assert_eq!(SampleUnit::abc_def(0), SampleUnit::AbcDef(0)); [INFO] [stdout] | ^^^^^^^ variant or associated item not found in `SampleUnit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `variants-derive` (test "display") due to 10 previous errors [INFO] running `Command { std: "docker" "inspect" "73d76e4a79fb7cff5bd85d9cc04b704d1cbfc7e4ad222dd68803623c9376ee97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73d76e4a79fb7cff5bd85d9cc04b704d1cbfc7e4ad222dd68803623c9376ee97", kill_on_drop: false }` [INFO] [stdout] 73d76e4a79fb7cff5bd85d9cc04b704d1cbfc7e4ad222dd68803623c9376ee97