[INFO] cloning repository https://github.com/ZhangHanDong/proc_codegen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZhangHanDong/proc_codegen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhangHanDong%2Fproc_codegen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhangHanDong%2Fproc_codegen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1d69502f52daa56298466089122cb4c441de18f9 [INFO] checking ZhangHanDong/proc_codegen/1d69502f52daa56298466089122cb4c441de18f9 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhangHanDong%2Fproc_codegen" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ZhangHanDong/proc_codegen on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ZhangHanDong/proc_codegen [INFO] finished tweaking git repo https://github.com/ZhangHanDong/proc_codegen [INFO] tweaked toml for git repo https://github.com/ZhangHanDong/proc_codegen written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ZhangHanDong/proc_codegen 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b5f4a660cfe704ea2f64107ab61fa898078c5bd9ae77d8a5266c8c618e256301 [INFO] running `Command { std: "docker" "start" "-a" "b5f4a660cfe704ea2f64107ab61fa898078c5bd9ae77d8a5266c8c618e256301", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b5f4a660cfe704ea2f64107ab61fa898078c5bd9ae77d8a5266c8c618e256301", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5f4a660cfe704ea2f64107ab61fa898078c5bd9ae77d8a5266c8c618e256301", kill_on_drop: false }` [INFO] [stdout] b5f4a660cfe704ea2f64107ab61fa898078c5bd9ae77d8a5266c8c618e256301 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fcf4d28749fd7ed68af84a5389a40edaca7b60e4b230582755523eb605a203f2 [INFO] running `Command { std: "docker" "start" "-a" "fcf4d28749fd7ed68af84a5389a40edaca7b60e4b230582755523eb605a203f2", 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.30 [INFO] [stderr] Compiling serde v1.0.111 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Checking heck v0.3.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling serde_derive v1.0.111 [INFO] [stderr] Checking toml v0.5.6 [INFO] [stderr] Compiling codegen v0.1.0 (/opt/rustwide/workdir/codegen) [INFO] [stdout] warning: unused imports: `Expr`, `Type`, and `parenthesized` [INFO] [stdout] --> codegen/src/lib.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | syn::{parenthesized, braced, Field, Expr, Type, parse_macro_input, token, Ident, Token}, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `toml` [INFO] [stdout] --> codegen/src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use toml; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> codegen/src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> codegen/src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> codegen/src/lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> codegen/src/genstruct.rs:101:45 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) fn struct_by_conf_to_tokenstream(input: TokenStream) -> TokenStream { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> codegen/src/genstruct.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut fields_quote = { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> codegen/src/genstruct.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let mut args_quote = { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> codegen/src/genstruct.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut args_name_quote = { [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tagged` is never read [INFO] [stdout] --> codegen/src/conf.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) struct StructEntry { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 17 | pub(crate) name: String, [INFO] [stdout] 18 | pub(crate) tagged: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `brace_token` is never read [INFO] [stdout] --> codegen/src/genstruct.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct Genstruct { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 8 | pub name: Ident, [INFO] [stdout] 9 | pub brace_token: token::Brace, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConfPath` is never constructed [INFO] [stdout] --> codegen/src/genstruct.rs:83:19 [INFO] [stdout] | [INFO] [stdout] 83 | pub(crate) struct ConfPath { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking proc_codegen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `derive` is never read [INFO] [stdout] --> src/conf.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) struct Basic { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 11 | pub(crate) derive: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Basic` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `tagged`, and `fields` are never read [INFO] [stdout] --> src/conf.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) struct StructEntry { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 17 | pub(crate) name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | pub(crate) tagged: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | pub(crate) fields: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `basic` and `structs` are never read [INFO] [stdout] --> src/conf.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) struct Conf{ [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 25 | pub(crate) basic: Basic, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | pub(crate) structs: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Conf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `derive` is never read [INFO] [stdout] --> src/conf.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) struct Basic { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 11 | pub(crate) derive: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Basic` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `tagged`, and `fields` are never read [INFO] [stdout] --> src/conf.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) struct StructEntry { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 17 | pub(crate) name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | pub(crate) tagged: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | pub(crate) fields: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `basic` and `structs` are never read [INFO] [stdout] --> src/conf.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) struct Conf{ [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 25 | pub(crate) basic: Basic, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | pub(crate) structs: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Conf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.97s [INFO] running `Command { std: "docker" "inspect" "fcf4d28749fd7ed68af84a5389a40edaca7b60e4b230582755523eb605a203f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fcf4d28749fd7ed68af84a5389a40edaca7b60e4b230582755523eb605a203f2", kill_on_drop: false }` [INFO] [stdout] fcf4d28749fd7ed68af84a5389a40edaca7b60e4b230582755523eb605a203f2