[INFO] updating cached repository https://github.com/cemondr/traveling-salesman-library [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] [stderr] From https://github.com/cemondr/traveling-salesman-library [INFO] [stderr] e97b1b7..11effc6 master -> master [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 11effc6f92331eb1b0ea7fecde372e0f45f09f1e [INFO] checking cemondr/traveling-salesman-library against master#3dbade652ed8ebac70f903e01f51cd92c4e4302c for pr-69741 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcemondr%2Ftraveling-salesman-library" "/workspace/builds/worker-6/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cemondr/traveling-salesman-library on toolchain 3dbade652ed8ebac70f903e01f51cd92c4e4302c [INFO] running `"/workspace/cargo-home/bin/cargo" "+3dbade652ed8ebac70f903e01f51cd92c4e4302c" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/cemondr/traveling-salesman-library [INFO] finished tweaking git repo https://github.com/cemondr/traveling-salesman-library [INFO] tweaked toml for git repo https://github.com/cemondr/traveling-salesman-library written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/cemondr/traveling-salesman-library already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+3dbade652ed8ebac70f903e01f51cd92c4e4302c" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+3dbade652ed8ebac70f903e01f51cd92c4e4302c" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 20c24eeac658799700372a15b832dd40cebf5464dca10fcd65014e80e6e85021 [INFO] running `"docker" "start" "-a" "20c24eeac658799700372a15b832dd40cebf5464dca10fcd65014e80e6e85021"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Compiling palette v0.5.0 [INFO] [stderr] Compiling servo-fontconfig-sys v4.0.9 [INFO] [stderr] Compiling servo-freetype-sys v4.0.5 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Checking dirs v1.0.5 [INFO] [stderr] Checking euclid v0.20.7 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking backtrace-sys v0.1.32 [INFO] [stderr] Checking threadpool v1.7.1 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking image v0.22.5 [INFO] [stderr] Checking backtrace v0.3.44 [INFO] [stderr] Checking rstar v0.2.0 [INFO] [stderr] Checking rusttype v0.8.2 [INFO] [stderr] Checking freetype v0.4.1 [INFO] [stderr] Checking geo-types v0.4.3 [INFO] [stderr] Checking servo-fontconfig v0.4.0 [INFO] [stderr] Checking lyon_geom v0.14.1 [INFO] [stderr] Checking lyon_path v0.14.0 [INFO] [stderr] Checking font-kit v0.4.0 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling failure_derive v0.1.6 [INFO] [stderr] Compiling palette_derive v0.5.0 [INFO] [stderr] Checking failure v0.1.6 [INFO] [stderr] Checking geo v0.12.2 [INFO] [stderr] Checking plotters v0.2.12 [INFO] [stderr] Checking rso4ts v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused import: `rand::seq` [INFO] [stderr] --> src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use rand::seq; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::SeedableRng` [INFO] [stderr] --> src/lib.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use rand::SeedableRng; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::vec_deque::VecDeque` [INFO] [stderr] --> src/lib.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::collections::vec_deque::VecDeque; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` head expression [INFO] [stderr] --> src/lib.rs:241:14 [INFO] [stderr] | [INFO] [stderr] 241 | for i in (0..elite_size as usize){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` head expression [INFO] [stderr] --> src/lib.rs:249:14 [INFO] [stderr] | [INFO] [stderr] 249 | for j in (elite_size as usize ..length as usize){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/lib.rs:274:12 [INFO] [stderr] | [INFO] [stderr] 274 | if (pool.contains(&(i as u32))){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unused variable: `data` [INFO] [stderr] --> src/lib.rs:124:9 [INFO] [stderr] | [INFO] [stderr] 124 | let data = [ [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_data` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `length` [INFO] [stderr] --> src/lib.rs:323:9 [INFO] [stderr] | [INFO] [stderr] 323 | let length = mating_pool.len()-elite_size as usize; [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_length` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/lib.rs:389:9 [INFO] [stderr] | [INFO] [stderr] 389 | for i in 0..generations{ [INFO] [stderr] | ^ help: consider prefixing with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:204:13 [INFO] [stderr] | [INFO] [stderr] 204 | let mut something= rng.gen_range(0.0,1.0); [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:341:13 [INFO] [stderr] | [INFO] [stderr] 341 | let mut child = breed_and_mutate(&mating_pool[parent1], &mating_pool[parent2], mutation_rate); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:390:13 [INFO] [stderr] | [INFO] [stderr] 390 | let mut temp = get_next_generation(population,&distance_table,elite_size,mutation_rate); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: constant item is never used: `FPS` [INFO] [stderr] --> src/lib.rs:13:1 [INFO] [stderr] | [INFO] [stderr] 13 | const FPS: u32 = 10; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant item is never used: `LENGTH` [INFO] [stderr] --> src/lib.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | const LENGTH: u32 = 20; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant item is never used: `N_DATA_POINTS` [INFO] [stderr] --> src/lib.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | const N_DATA_POINTS: usize = (FPS * LENGTH) as usize; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::seq` [INFO] [stderr] --> src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use rand::seq; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::SeedableRng` [INFO] [stderr] --> src/lib.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use rand::SeedableRng; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::vec_deque::VecDeque` [INFO] [stderr] --> src/lib.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::collections::vec_deque::VecDeque; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` head expression [INFO] [stderr] --> src/lib.rs:241:14 [INFO] [stderr] | [INFO] [stderr] 241 | for i in (0..elite_size as usize){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` head expression [INFO] [stderr] --> src/lib.rs:249:14 [INFO] [stderr] | [INFO] [stderr] 249 | for j in (elite_size as usize ..length as usize){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/lib.rs:274:12 [INFO] [stderr] | [INFO] [stderr] 274 | if (pool.contains(&(i as u32))){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unused variable: `data` [INFO] [stderr] --> src/lib.rs:124:9 [INFO] [stderr] | [INFO] [stderr] 124 | let data = [ [INFO] [stderr] | ^^^^ help: consider prefixing with an underscore: `_data` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `length` [INFO] [stderr] --> src/lib.rs:323:9 [INFO] [stderr] | [INFO] [stderr] 323 | let length = mating_pool.len()-elite_size as usize; [INFO] [stderr] | ^^^^^^ help: consider prefixing with an underscore: `_length` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/lib.rs:389:9 [INFO] [stderr] | [INFO] [stderr] 389 | for i in 0..generations{ [INFO] [stderr] | ^ help: consider prefixing with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:204:13 [INFO] [stderr] | [INFO] [stderr] 204 | let mut something= rng.gen_range(0.0,1.0); [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:341:13 [INFO] [stderr] | [INFO] [stderr] 341 | let mut child = breed_and_mutate(&mating_pool[parent1], &mating_pool[parent2], mutation_rate); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:390:13 [INFO] [stderr] | [INFO] [stderr] 390 | let mut temp = get_next_generation(population,&distance_table,elite_size,mutation_rate); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: constant item is never used: `FPS` [INFO] [stderr] --> src/lib.rs:13:1 [INFO] [stderr] | [INFO] [stderr] 13 | const FPS: u32 = 10; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant item is never used: `LENGTH` [INFO] [stderr] --> src/lib.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | const LENGTH: u32 = 20; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant item is never used: `N_DATA_POINTS` [INFO] [stderr] --> src/lib.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | const N_DATA_POINTS: usize = (FPS * LENGTH) as usize; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_random_city` [INFO] [stderr] --> examples/example.rs:7:4 [INFO] [stderr] | [INFO] [stderr] 7 | fn get_random_city() -> (f32,f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 50.95s [INFO] running `"docker" "inspect" "20c24eeac658799700372a15b832dd40cebf5464dca10fcd65014e80e6e85021"` [INFO] running `"docker" "rm" "-f" "20c24eeac658799700372a15b832dd40cebf5464dca10fcd65014e80e6e85021"` [INFO] [stdout] 20c24eeac658799700372a15b832dd40cebf5464dca10fcd65014e80e6e85021