[INFO] cloning repository https://github.com/astrojhgu/lifetime_test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/astrojhgu/lifetime_test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fastrojhgu%2Flifetime_test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fastrojhgu%2Flifetime_test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 068fca12a4cba200f97daca8b74c13d274206c66 [INFO] checking astrojhgu/lifetime_test against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fastrojhgu%2Flifetime_test" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/astrojhgu/lifetime_test on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/astrojhgu/lifetime_test [INFO] finished tweaking git repo https://github.com/astrojhgu/lifetime_test [INFO] tweaked toml for git repo https://github.com/astrojhgu/lifetime_test written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/astrojhgu/lifetime_test already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 92d3bebe2208f88d83ae8dc0753af2f33b590a049e516379cc2099c3353a4e3b [INFO] running `Command { std: "docker" "start" "-a" "92d3bebe2208f88d83ae8dc0753af2f33b590a049e516379cc2099c3353a4e3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "92d3bebe2208f88d83ae8dc0753af2f33b590a049e516379cc2099c3353a4e3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92d3bebe2208f88d83ae8dc0753af2f33b590a049e516379cc2099c3353a4e3b", kill_on_drop: false }` [INFO] [stdout] 92d3bebe2208f88d83ae8dc0753af2f33b590a049e516379cc2099c3353a4e3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e6318d9bd479585cf6eaf2b481532382d36d2fb0c4ba68e5c9d6cdab7b7417fe [INFO] running `Command { std: "docker" "start" "-a" "e6318d9bd479585cf6eaf2b481532382d36d2fb0c4ba68e5c9d6cdab7b7417fe", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Checking lifetime_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0597]: `points` does not live long enough [INFO] [stdout] --> src/main.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn kmeans<'a, Scalar, T>(points: Vec, mut seeds: Vec) -> Vec> [INFO] [stdout] | -- ------ binding `points` declared here [INFO] [stdout] | | [INFO] [stdout] | lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 31 | for p in &points { [INFO] [stdout] | ^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 34 | a.distance_to(p) [INFO] [stdout] | ---------------- argument requires that `points` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 40 | } [INFO] [stdout] | - `points` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `points` does not live long enough [INFO] [stdout] --> src/main.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn kmeans<'a, Scalar, T>(points: Vec, mut seeds: Vec) -> Vec> [INFO] [stdout] | -- ------ binding `points` declared here [INFO] [stdout] | | [INFO] [stdout] | lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 31 | for p in &points { [INFO] [stdout] | ^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 34 | a.distance_to(p) [INFO] [stdout] | ---------------- argument requires that `points` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 40 | } [INFO] [stdout] | - `points` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `seeds` does not live long enough [INFO] [stdout] --> src/main.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn kmeans<'a, Scalar, T>(points: Vec, mut seeds: Vec) -> Vec> [INFO] [stdout] | -- lifetime `'a` defined here --------- binding `seeds` declared here [INFO] [stdout] ... [INFO] [stdout] 32 | let aa:Vec<_> = seeds [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] 33 | .iter().map(|a|{ [INFO] [stdout] 34 | a.distance_to(p) [INFO] [stdout] | ---------------- argument requires that `seeds` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 40 | } [INFO] [stdout] | - `seeds` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `seeds` does not live long enough [INFO] [stdout] --> src/main.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn kmeans<'a, Scalar, T>(points: Vec, mut seeds: Vec) -> Vec> [INFO] [stdout] | -- lifetime `'a` defined here --------- binding `seeds` declared here [INFO] [stdout] ... [INFO] [stdout] 32 | let aa:Vec<_> = seeds [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] 33 | .iter().map(|a|{ [INFO] [stdout] 34 | a.distance_to(p) [INFO] [stdout] | ---------------- argument requires that `seeds` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 40 | } [INFO] [stdout] | - `seeds` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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 2 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 `lifetime_test` (bin "lifetime_test") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `lifetime_test` (bin "lifetime_test" test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "e6318d9bd479585cf6eaf2b481532382d36d2fb0c4ba68e5c9d6cdab7b7417fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6318d9bd479585cf6eaf2b481532382d36d2fb0c4ba68e5c9d6cdab7b7417fe", kill_on_drop: false }` [INFO] [stdout] e6318d9bd479585cf6eaf2b481532382d36d2fb0c4ba68e5c9d6cdab7b7417fe