[INFO] fetching crate assert_snapshot 0.1.3...
[INFO] checking assert_snapshot-0.1.3 against master#80399064afa4a2cd153f30d02c25f7ea0383ed65 for opaque-soundness-fix
[INFO] extracting crate assert_snapshot 0.1.3 into /workspace/builds/worker-3-tc1/source
[INFO] validating manifest of crates.io crate assert_snapshot 0.1.3 on toolchain 80399064afa4a2cd153f30d02c25f7ea0383ed65
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+80399064afa4a2cd153f30d02c25f7ea0383ed65" "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-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+80399064afa4a2cd153f30d02c25f7ea0383ed65" "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" "+80399064afa4a2cd153f30d02c25f7ea0383ed65" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition
[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-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+80399064afa4a2cd153f30d02c25f7ea0383ed65" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4ddffeb1ca12d178041a218f9ee75a8d2ccaa67288620a63b7f34f09587a2612
[INFO] running `Command { std: "docker" "start" "-a" "4ddffeb1ca12d178041a218f9ee75a8d2ccaa67288620a63b7f34f09587a2612", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4ddffeb1ca12d178041a218f9ee75a8d2ccaa67288620a63b7f34f09587a2612", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4ddffeb1ca12d178041a218f9ee75a8d2ccaa67288620a63b7f34f09587a2612", kill_on_drop: false }`
[INFO] [stdout] 4ddffeb1ca12d178041a218f9ee75a8d2ccaa67288620a63b7f34f09587a2612
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+80399064afa4a2cd153f30d02c25f7ea0383ed65" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 085249f21ae36b44237ec3e7c5e24583d26a3a7f4b045fdd0c316ad2425e7d38
[INFO] running `Command { std: "docker" "start" "-a" "085249f21ae36b44237ec3e7c5e24583d26a3a7f4b045fdd0c316ad2425e7d38", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition
[INFO] [stderr]     Checking memchr v2.7.1
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]     Checking itertools v0.7.11
[INFO] [stderr]     Checking object v0.32.2
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]     Checking sorted-json v0.1.0
[INFO] [stderr]     Checking regex-automata v0.4.6
[INFO] [stderr]    Compiling synstructure v0.12.6
[INFO] [stderr]    Compiling failure_derive v0.1.8
[INFO] [stderr]     Checking regex v1.10.4
[INFO] [stderr]     Checking backtrace v0.3.71
[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/80399064afa4a2cd153f30d02c25f7ea0383ed65/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/80399064afa4a2cd153f30d02c25f7ea0383ed65/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" "085249f21ae36b44237ec3e7c5e24583d26a3a7f4b045fdd0c316ad2425e7d38", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "085249f21ae36b44237ec3e7c5e24583d26a3a7f4b045fdd0c316ad2425e7d38", kill_on_drop: false }`
[INFO] [stdout] 085249f21ae36b44237ec3e7c5e24583d26a3a7f4b045fdd0c316ad2425e7d38
[INFO] checking assert_snapshot-0.1.3 against master#09bc67b9158392361780e779d32997f14cc75c39 for opaque-soundness-fix
[INFO] extracting crate assert_snapshot 0.1.3 into /workspace/builds/worker-3-tc2/source
[INFO] validating manifest of crates.io crate assert_snapshot 0.1.3 on toolchain 09bc67b9158392361780e779d32997f14cc75c39
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+09bc67b9158392361780e779d32997f14cc75c39" "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-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+09bc67b9158392361780e779d32997f14cc75c39" "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" "+09bc67b9158392361780e779d32997f14cc75c39" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition
[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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+09bc67b9158392361780e779d32997f14cc75c39" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] f08fb17786d665fc2062ed440a861cc68e0cd539cfe0c018e445d087b3bf8c58
[INFO] running `Command { std: "docker" "start" "-a" "f08fb17786d665fc2062ed440a861cc68e0cd539cfe0c018e445d087b3bf8c58", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f08fb17786d665fc2062ed440a861cc68e0cd539cfe0c018e445d087b3bf8c58", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f08fb17786d665fc2062ed440a861cc68e0cd539cfe0c018e445d087b3bf8c58", kill_on_drop: false }`
[INFO] [stdout] f08fb17786d665fc2062ed440a861cc68e0cd539cfe0c018e445d087b3bf8c58
[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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+09bc67b9158392361780e779d32997f14cc75c39" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 19306486cf41f0f776a9fe591ec97a66106582cfc6171f5a24dba2a124f7d630
[INFO] running `Command { std: "docker" "start" "-a" "19306486cf41f0f776a9fe591ec97a66106582cfc6171f5a24dba2a124f7d630", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition
[INFO] [stderr]     Checking memchr v2.7.1
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]     Checking itertools v0.7.11
[INFO] [stderr]     Checking object v0.32.2
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]     Checking sorted-json v0.1.0
[INFO] [stderr]     Checking regex-automata v0.4.6
[INFO] [stderr]    Compiling synstructure v0.12.6
[INFO] [stderr]    Compiling failure_derive v0.1.8
[INFO] [stderr]     Checking regex v1.10.4
[INFO] [stderr]     Checking backtrace v0.3.71
[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/09bc67b9158392361780e779d32997f14cc75c39/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/09bc67b9158392361780e779d32997f14cc75c39/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" "19306486cf41f0f776a9fe591ec97a66106582cfc6171f5a24dba2a124f7d630", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "19306486cf41f0f776a9fe591ec97a66106582cfc6171f5a24dba2a124f7d630", kill_on_drop: false }`
[INFO] [stdout] 19306486cf41f0f776a9fe591ec97a66106582cfc6171f5a24dba2a124f7d630
