[INFO] fetching crate assert_snapshot 0.1.3... [INFO] testing assert_snapshot-0.1.3 against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] extracting crate assert_snapshot 0.1.3 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate assert_snapshot 0.1.3 on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "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-3/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sorted-json v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 147868803c50f43794295d30633f6e44dd1825b9dbbd6eb88fc1873543ea3a31 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "147868803c50f43794295d30633f6e44dd1825b9dbbd6eb88fc1873543ea3a31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "147868803c50f43794295d30633f6e44dd1825b9dbbd6eb88fc1873543ea3a31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "147868803c50f43794295d30633f6e44dd1825b9dbbd6eb88fc1873543ea3a31", kill_on_drop: false }` [INFO] [stdout] 147868803c50f43794295d30633f6e44dd1825b9dbbd6eb88fc1873543ea3a31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bac34100f5524a9c0a37c28acb21a94de45ed78810872116683908a9cb6ff550 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "bac34100f5524a9c0a37c28acb21a94de45ed78810872116683908a9cb6ff550", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling gimli v0.24.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling rustc-demangle v0.1.19 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling backtrace v0.3.60 [INFO] [stderr] Compiling itertools v0.7.11 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling object v0.25.2 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling sorted-json v0.1.0 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling addr2line v0.15.2 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling 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] [stderr] error: could not compile `assert_snapshot` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "bac34100f5524a9c0a37c28acb21a94de45ed78810872116683908a9cb6ff550", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bac34100f5524a9c0a37c28acb21a94de45ed78810872116683908a9cb6ff550", kill_on_drop: false }` [INFO] [stdout] bac34100f5524a9c0a37c28acb21a94de45ed78810872116683908a9cb6ff550