[INFO] fetching crate optargs 0.1.2... [INFO] testing optargs-0.1.2 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate optargs 0.1.2 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate optargs 0.1.2 [INFO] finished tweaking crates.io crate optargs 0.1.2 [INFO] tweaked toml for crates.io crate optargs 0.1.2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate optargs 0.1.2 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate optargs 0.1.2 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7fb2992ae5b8478e016da18470696cdaa2988048f08b80b3700f3831bed9e229 [INFO] running `Command { std: "docker" "start" "-a" "7fb2992ae5b8478e016da18470696cdaa2988048f08b80b3700f3831bed9e229", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7fb2992ae5b8478e016da18470696cdaa2988048f08b80b3700f3831bed9e229", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fb2992ae5b8478e016da18470696cdaa2988048f08b80b3700f3831bed9e229", kill_on_drop: false }` [INFO] [stdout] 7fb2992ae5b8478e016da18470696cdaa2988048f08b80b3700f3831bed9e229 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 080ee808969b0ef40c85f4cfe821c3b97b34583f1feddbb17af99d847aa34753 [INFO] running `Command { std: "docker" "start" "-a" "080ee808969b0ef40c85f4cfe821c3b97b34583f1feddbb17af99d847aa34753", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.67 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling optargs-macro v0.1.2 [INFO] [stderr] Compiling optargs v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized] target(s) in 5.44s [INFO] running `Command { std: "docker" "inspect" "080ee808969b0ef40c85f4cfe821c3b97b34583f1feddbb17af99d847aa34753", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "080ee808969b0ef40c85f4cfe821c3b97b34583f1feddbb17af99d847aa34753", kill_on_drop: false }` [INFO] [stdout] 080ee808969b0ef40c85f4cfe821c3b97b34583f1feddbb17af99d847aa34753 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a8f5643c9ed4b420d98d1883ec85e339d9a410615744fbe45705e346c08fcf41 [INFO] running `Command { std: "docker" "start" "-a" "a8f5643c9ed4b420d98d1883ec85e339d9a410615744fbe45705e346c08fcf41", kill_on_drop: false }` [INFO] [stderr] Compiling optargs v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable `ex` is assigned to, but never used [INFO] [stdout] --> examples/optstruct_demo.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let ex = Example! { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ex` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trailing semicolon in macro used in expression position [INFO] [stdout] --> examples/optstruct_reference.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | $src.0 = Some($value); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 42 | let p = Example! { a: 10 }; [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `Example` [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: `#[deny(semicolon_in_expressions_from_macros)]` (part of `#[deny(future_incompatible)]`) on by default [INFO] [stdout] = note: this error originates in the macro `Example` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ex` is never read [INFO] [stdout] --> examples/optstruct_demo.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Example { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | let ex = Example! { [INFO] [stdout] | ______________- [INFO] [stdout] 9 | | a: 10, [INFO] [stdout] 10 | | b: "asd".into() [INFO] [stdout] 11 | | }; [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `Example` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a` and `b` are never read [INFO] [stdout] --> examples/optstruct_demo.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Example { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 3 | a: i32, [INFO] [stdout] | ^ [INFO] [stdout] 4 | b: Option, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/optstruct_reference.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | fn build(mut self) -> bool { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> examples/optstruct_reference.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let p = Example! { a: 10 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a` and `b` are never read [INFO] [stdout] --> examples/optstruct_reference.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct Example { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 4 | a: i32, [INFO] [stdout] | ^ [INFO] [stdout] 5 | b: Option<&'static str>, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `build` is never used [INFO] [stdout] --> examples/optstruct_reference.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Example { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 8 | fn build(mut self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `optargs` (example "optstruct_reference") due to 2 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> examples/optfn_multiple_dyns.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | fn blah2(a: Option<&dyn Iterator>) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> examples/optfn_reference.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | fn example(a: i32, b: Option<&str>) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> examples/optfn_reference.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | fn example(a: i32, b: Option<&str>) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `b` is never used [INFO] [stdout] --> examples/optfn_reference.rs:22:51 [INFO] [stdout] | [INFO] [stdout] 22 | impl Validator { fn b(self) -> Validator { self }} [INFO] [stdout] | -------------------------------- ^ [INFO] [stdout] | | [INFO] [stdout] | method in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | example_src!(a: 10); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `example_src` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a8f5643c9ed4b420d98d1883ec85e339d9a410615744fbe45705e346c08fcf41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8f5643c9ed4b420d98d1883ec85e339d9a410615744fbe45705e346c08fcf41", kill_on_drop: false }` [INFO] [stdout] a8f5643c9ed4b420d98d1883ec85e339d9a410615744fbe45705e346c08fcf41