[INFO] fetching crate scope-exit 0.2.0... [INFO] testing scope-exit-0.2.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate scope-exit 0.2.0 into /workspace/builds/worker-3-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-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate scope-exit 0.2.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6bc310bdd7723708f685dd1d2bfa8b1be62428fc584771d81f1854ce0efe3aa7 [INFO] running `Command { std: "docker" "start" "-a" "6bc310bdd7723708f685dd1d2bfa8b1be62428fc584771d81f1854ce0efe3aa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6bc310bdd7723708f685dd1d2bfa8b1be62428fc584771d81f1854ce0efe3aa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bc310bdd7723708f685dd1d2bfa8b1be62428fc584771d81f1854ce0efe3aa7", kill_on_drop: false }` [INFO] [stdout] 6bc310bdd7723708f685dd1d2bfa8b1be62428fc584771d81f1854ce0efe3aa7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9566783b7c9e01df7bc1210983b0b083254396f3dc550e5fc7c5320fa9b61ea [INFO] running `Command { std: "docker" "start" "-a" "c9566783b7c9e01df7bc1210983b0b083254396f3dc550e5fc7c5320fa9b61ea", 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.38s [INFO] running `Command { std: "docker" "inspect" "c9566783b7c9e01df7bc1210983b0b083254396f3dc550e5fc7c5320fa9b61ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9566783b7c9e01df7bc1210983b0b083254396f3dc550e5fc7c5320fa9b61ea", kill_on_drop: false }` [INFO] [stdout] c9566783b7c9e01df7bc1210983b0b083254396f3dc550e5fc7c5320fa9b61ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 715bc29a40a30fe89cb7508104830c6b8f00b17f1a15ed2246c83d72fd1e0a90 [INFO] running `Command { std: "docker" "start" "-a" "715bc29a40a30fe89cb7508104830c6b8f00b17f1a15ed2246c83d72fd1e0a90", kill_on_drop: false }` [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] Compiling 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] [stderr] error: could not compile `scope-exit` (lib test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "715bc29a40a30fe89cb7508104830c6b8f00b17f1a15ed2246c83d72fd1e0a90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "715bc29a40a30fe89cb7508104830c6b8f00b17f1a15ed2246c83d72fd1e0a90", kill_on_drop: false }` [INFO] [stdout] 715bc29a40a30fe89cb7508104830c6b8f00b17f1a15ed2246c83d72fd1e0a90