[INFO] fetching crate scope-exit 0.2.0... [INFO] testing scope-exit-0.2.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate scope-exit 0.2.0 into /workspace/builds/worker-3-tc1/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-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate scope-exit 0.2.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a130734ca98423bd68b77ace91c70b26d65a2474033877f5e2312766e80ca859 [INFO] running `Command { std: "docker" "start" "-a" "a130734ca98423bd68b77ace91c70b26d65a2474033877f5e2312766e80ca859", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a130734ca98423bd68b77ace91c70b26d65a2474033877f5e2312766e80ca859", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a130734ca98423bd68b77ace91c70b26d65a2474033877f5e2312766e80ca859", kill_on_drop: false }` [INFO] [stdout] a130734ca98423bd68b77ace91c70b26d65a2474033877f5e2312766e80ca859 [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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 541231559dd3d619925c9dbe98243759a0a6e115c0e9c81c860c4c5f9f18cfd1 [INFO] running `Command { std: "docker" "start" "-a" "541231559dd3d619925c9dbe98243759a0a6e115c0e9c81c860c4c5f9f18cfd1", 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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.14s [INFO] running `Command { std: "docker" "inspect" "541231559dd3d619925c9dbe98243759a0a6e115c0e9c81c860c4c5f9f18cfd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "541231559dd3d619925c9dbe98243759a0a6e115c0e9c81c860c4c5f9f18cfd1", kill_on_drop: false }` [INFO] [stdout] 541231559dd3d619925c9dbe98243759a0a6e115c0e9c81c860c4c5f9f18cfd1 [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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 70ac85aa4521f9acbbd82b0b37aacbf2e578055042173c0c1488fa3d3538e9fe [INFO] running `Command { std: "docker" "start" "-a" "70ac85aa4521f9acbbd82b0b37aacbf2e578055042173c0c1488fa3d3538e9fe", 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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" "70ac85aa4521f9acbbd82b0b37aacbf2e578055042173c0c1488fa3d3538e9fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70ac85aa4521f9acbbd82b0b37aacbf2e578055042173c0c1488fa3d3538e9fe", kill_on_drop: false }` [INFO] [stdout] 70ac85aa4521f9acbbd82b0b37aacbf2e578055042173c0c1488fa3d3538e9fe