[INFO] cloning repository https://github.com/gab50000/rust_macros [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gab50000/rust_macros" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgab50000%2Frust_macros", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgab50000%2Frust_macros'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 99e6a7a5cb73986a392d538e76ef4f71da22df96 [INFO] checking gab50000/rust_macros against master#cfe9ffcd7c2d63fd3e0fc33a8d23ac4f0d50efe9 for pr-136968 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgab50000%2Frust_macros" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gab50000/rust_macros on toolchain cfe9ffcd7c2d63fd3e0fc33a8d23ac4f0d50efe9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cfe9ffcd7c2d63fd3e0fc33a8d23ac4f0d50efe9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gab50000/rust_macros [INFO] finished tweaking git repo https://github.com/gab50000/rust_macros [INFO] tweaked toml for git repo https://github.com/gab50000/rust_macros written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/gab50000/rust_macros 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" "+cfe9ffcd7c2d63fd3e0fc33a8d23ac4f0d50efe9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+cfe9ffcd7c2d63fd3e0fc33a8d23ac4f0d50efe9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3ac090e266a72d87c71339d5a6ec0e118feab2b2d6f3e130c18511fb4a7e7e55 [INFO] running `Command { std: "docker" "start" "-a" "3ac090e266a72d87c71339d5a6ec0e118feab2b2d6f3e130c18511fb4a7e7e55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3ac090e266a72d87c71339d5a6ec0e118feab2b2d6f3e130c18511fb4a7e7e55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ac090e266a72d87c71339d5a6ec0e118feab2b2d6f3e130c18511fb4a7e7e55", kill_on_drop: false }` [INFO] [stdout] 3ac090e266a72d87c71339d5a6ec0e118feab2b2d6f3e130c18511fb4a7e7e55 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+cfe9ffcd7c2d63fd3e0fc33a8d23ac4f0d50efe9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3dfa8e61c37cc0726300d01399a4c1bb36403039716fd042a868ba6c99949a42 [INFO] running `Command { std: "docker" "start" "-a" "3dfa8e61c37cc0726300d01399a4c1bb36403039716fd042a868ba6c99949a42", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking nom v7.1.1 [INFO] [stderr] Checking macros v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] note: trace_macro [INFO] [stdout] --> src/main.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | make_struct!(BirthYear, u32, "byr"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expanding `make_struct! { BirthYear, u32, "byr" }` [INFO] [stdout] = note: to `#[derive(Debug)] struct BirthYear (u32); impl BirthYear [INFO] [stdout] { [INFO] [stdout] fn parse(input : & str) -> IResult < & str, Self > [INFO] [stdout] { [INFO] [stdout] let prefix = tuple((tag("byr"), char(':'))); let parse_numbers = [INFO] [stdout] map_res(digit1, < u32 > :: from_str); let parser = [INFO] [stdout] preceded(prefix, parse_numbers); let mut p = map(parser, Self); [INFO] [stdout] p(input) [INFO] [stdout] } [INFO] [stdout] }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] note: trace_macro [INFO] [stdout] --> src/main.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | make_struct!(EyeColor, &str, "ecl"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expanding `make_struct! { EyeColor, &str, "ecl" }` [INFO] [stdout] = note: to `#[derive(Debug)] struct EyeColor < 'a > (& 'a str); impl < 'a > EyeColor < 'a [INFO] [stdout] > [INFO] [stdout] { [INFO] [stdout] fn parse(input : & 'a str) -> IResult < & 'a str, Self > [INFO] [stdout] { [INFO] [stdout] let prefix = tuple((tag("ecl"), char(':'))); let parser = [INFO] [stdout] preceded(prefix, alpha1); let mut p = map(parser, Self); p(input) [INFO] [stdout] } [INFO] [stdout] }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io` [INFO] [stdout] --> src/main.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{io, str::FromStr}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] note: trace_macro [INFO] [stdout] --> src/main.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | make_struct!(BirthYear, u32, "byr"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expanding `make_struct! { BirthYear, u32, "byr" }` [INFO] [stdout] = note: to `#[derive(Debug)] struct BirthYear (u32); impl BirthYear [INFO] [stdout] { [INFO] [stdout] fn parse(input : & str) -> IResult < & str, Self > [INFO] [stdout] { [INFO] [stdout] let prefix = tuple((tag("byr"), char(':'))); let parse_numbers = [INFO] [stdout] map_res(digit1, < u32 > :: from_str); let parser = [INFO] [stdout] preceded(prefix, parse_numbers); let mut p = map(parser, Self); [INFO] [stdout] p(input) [INFO] [stdout] } [INFO] [stdout] }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] note: trace_macro [INFO] [stdout] --> src/main.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | make_struct!(EyeColor, &str, "ecl"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expanding `make_struct! { EyeColor, &str, "ecl" }` [INFO] [stdout] = note: to `#[derive(Debug)] struct EyeColor < 'a > (& 'a str); impl < 'a > EyeColor < 'a [INFO] [stdout] > [INFO] [stdout] { [INFO] [stdout] fn parse(input : & 'a str) -> IResult < & 'a str, Self > [INFO] [stdout] { [INFO] [stdout] let prefix = tuple((tag("ecl"), char(':'))); let parser = [INFO] [stdout] preceded(prefix, alpha1); let mut p = map(parser, Self); p(input) [INFO] [stdout] } [INFO] [stdout] }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io` [INFO] [stdout] --> src/main.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{io, str::FromStr}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | let mut prod = 1; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 73 | println!("{}", mul![]); [INFO] [stdout] | ------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] = note: this warning originates in the macro `mul` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Parse` is never used [INFO] [stdout] --> src/main.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | trait Parse { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | struct $id($type); [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | make_struct!(BirthYear, u32, "byr"); [INFO] [stdout] | ----------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | field in this struct [INFO] [stdout] | in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `BirthYear` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `make_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:40:24 [INFO] [stdout] | [INFO] [stdout] 40 | struct $id<'a>(&'a str); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | make_struct!(EyeColor, &str, "ecl"); [INFO] [stdout] | ----------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | field in this struct [INFO] [stdout] | in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `EyeColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `make_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | let mut prod = 1; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 73 | println!("{}", mul![]); [INFO] [stdout] | ------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] = note: this warning originates in the macro `mul` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Parse` is never used [INFO] [stdout] --> src/main.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | trait Parse { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | struct $id($type); [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | make_struct!(BirthYear, u32, "byr"); [INFO] [stdout] | ----------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | field in this struct [INFO] [stdout] | in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `BirthYear` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `make_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:40:24 [INFO] [stdout] | [INFO] [stdout] 40 | struct $id<'a>(&'a str); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | make_struct!(EyeColor, &str, "ecl"); [INFO] [stdout] | ----------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | field in this struct [INFO] [stdout] | in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `EyeColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `make_struct` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.66s [INFO] running `Command { std: "docker" "inspect" "3dfa8e61c37cc0726300d01399a4c1bb36403039716fd042a868ba6c99949a42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3dfa8e61c37cc0726300d01399a4c1bb36403039716fd042a868ba6c99949a42", kill_on_drop: false }` [INFO] [stdout] 3dfa8e61c37cc0726300d01399a4c1bb36403039716fd042a868ba6c99949a42