[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#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fastrojhgu%2Flifetime_test" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/astrojhgu/lifetime_test on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "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-0-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 85dae741b472a766e71400b4ca39fa412bdfa0fe3a601f4476b325b6b805f245 [INFO] running `Command { std: "docker" "start" "-a" "85dae741b472a766e71400b4ca39fa412bdfa0fe3a601f4476b325b6b805f245", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "85dae741b472a766e71400b4ca39fa412bdfa0fe3a601f4476b325b6b805f245", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85dae741b472a766e71400b4ca39fa412bdfa0fe3a601f4476b325b6b805f245", kill_on_drop: false }` [INFO] [stdout] 85dae741b472a766e71400b4ca39fa412bdfa0fe3a601f4476b325b6b805f245 [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=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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] adf4820eaa04fc98e0ec2bb73ffc7e9906d4ac248b48b6036fe768d9d0d88c31 [INFO] running `Command { std: "docker" "start" "-a" "adf4820eaa04fc98e0ec2bb73ffc7e9906d4ac248b48b6036fe768d9d0d88c31", 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" "adf4820eaa04fc98e0ec2bb73ffc7e9906d4ac248b48b6036fe768d9d0d88c31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "adf4820eaa04fc98e0ec2bb73ffc7e9906d4ac248b48b6036fe768d9d0d88c31", kill_on_drop: false }` [INFO] [stdout] adf4820eaa04fc98e0ec2bb73ffc7e9906d4ac248b48b6036fe768d9d0d88c31