[INFO] fetching crate scope-exit 0.2.0... [INFO] checking scope-exit-0.2.0 against master#8a703520e80d87d4423c01f9d4fbc9e5f6533a02 for pr-154205-1 [INFO] extracting crate scope-exit 0.2.0 into /workspace/builds/worker-5-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-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate scope-exit 0.2.0 on toolchain 8a703520e80d87d4423c01f9d4fbc9e5f6533a02 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8a703520e80d87d4423c01f9d4fbc9e5f6533a02" "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" "+8a703520e80d87d4423c01f9d4fbc9e5f6533a02" "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" "+8a703520e80d87d4423c01f9d4fbc9e5f6533a02" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+8a703520e80d87d4423c01f9d4fbc9e5f6533a02" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b99d082e625816f1cacd3bf164f5f72a68edabf3221f0e2b9b6f41b0701234a [INFO] running `Command { std: "docker" "start" "-a" "1b99d082e625816f1cacd3bf164f5f72a68edabf3221f0e2b9b6f41b0701234a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b99d082e625816f1cacd3bf164f5f72a68edabf3221f0e2b9b6f41b0701234a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b99d082e625816f1cacd3bf164f5f72a68edabf3221f0e2b9b6f41b0701234a", kill_on_drop: false }` [INFO] [stdout] 1b99d082e625816f1cacd3bf164f5f72a68edabf3221f0e2b9b6f41b0701234a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+8a703520e80d87d4423c01f9d4fbc9e5f6533a02" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e79b25e9a0a71ab744a1f2add1c045613c6a5457cc92121220109ef9b0832d3a [INFO] running `Command { std: "docker" "start" "-a" "e79b25e9a0a71ab744a1f2add1c045613c6a5457cc92121220109ef9b0832d3a", kill_on_drop: false }` [INFO] [stderr] Checking scope-exit v0.2.0 (/opt/rustwide/workdir) [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] [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] [stderr] error: could not compile `scope-exit` (lib test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] running `Command { std: "docker" "inspect" "e79b25e9a0a71ab744a1f2add1c045613c6a5457cc92121220109ef9b0832d3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e79b25e9a0a71ab744a1f2add1c045613c6a5457cc92121220109ef9b0832d3a", kill_on_drop: false }` [INFO] [stdout] e79b25e9a0a71ab744a1f2add1c045613c6a5457cc92121220109ef9b0832d3a