[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] building gab50000/rust_macros against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgab50000%2Frust_macros" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gab50000/rust_macros on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-3-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 614ff1adf2ab68758679d6d2123a1d28be9c62ac23c8195ed58684ddbae287f6 [INFO] running `Command { std: "docker" "start" "-a" "614ff1adf2ab68758679d6d2123a1d28be9c62ac23c8195ed58684ddbae287f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "614ff1adf2ab68758679d6d2123a1d28be9c62ac23c8195ed58684ddbae287f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "614ff1adf2ab68758679d6d2123a1d28be9c62ac23c8195ed58684ddbae287f6", kill_on_drop: false }` [INFO] [stdout] 614ff1adf2ab68758679d6d2123a1d28be9c62ac23c8195ed58684ddbae287f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e23582804e637232bb622ada07c045a16003755bd5025a0562a55d3e4464afaf [INFO] running `Command { std: "docker" "start" "-a" "e23582804e637232bb622ada07c045a16003755bd5025a0562a55d3e4464afaf", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling 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] 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 4.18s [INFO] running `Command { std: "docker" "inspect" "e23582804e637232bb622ada07c045a16003755bd5025a0562a55d3e4464afaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e23582804e637232bb622ada07c045a16003755bd5025a0562a55d3e4464afaf", kill_on_drop: false }` [INFO] [stdout] e23582804e637232bb622ada07c045a16003755bd5025a0562a55d3e4464afaf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4727c57b834db35c2d2c37a89b0847b7e78f3bec33e66a038a20c2c89b4b1ec [INFO] running `Command { std: "docker" "start" "-a" "a4727c57b834db35c2d2c37a89b0847b7e78f3bec33e66a038a20c2c89b4b1ec", kill_on_drop: false }` [INFO] [stderr] Compiling 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] 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 `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "a4727c57b834db35c2d2c37a89b0847b7e78f3bec33e66a038a20c2c89b4b1ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4727c57b834db35c2d2c37a89b0847b7e78f3bec33e66a038a20c2c89b4b1ec", kill_on_drop: false }` [INFO] [stdout] a4727c57b834db35c2d2c37a89b0847b7e78f3bec33e66a038a20c2c89b4b1ec