[INFO] fetching crate which 4.4.2... [INFO] checking which-4.4.2 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate which 4.4.2 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate which 4.4.2 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate which 4.4.2 [INFO] finished tweaking crates.io crate which 4.4.2 [INFO] tweaked toml for crates.io crate which 4.4.2 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 56576fda4df1d74281ce3a02f01c4d1163ea18557af3fdd7233d60db57d24a46 [INFO] running `Command { std: "docker" "start" "-a" "56576fda4df1d74281ce3a02f01c4d1163ea18557af3fdd7233d60db57d24a46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "56576fda4df1d74281ce3a02f01c4d1163ea18557af3fdd7233d60db57d24a46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56576fda4df1d74281ce3a02f01c4d1163ea18557af3fdd7233d60db57d24a46", kill_on_drop: false }` [INFO] [stdout] 56576fda4df1d74281ce3a02f01c4d1163ea18557af3fdd7233d60db57d24a46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23807b473f601d20ebfac87a2d32be5cdc52d0db3d3fe6767a8f835d1c8220b5 [INFO] running `Command { std: "docker" "start" "-a" "23807b473f601d20ebfac87a2d32be5cdc52d0db3d3fe6767a8f835d1c8220b5", kill_on_drop: false }` [INFO] [stderr] Checking which v4.4.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0597]: `finder` does not live long enough [INFO] [stdout] --> src/lib.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | let finder = Finder::new(); [INFO] [stdout] | ------ binding `finder` declared here [INFO] [stdout] 93 | [INFO] [stdout] 94 | finder.find(binary_name, env::var_os("PATH"), cwd, binary_checker) [INFO] [stdout] | ^^^^^^------------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `finder` is borrowed for `'static` [INFO] [stdout] 95 | } [INFO] [stdout] | - `finder` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `finder` does not live long enough [INFO] [stdout] --> src/lib.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 92 | let finder = Finder::new(); [INFO] [stdout] | ------ binding `finder` declared here [INFO] [stdout] 93 | [INFO] [stdout] 94 | finder.find(binary_name, env::var_os("PATH"), cwd, binary_checker) [INFO] [stdout] | ^^^^^^------------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `finder` is borrowed for `'static` [INFO] [stdout] 95 | } [INFO] [stdout] | - `finder` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `finder` does not live long enough [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 103 | let finder = Finder::new(); [INFO] [stdout] | ------ binding `finder` declared here [INFO] [stdout] 104 | [INFO] [stdout] 105 | finder.find( [INFO] [stdout] | -^^^^^ [INFO] [stdout] | | [INFO] [stdout] | _____borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] 106 | | binary_name, [INFO] [stdout] 107 | | env::var_os("PATH"), [INFO] [stdout] 108 | | Option::<&Path>::None, [INFO] [stdout] 109 | | binary_checker, [INFO] [stdout] 110 | | ) [INFO] [stdout] | |_____- argument requires that `finder` is borrowed for `'static` [INFO] [stdout] 111 | } [INFO] [stdout] | - `finder` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `finder` does not live long enough [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 103 | let finder = Finder::new(); [INFO] [stdout] | ------ binding `finder` declared here [INFO] [stdout] 104 | [INFO] [stdout] 105 | finder.find( [INFO] [stdout] | -^^^^^ [INFO] [stdout] | | [INFO] [stdout] | _____borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] 106 | | binary_name, [INFO] [stdout] 107 | | env::var_os("PATH"), [INFO] [stdout] 108 | | Option::<&Path>::None, [INFO] [stdout] 109 | | binary_checker, [INFO] [stdout] 110 | | ) [INFO] [stdout] | |_____- argument requires that `finder` is borrowed for `'static` [INFO] [stdout] 111 | } [INFO] [stdout] | - `finder` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `finder` does not live long enough [INFO] [stdout] --> src/lib.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 212 | let finder = Finder::new(); [INFO] [stdout] | ------ binding `finder` declared here [INFO] [stdout] 213 | [INFO] [stdout] 214 | finder.find(binary_name, paths, Some(cwd), binary_checker) [INFO] [stdout] | ^^^^^^---------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `finder` is borrowed for `'static` [INFO] [stdout] 215 | } [INFO] [stdout] | - `finder` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `finder` does not live long enough [INFO] [stdout] --> src/lib.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 212 | let finder = Finder::new(); [INFO] [stdout] | ------ binding `finder` declared here [INFO] [stdout] 213 | [INFO] [stdout] 214 | finder.find(binary_name, paths, Some(cwd), binary_checker) [INFO] [stdout] | ^^^^^^---------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `finder` is borrowed for `'static` [INFO] [stdout] 215 | } [INFO] [stdout] | - `finder` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `finder` does not live long enough [INFO] [stdout] --> src/lib.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 228 | let finder = Finder::new(); [INFO] [stdout] | ------ binding `finder` declared here [INFO] [stdout] 229 | [INFO] [stdout] 230 | finder.find(binary_name, paths, Option::<&Path>::None, binary_checker) [INFO] [stdout] | ^^^^^^---------------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `finder` is borrowed for `'static` [INFO] [stdout] 231 | } [INFO] [stdout] | - `finder` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `finder` does not live long enough [INFO] [stdout] --> src/lib.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 228 | let finder = Finder::new(); [INFO] [stdout] | ------ binding `finder` declared here [INFO] [stdout] 229 | [INFO] [stdout] 230 | finder.find(binary_name, paths, Option::<&Path>::None, binary_checker) [INFO] [stdout] | ^^^^^^---------------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `finder` is borrowed for `'static` [INFO] [stdout] 231 | } [INFO] [stdout] | - `finder` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `finder` does not live long enough [INFO] [stdout] --> src/lib.rs:382:9 [INFO] [stdout] | [INFO] [stdout] 365 | let finder = Finder::new(); [INFO] [stdout] | ------ binding `finder` declared here [INFO] [stdout] ... [INFO] [stdout] 382 | finder [INFO] [stdout] | -^^^^^ [INFO] [stdout] | | [INFO] [stdout] | _________borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] 383 | | .find( [INFO] [stdout] 384 | | self.binary_name.expect( [INFO] [stdout] 385 | | "binary_name not set! You must set binary_name or regex before searching!", [INFO] [stdout] ... | [INFO] [stdout] 390 | | ) [INFO] [stdout] 391 | | .map(|i| Box::new(i) as Box>) [INFO] [stdout] | |____________________________________________________________________________- opaque type requires that `finder` is borrowed for `'static` [INFO] [stdout] 392 | } [INFO] [stdout] | - `finder` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `finder` does not live long enough [INFO] [stdout] --> src/lib.rs:382:9 [INFO] [stdout] | [INFO] [stdout] 365 | let finder = Finder::new(); [INFO] [stdout] | ------ binding `finder` declared here [INFO] [stdout] ... [INFO] [stdout] 382 | finder [INFO] [stdout] | -^^^^^ [INFO] [stdout] | | [INFO] [stdout] | _________borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] 383 | | .find( [INFO] [stdout] 384 | | self.binary_name.expect( [INFO] [stdout] 385 | | "binary_name not set! You must set binary_name or regex before searching!", [INFO] [stdout] ... | [INFO] [stdout] 390 | | ) [INFO] [stdout] 391 | | .map(|i| Box::new(i) as Box>) [INFO] [stdout] | |____________________________________________________________________________- opaque type requires that `finder` is borrowed for `'static` [INFO] [stdout] 392 | } [INFO] [stdout] | - `finder` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `which` (lib) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `which` (lib test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "23807b473f601d20ebfac87a2d32be5cdc52d0db3d3fe6767a8f835d1c8220b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23807b473f601d20ebfac87a2d32be5cdc52d0db3d3fe6767a8f835d1c8220b5", kill_on_drop: false }` [INFO] [stdout] 23807b473f601d20ebfac87a2d32be5cdc52d0db3d3fe6767a8f835d1c8220b5