[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#936f2600b6c903b04387f74ed5cbce88bb06d243 for pr-91141 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fastrojhgu%2Flifetime_test" "/workspace/builds/worker-94/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-94/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/astrojhgu/lifetime_test on toolchain 936f2600b6c903b04387f74ed5cbce88bb06d243 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "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-94/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: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-94/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-94/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 493e25a92dcc5f7b0473e3e023aee07e5cc9afd45e7e55aecb70d3a265cdf812 [INFO] running `Command { std: "docker" "start" "-a" "493e25a92dcc5f7b0473e3e023aee07e5cc9afd45e7e55aecb70d3a265cdf812", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "493e25a92dcc5f7b0473e3e023aee07e5cc9afd45e7e55aecb70d3a265cdf812", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "493e25a92dcc5f7b0473e3e023aee07e5cc9afd45e7e55aecb70d3a265cdf812", kill_on_drop: false }` [INFO] [stdout] 493e25a92dcc5f7b0473e3e023aee07e5cc9afd45e7e55aecb70d3a265cdf812 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-94/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-94/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b049fb023267e21fd16e2d6657bd9f43eb27ab3902a9b1a613bb5a679944d0a [INFO] running `Command { std: "docker" "start" "-a" "6b049fb023267e21fd16e2d6657bd9f43eb27ab3902a9b1a613bb5a679944d0a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Checking lifetime_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `num_traits::Num` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::Num; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_traits::Num` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num_traits::Num; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let k = seeds.len(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aa` [INFO] [stdout] --> src/main.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let aa:Vec<_> = seeds [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_aa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:21:46 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn kmeans<'a, Scalar, T>(points: Vec, mut seeds: Vec) -> Vec> [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [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] | -- 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 [INFO] [stdout] ... [INFO] [stdout] 32 | let aa:Vec<_> = seeds [INFO] [stdout] | _________________________^ [INFO] [stdout] 33 | | .iter().map(|a|{ [INFO] [stdout] | |___________________^ borrowed value does not live long enough [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] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let k = seeds.len(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aa` [INFO] [stdout] --> src/main.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let aa:Vec<_> = seeds [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_aa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:21:46 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn kmeans<'a, Scalar, T>(points: Vec, mut seeds: Vec) -> Vec> [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [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] | -- 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 [INFO] [stdout] ... [INFO] [stdout] 32 | let aa:Vec<_> = seeds [INFO] [stdout] | _________________________^ [INFO] [stdout] 33 | | .iter().map(|a|{ [INFO] [stdout] | |___________________^ borrowed value does not live long enough [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; 4 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 `lifetime_test` due to 3 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "6b049fb023267e21fd16e2d6657bd9f43eb27ab3902a9b1a613bb5a679944d0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b049fb023267e21fd16e2d6657bd9f43eb27ab3902a9b1a613bb5a679944d0a", kill_on_drop: false }` [INFO] [stdout] 6b049fb023267e21fd16e2d6657bd9f43eb27ab3902a9b1a613bb5a679944d0a