[INFO] fetching crate assert_snapshot 0.1.3... [INFO] checking assert_snapshot-0.1.3 against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] extracting crate assert_snapshot 0.1.3 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate assert_snapshot 0.1.3 on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate assert_snapshot 0.1.3 [INFO] finished tweaking crates.io crate assert_snapshot 0.1.3 [INFO] tweaked toml for crates.io crate assert_snapshot 0.1.3 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a31ee5c47c96f8aaf1a4765a5a6280f46c35b4afdddd25f3b9468ddee968d1b4 [INFO] running `Command { std: "docker" "start" "-a" "a31ee5c47c96f8aaf1a4765a5a6280f46c35b4afdddd25f3b9468ddee968d1b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a31ee5c47c96f8aaf1a4765a5a6280f46c35b4afdddd25f3b9468ddee968d1b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a31ee5c47c96f8aaf1a4765a5a6280f46c35b4afdddd25f3b9468ddee968d1b4", kill_on_drop: false }` [INFO] [stdout] a31ee5c47c96f8aaf1a4765a5a6280f46c35b4afdddd25f3b9468ddee968d1b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3cce595cb7f1f19945cf79d193d6c0170e1d8db29233d2155598b896b4d969d7 [INFO] running `Command { std: "docker" "start" "-a" "3cce595cb7f1f19945cf79d193d6c0170e1d8db29233d2155598b896b4d969d7", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking itertools v0.7.11 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Checking sorted-json v0.1.0 [INFO] [stderr] Checking object v0.25.3 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling synstructure v0.12.5 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking backtrace v0.3.60 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking assert_snapshot v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0597]: `re` does not live long enough [INFO] [stdout] --> src/function.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | re.captures_iter(&content).next().unwrap()[1].to_string() [INFO] [stdout] | ^^------------------------ [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] 19 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `re` dropped here while still borrowed [INFO] [stdout] | ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `regex::CaptureMatches<'_, '_>` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 18 | let x = re.captures_iter(&content).next().unwrap()[1].to_string(); x [INFO] [stdout] | ^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stdout] error[E0597]: `re` does not live long enough [INFO] [stdout] --> src/function.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | re.captures_iter(&content).next().unwrap()[1].to_string() [INFO] [stdout] | ^^------------------------ [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] 19 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `re` dropped here while still borrowed [INFO] [stdout] | ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `regex::CaptureMatches<'_, '_>` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 18 | let x = re.captures_iter(&content).next().unwrap()[1].to_string(); x [INFO] [stdout] | ^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `assert_snapshot` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "3cce595cb7f1f19945cf79d193d6c0170e1d8db29233d2155598b896b4d969d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cce595cb7f1f19945cf79d193d6c0170e1d8db29233d2155598b896b4d969d7", kill_on_drop: false }` [INFO] [stdout] 3cce595cb7f1f19945cf79d193d6c0170e1d8db29233d2155598b896b4d969d7