[INFO] cloning repository https://github.com/samlet/derive-macros [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/samlet/derive-macros" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamlet%2Fderive-macros", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamlet%2Fderive-macros'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d496336a8e3c51c42db837fe8551c3e64664760d [INFO] testing samlet/derive-macros against master#61469b682c2b0bf9cebc4622f1859e2bb3b7ebca for pr-91743 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamlet%2Fderive-macros" "/workspace/builds/worker-56/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-56/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/samlet/derive-macros on toolchain 61469b682c2b0bf9cebc4622f1859e2bb3b7ebca [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+61469b682c2b0bf9cebc4622f1859e2bb3b7ebca" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/samlet/derive-macros [INFO] finished tweaking git repo https://github.com/samlet/derive-macros [INFO] tweaked toml for git repo https://github.com/samlet/derive-macros written to /workspace/builds/worker-56/source/Cargo.toml [INFO] crate git repo https://github.com/samlet/derive-macros already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+61469b682c2b0bf9cebc4622f1859e2bb3b7ebca" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-56/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-56/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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+61469b682c2b0bf9cebc4622f1859e2bb3b7ebca" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7fa15eef3bee9d3888ea71dac2efc9141906f38486d50a7b8ef743e92b55c150 [INFO] running `Command { std: "docker" "start" "-a" "7fa15eef3bee9d3888ea71dac2efc9141906f38486d50a7b8ef743e92b55c150", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7fa15eef3bee9d3888ea71dac2efc9141906f38486d50a7b8ef743e92b55c150", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fa15eef3bee9d3888ea71dac2efc9141906f38486d50a7b8ef743e92b55c150", kill_on_drop: false }` [INFO] [stdout] 7fa15eef3bee9d3888ea71dac2efc9141906f38486d50a7b8ef743e92b55c150 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-56/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-56/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" "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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+61469b682c2b0bf9cebc4622f1859e2bb3b7ebca" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0bc31493386d8efcc6666cbff55ed11159ffd32586f2bd84b3d8eca470758181 [INFO] running `Command { std: "docker" "start" "-a" "0bc31493386d8efcc6666cbff55ed11159ffd32586f2bd84b3d8eca470758181", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.31 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling aho-corasick v0.7.10 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling detail_error v0.1.0 (/opt/rustwide/workdir/detail_error) [INFO] [stdout] warning: unused import: `parse_macro_input` [INFO] [stdout] --> detail_error/src/lib.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use syn::{parse_macro_input, parse2, DeriveInput}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Span` [INFO] [stdout] --> detail_error/src/lib.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use proc_macro2::{Ident, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromMeta` [INFO] [stdout] --> detail_error/src/lib.rs:5:45 [INFO] [stdout] | [INFO] [stdout] 5 | use darling::{FromDeriveInput, FromVariant, FromMeta, FromField}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ast`, `util` [INFO] [stdout] --> detail_error/src/lib.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use darling::{ast, util}; [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ident` [INFO] [stdout] --> detail_error/src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | ident: syn::Ident, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `DetailErrorStruct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug, FromDeriveInput)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> detail_error/src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | data: darling::ast::Data, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DetailErrorStruct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug, FromDeriveInput)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ident` [INFO] [stdout] --> detail_error/src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | ident: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DeField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, FromField)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ty` [INFO] [stdout] --> detail_error/src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | ty: Type, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DeField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, FromField)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `skip` [INFO] [stdout] --> detail_error/src/lib.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | skip: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DeField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, FromField)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fields` [INFO] [stdout] --> detail_error/src/lib.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | fields: darling::ast::Fields, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DetailErrorVariant` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, FromVariant)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ident` [INFO] [stdout] --> detail_error/src/lib.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | ident: syn::Ident, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DetailErrorVariant_` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Debug, FromVariant)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fields` [INFO] [stdout] --> detail_error/src/lib.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | fields: darling::ast::Fields, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DetailErrorVariant_` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Debug, FromVariant)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `code` [INFO] [stdout] --> detail_error/src/lib.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | code: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DetailErrorVariant_` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Debug, FromVariant)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `message` [INFO] [stdout] --> detail_error/src/lib.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | message: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DetailErrorVariant_` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Debug, FromVariant)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust-derive-macro-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] [detail_error/src/lib.rs:85] &detail_error = DetailErrorEnum { [INFO] [stderr] ident: Ident { [INFO] [stderr] ident: "BusinessError", [INFO] [stderr] span: #0 bytes(64..77), [INFO] [stderr] }, [INFO] [stderr] data: Enum( [INFO] [stderr] [ [INFO] [stderr] DetailErrorVariant { [INFO] [stderr] ident: Ident { [INFO] [stderr] ident: "InvalidEmail", [INFO] [stderr] span: #0 bytes(84..96), [INFO] [stderr] }, [INFO] [stderr] fields: Fields { [INFO] [stderr] style: Unit, [INFO] [stderr] fields: [], [INFO] [stderr] }, [INFO] [stderr] code: None, [INFO] [stderr] message: None, [INFO] [stderr] }, [INFO] [stderr] DetailErrorVariant { [INFO] [stderr] ident: Ident { [INFO] [stderr] ident: "InvalidPassword", [INFO] [stderr] span: #0 bytes(165..180), [INFO] [stderr] }, [INFO] [stderr] fields: Fields { [INFO] [stderr] style: Unit, [INFO] [stderr] fields: [], [INFO] [stderr] }, [INFO] [stderr] code: Some( [INFO] [stderr] 500, [INFO] [stderr] ), [INFO] [stderr] message: Some( [INFO] [stderr] "this is an invalid password", [INFO] [stderr] ), [INFO] [stderr] }, [INFO] [stderr] ], [INFO] [stderr] ), [INFO] [stderr] } [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.79s [INFO] running `Command { std: "docker" "inspect" "0bc31493386d8efcc6666cbff55ed11159ffd32586f2bd84b3d8eca470758181", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bc31493386d8efcc6666cbff55ed11159ffd32586f2bd84b3d8eca470758181", kill_on_drop: false }` [INFO] [stdout] 0bc31493386d8efcc6666cbff55ed11159ffd32586f2bd84b3d8eca470758181 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-56/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-56/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" "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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+61469b682c2b0bf9cebc4622f1859e2bb3b7ebca" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a13fb09c7f402a2c75b20bfc9aa23bf2f50bb66d0d0970b692835863c03696a2 [INFO] running `Command { std: "docker" "start" "-a" "a13fb09c7f402a2c75b20bfc9aa23bf2f50bb66d0d0970b692835863c03696a2", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `parse_macro_input` [INFO] [stdout] --> detail_error/src/lib.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use syn::{parse_macro_input, parse2, DeriveInput}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Span` [INFO] [stdout] --> detail_error/src/lib.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use proc_macro2::{Ident, Span}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromMeta` [INFO] [stdout] --> detail_error/src/lib.rs:5:45 [INFO] [stdout] | [INFO] [stdout] 5 | use darling::{FromDeriveInput, FromVariant, FromMeta, FromField}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ast`, `util` [INFO] [stdout] --> detail_error/src/lib.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use darling::{ast, util}; [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ident` [INFO] [stdout] --> detail_error/src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | ident: syn::Ident, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `DetailErrorStruct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug, FromDeriveInput)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> detail_error/src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | data: darling::ast::Data, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DetailErrorStruct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug, FromDeriveInput)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust-derive-macro-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `ident` [INFO] [stdout] --> detail_error/src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | ident: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DeField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, FromField)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ty` [INFO] [stdout] --> detail_error/src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | ty: Type, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DeField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, FromField)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `skip` [INFO] [stdout] --> detail_error/src/lib.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | skip: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DeField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Debug, FromField)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fields` [INFO] [stdout] --> detail_error/src/lib.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | fields: darling::ast::Fields, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DetailErrorVariant` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, FromVariant)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ident` [INFO] [stdout] --> detail_error/src/lib.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | ident: syn::Ident, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DetailErrorVariant_` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Debug, FromVariant)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fields` [INFO] [stdout] --> detail_error/src/lib.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | fields: darling::ast::Fields, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DetailErrorVariant_` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Debug, FromVariant)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `code` [INFO] [stdout] --> detail_error/src/lib.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | code: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DetailErrorVariant_` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Debug, FromVariant)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `message` [INFO] [stdout] --> detail_error/src/lib.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | message: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DetailErrorVariant_` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> detail_error/src/lib.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Debug, FromVariant)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [detail_error/src/lib.rs:85] &detail_error = DetailErrorEnum { [INFO] [stderr] ident: Ident { [INFO] [stderr] ident: "BusinessError", [INFO] [stderr] span: #0 bytes(64..77), [INFO] [stderr] }, [INFO] [stderr] data: Enum( [INFO] [stderr] [ [INFO] [stderr] DetailErrorVariant { [INFO] [stderr] ident: Ident { [INFO] [stderr] ident: "InvalidEmail", [INFO] [stderr] span: #0 bytes(84..96), [INFO] [stderr] }, [INFO] [stderr] fields: Fields { [INFO] [stderr] style: Unit, [INFO] [stderr] fields: [], [INFO] [stderr] }, [INFO] [stderr] code: None, [INFO] [stderr] message: None, [INFO] [stderr] }, [INFO] [stderr] DetailErrorVariant { [INFO] [stderr] ident: Ident { [INFO] [stderr] ident: "InvalidPassword", [INFO] [stderr] span: #0 bytes(165..180), [INFO] [stderr] }, [INFO] [stderr] fields: Fields { [INFO] [stderr] style: Unit, [INFO] [stderr] fields: [], [INFO] [stderr] }, [INFO] [stderr] code: Some( [INFO] [stderr] 500, [INFO] [stderr] ), [INFO] [stderr] message: Some( [INFO] [stderr] "this is an invalid password", [INFO] [stderr] ), [INFO] [stderr] }, [INFO] [stderr] ], [INFO] [stderr] ), [INFO] [stderr] } [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.63s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_derive_macro_demo-86bafe2b396f163c) [INFO] running `Command { std: "docker" "inspect" "a13fb09c7f402a2c75b20bfc9aa23bf2f50bb66d0d0970b692835863c03696a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a13fb09c7f402a2c75b20bfc9aa23bf2f50bb66d0d0970b692835863c03696a2", kill_on_drop: false }` [INFO] [stdout] a13fb09c7f402a2c75b20bfc9aa23bf2f50bb66d0d0970b692835863c03696a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-56/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-56/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" "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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+61469b682c2b0bf9cebc4622f1859e2bb3b7ebca" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 85d4530af291ee5649760132cf0005422fd87c3bc44bc228525e14671a0fef69 [INFO] running `Command { std: "docker" "start" "-a" "85d4530af291ee5649760132cf0005422fd87c3bc44bc228525e14671a0fef69", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `parse_macro_input` [INFO] [stderr] --> detail_error/src/lib.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | use syn::{parse_macro_input, parse2, DeriveInput}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Span` [INFO] [stderr] --> detail_error/src/lib.rs:3:26 [INFO] [stderr] | [INFO] [stderr] 3 | use proc_macro2::{Ident, Span}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `FromMeta` [INFO] [stderr] --> detail_error/src/lib.rs:5:45 [INFO] [stderr] | [INFO] [stderr] 5 | use darling::{FromDeriveInput, FromVariant, FromMeta, FromField}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ast`, `util` [INFO] [stderr] --> detail_error/src/lib.rs:7:15 [INFO] [stderr] | [INFO] [stderr] 7 | use darling::{ast, util}; [INFO] [stderr] | ^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `ident` [INFO] [stderr] --> detail_error/src/lib.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | ident: syn::Ident, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `DetailErrorStruct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> detail_error/src/lib.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Debug, FromDeriveInput)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `data` [INFO] [stderr] --> detail_error/src/lib.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | data: darling::ast::Data, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DetailErrorStruct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> detail_error/src/lib.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Debug, FromDeriveInput)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `ident` [INFO] [stderr] --> detail_error/src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | ident: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DeField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> detail_error/src/lib.rs:25:10 [INFO] [stderr] | [INFO] [stderr] 25 | #[derive(Debug, FromField)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `ty` [INFO] [stderr] --> detail_error/src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | ty: Type, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DeField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> detail_error/src/lib.rs:25:10 [INFO] [stderr] | [INFO] [stderr] 25 | #[derive(Debug, FromField)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `skip` [INFO] [stderr] --> detail_error/src/lib.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | skip: bool, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DeField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> detail_error/src/lib.rs:25:10 [INFO] [stderr] | [INFO] [stderr] 25 | #[derive(Debug, FromField)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `fields` [INFO] [stderr] --> detail_error/src/lib.rs:42:5 [INFO] [stderr] | [INFO] [stderr] 42 | fields: darling::ast::Fields, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DetailErrorVariant` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> detail_error/src/lib.rs:38:10 [INFO] [stderr] | [INFO] [stderr] 38 | #[derive(Debug, FromVariant)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `ident` [INFO] [stderr] --> detail_error/src/lib.rs:52:5 [INFO] [stderr] | [INFO] [stderr] 52 | ident: syn::Ident, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DetailErrorVariant_` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> detail_error/src/lib.rs:49:10 [INFO] [stderr] | [INFO] [stderr] 49 | #[derive(Debug, FromVariant)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `fields` [INFO] [stderr] --> detail_error/src/lib.rs:53:5 [INFO] [stderr] | [INFO] [stderr] 53 | fields: darling::ast::Fields, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DetailErrorVariant_` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> detail_error/src/lib.rs:49:10 [INFO] [stderr] | [INFO] [stderr] 49 | #[derive(Debug, FromVariant)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `code` [INFO] [stderr] --> detail_error/src/lib.rs:55:5 [INFO] [stderr] | [INFO] [stderr] 55 | code: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DetailErrorVariant_` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> detail_error/src/lib.rs:49:10 [INFO] [stderr] | [INFO] [stderr] 49 | #[derive(Debug, FromVariant)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `message` [INFO] [stderr] --> detail_error/src/lib.rs:57:5 [INFO] [stderr] | [INFO] [stderr] 57 | message: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DetailErrorVariant_` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> detail_error/src/lib.rs:49:10 [INFO] [stderr] | [INFO] [stderr] 49 | #[derive(Debug, FromVariant)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `detail_error` (lib) generated 14 warnings [INFO] [stderr] [detail_error/src/lib.rs:85] &detail_error = DetailErrorEnum { [INFO] [stderr] ident: Ident { [INFO] [stderr] ident: "BusinessError", [INFO] [stderr] span: #0 bytes(64..77), [INFO] [stderr] }, [INFO] [stderr] data: Enum( [INFO] [stderr] [ [INFO] [stderr] DetailErrorVariant { [INFO] [stderr] ident: Ident { [INFO] [stderr] ident: "InvalidEmail", [INFO] [stderr] span: #0 bytes(84..96), [INFO] [stderr] }, [INFO] [stderr] fields: Fields { [INFO] [stderr] style: Unit, [INFO] [stderr] fields: [], [INFO] [stderr] }, [INFO] [stderr] code: None, [INFO] [stderr] message: None, [INFO] [stderr] }, [INFO] [stderr] DetailErrorVariant { [INFO] [stderr] ident: Ident { [INFO] [stderr] ident: "InvalidPassword", [INFO] [stderr] span: #0 bytes(165..180), [INFO] [stderr] }, [INFO] [stderr] fields: Fields { [INFO] [stderr] style: Unit, [INFO] [stderr] fields: [], [INFO] [stderr] }, [INFO] [stderr] code: Some( [INFO] [stderr] 500, [INFO] [stderr] ), [INFO] [stderr] message: Some( [INFO] [stderr] "this is an invalid password", [INFO] [stderr] ), [INFO] [stderr] }, [INFO] [stderr] ], [INFO] [stderr] ), [INFO] [stderr] } [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.92s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_derive_macro_demo-86bafe2b396f163c) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "85d4530af291ee5649760132cf0005422fd87c3bc44bc228525e14671a0fef69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85d4530af291ee5649760132cf0005422fd87c3bc44bc228525e14671a0fef69", kill_on_drop: false }` [INFO] [stdout] 85d4530af291ee5649760132cf0005422fd87c3bc44bc228525e14671a0fef69