[INFO] fetching crate scope-exit 0.2.0... [INFO] testing scope-exit-0.2.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate scope-exit 0.2.0 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate scope-exit 0.2.0 [INFO] finished tweaking crates.io crate scope-exit 0.2.0 [INFO] tweaked toml for crates.io crate scope-exit 0.2.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate scope-exit 0.2.0 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8c6f862415b8d52e49d57d7a8148fe8b549fdd23dbddb3efbb66d95e20038353 [INFO] running `Command { std: "docker" "start" "-a" "8c6f862415b8d52e49d57d7a8148fe8b549fdd23dbddb3efbb66d95e20038353", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c6f862415b8d52e49d57d7a8148fe8b549fdd23dbddb3efbb66d95e20038353", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c6f862415b8d52e49d57d7a8148fe8b549fdd23dbddb3efbb66d95e20038353", kill_on_drop: false }` [INFO] [stdout] 8c6f862415b8d52e49d57d7a8148fe8b549fdd23dbddb3efbb66d95e20038353 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5a3d5aa5e67895cdfb2ebd9e8e6c3126915727c155f110011819b529e2278fc [INFO] running `Command { std: "docker" "start" "-a" "b5a3d5aa5e67895cdfb2ebd9e8e6c3126915727c155f110011819b529e2278fc", kill_on_drop: false }` [INFO] [stderr] Compiling scope-exit v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `scope_exit` [INFO] [stdout] --> src/lib.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | macro_rules! scope_exit { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `defer` [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | macro_rules! defer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScopeExit` is never constructed [INFO] [stdout] --> src/lib.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct ScopeExit<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl<'a> ScopeExit<'a> { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 8 | pub fn new(call: F) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.32s [INFO] running `Command { std: "docker" "inspect" "b5a3d5aa5e67895cdfb2ebd9e8e6c3126915727c155f110011819b529e2278fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5a3d5aa5e67895cdfb2ebd9e8e6c3126915727c155f110011819b529e2278fc", kill_on_drop: false }` [INFO] [stdout] b5a3d5aa5e67895cdfb2ebd9e8e6c3126915727c155f110011819b529e2278fc [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 618e777bed3fc32bcdbee7f8896b645d66b259f3a5a34f0d0ace010645a9e648 [INFO] running `Command { std: "docker" "start" "-a" "618e777bed3fc32bcdbee7f8896b645d66b259f3a5a34f0d0ace010645a9e648", kill_on_drop: false }` [INFO] [stderr] Compiling scope-exit v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `scope_exit` [INFO] [stdout] --> src/lib.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | macro_rules! scope_exit { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `defer` [INFO] [stdout] --> src/lib.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | macro_rules! defer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScopeExit` is never constructed [INFO] [stdout] --> src/lib.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct ScopeExit<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl<'a> ScopeExit<'a> { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 8 | pub fn new(call: F) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `stmt` metavariable [INFO] [stdout] --> src/lib.rs:29:45 [INFO] [stdout] | [INFO] [stdout] 29 | let _scope_exit = ScopeExit::new(|| $call); [INFO] [stdout] | -- ^^^^^ expected expression [INFO] [stdout] | | [INFO] [stdout] | while parsing the body of this closure [INFO] [stdout] ... [INFO] [stdout] 68 | scope_exit!(j = 2); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `scope_exit` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might have meant to open the body of the closure [INFO] [stdout] | [INFO] [stdout] 29 | let _scope_exit = ScopeExit::new(|| { $call}); [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `stmt` metavariable [INFO] [stdout] --> src/lib.rs:38:45 [INFO] [stdout] | [INFO] [stdout] 38 | let _scope_exit = ScopeExit::new(|| $call); [INFO] [stdout] | -- ^^^^^ expected expression [INFO] [stdout] | | [INFO] [stdout] | while parsing the body of this closure [INFO] [stdout] ... [INFO] [stdout] 85 | defer!(j = 2); [INFO] [stdout] | ------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `defer` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might have meant to open the body of the closure [INFO] [stdout] | [INFO] [stdout] 38 | let _scope_exit = ScopeExit::new(|| { $call}); [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `scope-exit` (lib test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "618e777bed3fc32bcdbee7f8896b645d66b259f3a5a34f0d0ace010645a9e648", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "618e777bed3fc32bcdbee7f8896b645d66b259f3a5a34f0d0ace010645a9e648", kill_on_drop: false }` [INFO] [stdout] 618e777bed3fc32bcdbee7f8896b645d66b259f3a5a34f0d0ace010645a9e648