[INFO] fetching crate assert_snapshot 0.1.3...
[INFO] checking assert_snapshot-0.1.3 against master#b0696a5160711c068cb1f01b7437db7990d15750 for pr-121848
[INFO] extracting crate assert_snapshot 0.1.3 into /workspace/builds/worker-4-tc1/source
[INFO] validating manifest of crates.io crate assert_snapshot 0.1.3 on toolchain b0696a5160711c068cb1f01b7437db7990d15750
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "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-4-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded sorted-json v0.1.0
[INFO] [stderr]   Downloaded itertools v0.7.11
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a6d5bf0dd98ba42946b74ab3d41677bbd65efc3ef216e4fd997f1987822ecffb
[INFO] running `Command { std: "docker" "start" "-a" "a6d5bf0dd98ba42946b74ab3d41677bbd65efc3ef216e4fd997f1987822ecffb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a6d5bf0dd98ba42946b74ab3d41677bbd65efc3ef216e4fd997f1987822ecffb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a6d5bf0dd98ba42946b74ab3d41677bbd65efc3ef216e4fd997f1987822ecffb", kill_on_drop: false }`
[INFO] [stdout] a6d5bf0dd98ba42946b74ab3d41677bbd65efc3ef216e4fd997f1987822ecffb
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f208b2f145d6c90065edcddbb3b238ad4a0d7af8ea47eda27547576ac59313db
[INFO] running `Command { std: "docker" "start" "-a" "f208b2f145d6c90065edcddbb3b238ad4a0d7af8ea47eda27547576ac59313db", kill_on_drop: false }`
[INFO] [stderr]     Checking gimli v0.28.1
[INFO] [stderr]    Compiling failure_derive v0.1.8
[INFO] [stderr]     Checking rustc-demangle v0.1.23
[INFO] [stderr]    Compiling backtrace v0.3.69
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]     Checking miniz_oxide v0.7.2
[INFO] [stderr]     Checking object v0.32.2
[INFO] [stderr]     Checking itertools v0.7.11
[INFO] [stderr]     Checking sorted-json v0.1.0
[INFO] [stderr]     Checking addr2line v0.21.0
[INFO] [stderr]     Checking failure v0.1.8
[INFO] [stderr]     Checking assert_snapshot v0.1.3 (/opt/rustwide/workdir)
[INFO] [stdout] warning: the item `serde` is imported redundantly
[INFO] [stdout]  --> src/assert_snapshot.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde;
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]  ::: src/lib.rs:4:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | extern crate serde;
[INFO] [stdout]   | ------------------- the item `serde` is already imported here
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `serde_json` is imported redundantly
[INFO] [stdout]  --> src/assert_snapshot.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use serde_json;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]  ::: src/lib.rs:5:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | extern crate serde_json;
[INFO] [stdout]   | ------------------------ the item `serde_json` is already imported here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `String` is imported redundantly
[INFO] [stdout]   --> src/assert_snapshot.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 |     string::String,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]   --> /rustc/b0696a5160711c068cb1f01b7437db7990d15750/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]    |
[INFO] [stdout]    = note: the item `String` is already defined here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `serde` is imported redundantly
[INFO] [stdout]  --> src/assert_snapshot.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde;
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]  ::: src/lib.rs:4:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | extern crate serde;
[INFO] [stdout]   | ------------------- the item `serde` is already imported here
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `serde_json` is imported redundantly
[INFO] [stdout]  --> src/assert_snapshot.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use serde_json;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]  ::: src/lib.rs:5:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | extern crate serde_json;
[INFO] [stdout]   | ------------------------ the item `serde_json` is already imported here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `String` is imported redundantly
[INFO] [stdout]   --> src/assert_snapshot.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 |     string::String,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]   --> /rustc/b0696a5160711c068cb1f01b7437db7990d15750/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]    |
[INFO] [stdout]    = note: the item `String` is already defined here
[INFO] [stdout] 
[INFO] [stdout] 
[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 1 previous error; 3 warnings emitted
[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] 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 1 previous error; 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `assert_snapshot` (lib) due to 2 previous errors; 3 warnings emitted
[INFO] [stdout] For more information about this error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `assert_snapshot` (lib test) due to 2 previous errors; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "f208b2f145d6c90065edcddbb3b238ad4a0d7af8ea47eda27547576ac59313db", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f208b2f145d6c90065edcddbb3b238ad4a0d7af8ea47eda27547576ac59313db", kill_on_drop: false }`
[INFO] [stdout] f208b2f145d6c90065edcddbb3b238ad4a0d7af8ea47eda27547576ac59313db
[INFO] checking assert_snapshot-0.1.3 against try#bfe97fcae016881ad333f0ff8cea2cadb9cf136c for pr-121848
[INFO] extracting crate assert_snapshot 0.1.3 into /workspace/builds/worker-4-tc2/source
[INFO] validating manifest of crates.io crate assert_snapshot 0.1.3 on toolchain bfe97fcae016881ad333f0ff8cea2cadb9cf136c
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "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-4-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0c2cda258d190a29c4fd7086dfebcb3933813b3333c22ae61fc75834dd7dd78b
[INFO] running `Command { std: "docker" "start" "-a" "0c2cda258d190a29c4fd7086dfebcb3933813b3333c22ae61fc75834dd7dd78b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0c2cda258d190a29c4fd7086dfebcb3933813b3333c22ae61fc75834dd7dd78b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0c2cda258d190a29c4fd7086dfebcb3933813b3333c22ae61fc75834dd7dd78b", kill_on_drop: false }`
[INFO] [stdout] 0c2cda258d190a29c4fd7086dfebcb3933813b3333c22ae61fc75834dd7dd78b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ac11fdee20175968f8e91e6339a3a18d1c1af6862cc8944a63536333be2bc44d
[INFO] running `Command { std: "docker" "start" "-a" "ac11fdee20175968f8e91e6339a3a18d1c1af6862cc8944a63536333be2bc44d", kill_on_drop: false }`
[INFO] [stderr]     Checking gimli v0.28.1
[INFO] [stderr]    Compiling failure_derive v0.1.8
[INFO] [stderr]    Compiling backtrace v0.3.69
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]     Checking object v0.32.2
[INFO] [stderr]     Checking rustc-demangle v0.1.23
[INFO] [stderr]     Checking miniz_oxide v0.7.2
[INFO] [stderr]     Checking itertools v0.7.11
[INFO] [stderr]     Checking sorted-json v0.1.0
[INFO] [stderr]     Checking addr2line v0.21.0
[INFO] [stderr]     Checking failure v0.1.8
[INFO] [stderr]     Checking assert_snapshot v0.1.3 (/opt/rustwide/workdir)
[INFO] [stdout] warning: the item `serde` is imported redundantly
[INFO] [stdout]  --> src/assert_snapshot.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde;
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]  ::: src/lib.rs:4:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | extern crate serde;
[INFO] [stdout]   | ------------------- the item `serde` is already imported here
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `serde_json` is imported redundantly
[INFO] [stdout]  --> src/assert_snapshot.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use serde_json;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]  ::: src/lib.rs:5:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | extern crate serde_json;
[INFO] [stdout]   | ------------------------ the item `serde_json` is already imported here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `String` is imported redundantly
[INFO] [stdout]   --> src/assert_snapshot.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 |     string::String,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]   --> /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]    |
[INFO] [stdout]    = note: the item `String` is already defined here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `serde` is imported redundantly
[INFO] [stdout]  --> src/assert_snapshot.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde;
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]  ::: src/lib.rs:4:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | extern crate serde;
[INFO] [stdout]   | ------------------- the item `serde` is already imported here
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `serde_json` is imported redundantly
[INFO] [stdout]  --> src/assert_snapshot.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use serde_json;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]  ::: src/lib.rs:5:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | extern crate serde_json;
[INFO] [stdout]   | ------------------------ the item `serde_json` is already imported here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `String` is imported redundantly
[INFO] [stdout]   --> src/assert_snapshot.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 |     string::String,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]   --> /rustc/bfe97fcae016881ad333f0ff8cea2cadb9cf136c/library/std/src/prelude/mod.rs:105:13
[INFO] [stdout]    |
[INFO] [stdout]    = note: the item `String` is already defined here
[INFO] [stdout] 
[INFO] [stdout] 
[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[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 1 previous error; 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error; 3 warnings emitted
[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` (lib) due to 2 previous errors; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `assert_snapshot` (lib test) due to 2 previous errors; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "ac11fdee20175968f8e91e6339a3a18d1c1af6862cc8944a63536333be2bc44d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ac11fdee20175968f8e91e6339a3a18d1c1af6862cc8944a63536333be2bc44d", kill_on_drop: false }`
[INFO] [stdout] ac11fdee20175968f8e91e6339a3a18d1c1af6862cc8944a63536333be2bc44d
