[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/068fca12a4cba200f97daca8b74c13d274206c66 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [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 f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9689998c33173558662aff02507d140da4ea8ca8518ceba882bc01eeea86da00 [INFO] running `Command { std: "docker" "start" "-a" "9689998c33173558662aff02507d140da4ea8ca8518ceba882bc01eeea86da00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9689998c33173558662aff02507d140da4ea8ca8518ceba882bc01eeea86da00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9689998c33173558662aff02507d140da4ea8ca8518ceba882bc01eeea86da00", kill_on_drop: false }` [INFO] [stdout] 9689998c33173558662aff02507d140da4ea8ca8518ceba882bc01eeea86da00 [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=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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1428e818e4f335d4d0b94c33c8f78feb88d134d3517b94ed5e9b14b2b1beb51c [INFO] running `Command { std: "docker" "start" "-a" "1428e818e4f335d4d0b94c33c8f78feb88d134d3517b94ed5e9b14b2b1beb51c", 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] 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: 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] | -- ------ 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] 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] | -- ------ 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: 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] 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` (bin "lifetime_test" test) due to 3 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `lifetime_test` (bin "lifetime_test") due to 3 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1428e818e4f335d4d0b94c33c8f78feb88d134d3517b94ed5e9b14b2b1beb51c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1428e818e4f335d4d0b94c33c8f78feb88d134d3517b94ed5e9b14b2b1beb51c", kill_on_drop: false }` [INFO] [stdout] 1428e818e4f335d4d0b94c33c8f78feb88d134d3517b94ed5e9b14b2b1beb51c