[INFO] fetching crate assert_snapshot 0.1.3...
[INFO] testing assert_snapshot-0.1.3 against 1.69.0 for beta-1.70-1
[INFO] extracting crate assert_snapshot 0.1.3 into /workspace/builds/worker-0-tc1/source
[INFO] validating manifest of crates.io crate assert_snapshot 0.1.3 on toolchain 1.69.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.69.0" "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-0-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" "/workspace/cargo-home/bin/cargo" "+1.69.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.69.0" "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-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+1.69.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 508f7957f02419b23d2a7e454393c34e9f5278bce39637bd8bf69058477fce50
[INFO] running `Command { std: "docker" "start" "-a" "508f7957f02419b23d2a7e454393c34e9f5278bce39637bd8bf69058477fce50", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "508f7957f02419b23d2a7e454393c34e9f5278bce39637bd8bf69058477fce50", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "508f7957f02419b23d2a7e454393c34e9f5278bce39637bd8bf69058477fce50", kill_on_drop: false }`
[INFO] [stdout] 508f7957f02419b23d2a7e454393c34e9f5278bce39637bd8bf69058477fce50
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+1.69.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 93b7f239a9b8d9c661ce2a7a601071684e669d7abe12deb01b7e52c0813c5d28
[INFO] running `Command { std: "docker" "start" "-a" "93b7f239a9b8d9c661ce2a7a601071684e669d7abe12deb01b7e52c0813c5d28", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling serde v1.0.160
[INFO] [stderr]    Compiling backtrace v0.3.67
[INFO] [stderr]    Compiling synstructure v0.12.6
[INFO] [stderr]    Compiling failure_derive v0.1.8
[INFO] [stderr]    Compiling serde_json v1.0.96
[INFO] [stderr]    Compiling failure v0.1.8
[INFO] [stderr]    Compiling sorted-json v0.1.0
[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] 13 |     let re = Regex::new(
[INFO] [stdout]    |         -- binding `re` declared here
[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` due to 2 previous errors
[INFO] running `Command { std: "docker" "inspect" "93b7f239a9b8d9c661ce2a7a601071684e669d7abe12deb01b7e52c0813c5d28", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "93b7f239a9b8d9c661ce2a7a601071684e669d7abe12deb01b7e52c0813c5d28", kill_on_drop: false }`
[INFO] [stdout] 93b7f239a9b8d9c661ce2a7a601071684e669d7abe12deb01b7e52c0813c5d28
