[INFO] cloning repository https://github.com/timgluz/teeline [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/timgluz/teeline" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftimgluz%2Fteeline", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftimgluz%2Fteeline'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a720cd03aad11b631259522b537c0ccacb25c341 [INFO] building timgluz/teeline against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftimgluz%2Fteeline" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/timgluz/teeline [INFO] finished tweaking git repo https://github.com/timgluz/teeline [INFO] tweaked toml for git repo https://github.com/timgluz/teeline written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/timgluz/teeline on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/timgluz/teeline 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded piston-viewport v1.0.0 [INFO] [stderr] Downloaded piston-float v1.0.0 [INFO] [stderr] Downloaded piston-graphics_api_version v1.0.0 [INFO] [stderr] Downloaded piston v0.52.0 [INFO] [stderr] Downloaded pistoncore-input v1.0.0 [INFO] [stderr] Downloaded pistoncore-event_loop v0.52.0 [INFO] [stderr] Downloaded glutin v0.21.2 [INFO] [stderr] Downloaded weezl v0.1.1 [INFO] [stderr] Downloaded smallvec v0.6.14 [INFO] [stderr] Downloaded png v0.16.7 [INFO] [stderr] Downloaded pistoncore-glutin_window v0.66.0 [INFO] [stderr] Downloaded piston2d-graphics v0.36.0 [INFO] [stderr] Downloaded ordered-float v1.1.1 [INFO] [stderr] Downloaded xml-rs v0.8.14 [INFO] [stderr] Downloaded regex-syntax v0.6.26 [INFO] [stderr] Downloaded piston-gfx_texture v0.41.0 [INFO] [stderr] Downloaded piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Downloaded libloading v0.6.4 [INFO] [stderr] Downloaded crossbeam-deque v0.7.4 [INFO] [stderr] Downloaded piston-texture v0.8.0 [INFO] [stderr] Downloaded gl_generator v0.10.0 [INFO] [stderr] Downloaded gl v0.11.0 [INFO] [stderr] Downloaded pistoncore-window v0.47.0 [INFO] [stderr] Downloaded piston2d-gfx_graphics v0.69.0 [INFO] [stderr] Downloaded piston_window v0.111.0 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f684dd095e42daa7fb9d8d35c9edbf16474ce0ce2902c579f1df483657bdf24b [INFO] running `Command { std: "docker" "start" "-a" "f684dd095e42daa7fb9d8d35c9edbf16474ce0ce2902c579f1df483657bdf24b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f684dd095e42daa7fb9d8d35c9edbf16474ce0ce2902c579f1df483657bdf24b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f684dd095e42daa7fb9d8d35c9edbf16474ce0ce2902c579f1df483657bdf24b", kill_on_drop: false }` [INFO] [stdout] f684dd095e42daa7fb9d8d35c9edbf16474ce0ce2902c579f1df483657bdf24b [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 97fad623f07d1e42e3631787f55b63566ffab9eb98856010fb5ec6e7be85c09b [INFO] running `Command { std: "docker" "start" "-a" "97fad623f07d1e42e3631787f55b63566ffab9eb98856010fb5ec6e7be85c09b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling xml-rs v0.8.14 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling stb_truetype v0.3.1 [INFO] [stderr] Compiling libloading v0.6.4 [INFO] [stderr] Compiling piston-float v1.0.0 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling rayon-core v1.8.1 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling syn v1.0.44 [INFO] [stderr] Compiling wayland-sys v0.21.13 [INFO] [stderr] Compiling piston-viewport v1.0.0 [INFO] [stderr] Compiling rusttype v0.8.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling crossbeam-deque v0.7.4 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling crossbeam-channel v0.4.4 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling rayon v1.4.1 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling piston-graphics_api_version v1.0.0 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Compiling walkdir v2.3.1 [INFO] [stderr] Compiling rusttype v0.7.9 [INFO] [stderr] Compiling line_drawing v0.7.0 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling draw_state v0.8.0 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling num-rational v0.3.0 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling cc v1.0.61 [INFO] [stderr] Compiling wayland-commons v0.21.13 [INFO] [stderr] Compiling xdg v2.2.0 [INFO] [stderr] Compiling weezl v0.1.1 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling andrew v0.2.1 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling gfx_core v0.9.2 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling gl_generator v0.10.0 [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling gl v0.11.0 [INFO] [stderr] Compiling gif v0.11.1 [INFO] [stderr] Compiling png v0.16.7 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling piston-texture v0.8.0 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling bytemuck v1.4.1 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling pistoncore-input v1.0.0 [INFO] [stderr] Compiling gfx v0.18.2 [INFO] [stderr] Compiling shader_version v0.7.0 [INFO] [stderr] Compiling vecmath v1.0.0 [INFO] [stderr] Compiling read_color v1.0.0 [INFO] [stderr] Compiling interpolation v0.2.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling piston2d-graphics v0.36.0 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.9 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling pistoncore-window v0.47.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling pistoncore-event_loop v0.52.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling piston v0.52.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling gfx_device_gl v0.16.2 [INFO] [stderr] Compiling piston-gfx_texture v0.41.0 [INFO] [stderr] Compiling piston2d-gfx_graphics v0.69.0 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling smithay-client-toolkit v0.4.6 [INFO] [stderr] Compiling winit v0.19.5 [INFO] [stderr] Compiling glutin v0.21.2 [INFO] [stderr] Compiling pistoncore-glutin_window v0.66.0 [INFO] [stderr] Compiling piston_window v0.111.0 [INFO] [stderr] Compiling teeline v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/tsp/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tsp/genetic_algorithm.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | for i in 0..gene_len { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 144 | for _i in 0..gene_len { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `UNVISITED_NODE` [INFO] [stdout] | [INFO] [stdout] 144 - for i in 0..gene_len { [INFO] [stdout] 144 + for tsp::branch_bound::UNVISITED_NODE in 0..gene_len { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_approx` is never used [INFO] [stdout] --> src/test/helpers.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn assert_approx(expected_val: f32, actual_val: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `first_id` is never read [INFO] [stdout] --> src/tsp/distance_matrix.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct DistanceMatrix { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 66 | first_id: usize, // TODO: remove - the first city id, default 0 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DistanceMatrix` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dimensionality` is never read [INFO] [stdout] --> src/tsp/kdtree.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct KDTree { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 86 | size: usize, [INFO] [stdout] 87 | dimensionality: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KDTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add` and `add_rec` are never used [INFO] [stdout] --> src/tsp/kdtree.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 91 | impl KDTree { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | fn add(&mut self, new_point: KDPoint) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn add_rec(&mut self, parent: KDSubTree, new_point: KDPoint, depth: usize) -> KDSubTree { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `point` and `cmp` are never used [INFO] [stdout] --> src/tsp/kdtree.rs:274:8 [INFO] [stdout] | [INFO] [stdout] 184 | impl KDNode { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 274 | fn point(&self) -> &KDPoint { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | fn cmp(&self, other: &KDNode) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GREEN` is never used [INFO] [stdout] --> src/tsp/progress.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const GREEN: RGBA = [0.0, 1.0, 0.0, 0.9]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLUE` is never used [INFO] [stdout] --> src/tsp/progress.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const BLUE: RGBA = [0.0, 0.0, 1.0, 0.9]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VISITED_COLOR` is never used [INFO] [stdout] --> src/tsp/progress.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | const VISITED_COLOR: RGBA = GREEN; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tsp/kdtree.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | let tree_points = points.clone().to_vec(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[KDPoint]` does not implement `Clone`, so calling `clone` on `&[KDPoint]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/c7f6aa2869acdbf014d094c6e427e554e160b6db/library/alloc/src/boxed.rs:231:1: 231:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/c7f6aa2869acdbf014d094c6e427e554e160b6db/library/alloc/src/boxed.rs" }) } [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/c7f6aa2869acdbf014d094c6e427e554e160b6db/library/alloc/src/boxed.rs:231:1: 231:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/c7f6aa2869acdbf014d094c6e427e554e160b6db/library/alloc/src/boxed.rs" }) } [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tsp/kdtree.rs:292:37 [INFO] [stdout] | [INFO] [stdout] 292 | self.left.as_ref().map(|n| n.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Box` does not implement `Clone`, so calling `clone` on `&Box` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 292 - self.left.as_ref().map(|n| n.clone()) [INFO] [stdout] 292 + self.left.as_ref().map(|n| n) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tsp/kdtree.rs:296:38 [INFO] [stdout] | [INFO] [stdout] 296 | self.right.as_ref().map(|n| n.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Box` does not implement `Clone`, so calling `clone` on `&Box` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 296 - self.right.as_ref().map(|n| n.clone()) [INFO] [stdout] 296 + self.right.as_ref().map(|n| n) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tsp/tsplib.rs:178:44 [INFO] [stdout] | [INFO] [stdout] 178 | let id_str = tokens.next().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 08s [INFO] running `Command { std: "docker" "inspect" "97fad623f07d1e42e3631787f55b63566ffab9eb98856010fb5ec6e7be85c09b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97fad623f07d1e42e3631787f55b63566ffab9eb98856010fb5ec6e7be85c09b", kill_on_drop: false }` [INFO] [stdout] 97fad623f07d1e42e3631787f55b63566ffab9eb98856010fb5ec6e7be85c09b [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb277f5eef7e3622f89fc0806fa0440d7c7da8ebd313833b409570fd3f9a59c9 [INFO] running `Command { std: "docker" "start" "-a" "eb277f5eef7e3622f89fc0806fa0440d7c7da8ebd313833b409570fd3f9a59c9", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/tsp/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tsp/genetic_algorithm.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | for i in 0..gene_len { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 144 | for _i in 0..gene_len { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `UNVISITED_NODE` [INFO] [stdout] | [INFO] [stdout] 144 - for i in 0..gene_len { [INFO] [stdout] 144 + for tsp::branch_bound::UNVISITED_NODE in 0..gene_len { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_approx` is never used [INFO] [stdout] --> src/test/helpers.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn assert_approx(expected_val: f32, actual_val: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `first_id` is never read [INFO] [stdout] --> src/tsp/distance_matrix.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct DistanceMatrix { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 66 | first_id: usize, // TODO: remove - the first city id, default 0 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DistanceMatrix` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dimensionality` is never read [INFO] [stdout] --> src/tsp/kdtree.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct KDTree { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 86 | size: usize, [INFO] [stdout] 87 | dimensionality: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KDTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add` and `add_rec` are never used [INFO] [stdout] --> src/tsp/kdtree.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 91 | impl KDTree { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | fn add(&mut self, new_point: KDPoint) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn add_rec(&mut self, parent: KDSubTree, new_point: KDPoint, depth: usize) -> KDSubTree { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `point` and `cmp` are never used [INFO] [stdout] --> src/tsp/kdtree.rs:274:8 [INFO] [stdout] | [INFO] [stdout] 184 | impl KDNode { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 274 | fn point(&self) -> &KDPoint { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | fn cmp(&self, other: &KDNode) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GREEN` is never used [INFO] [stdout] --> src/tsp/progress.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const GREEN: RGBA = [0.0, 1.0, 0.0, 0.9]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLUE` is never used [INFO] [stdout] --> src/tsp/progress.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const BLUE: RGBA = [0.0, 0.0, 1.0, 0.9]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VISITED_COLOR` is never used [INFO] [stdout] --> src/tsp/progress.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | const VISITED_COLOR: RGBA = GREEN; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tsp/kdtree.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | let tree_points = points.clone().to_vec(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[KDPoint]` does not implement `Clone`, so calling `clone` on `&[KDPoint]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/c7f6aa2869acdbf014d094c6e427e554e160b6db/library/alloc/src/boxed.rs:231:1: 231:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/c7f6aa2869acdbf014d094c6e427e554e160b6db/library/alloc/src/boxed.rs" }) } [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tsp/kdtree.rs:292:37 [INFO] [stdout] | [INFO] [stdout] 292 | self.left.as_ref().map(|n| n.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Box` does not implement `Clone`, so calling `clone` on `&Box` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 292 - self.left.as_ref().map(|n| n.clone()) [INFO] [stdout] 292 + self.left.as_ref().map(|n| n) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/c7f6aa2869acdbf014d094c6e427e554e160b6db/library/alloc/src/boxed.rs:231:1: 231:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/c7f6aa2869acdbf014d094c6e427e554e160b6db/library/alloc/src/boxed.rs" }) } [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tsp/kdtree.rs:296:38 [INFO] [stdout] | [INFO] [stdout] 296 | self.right.as_ref().map(|n| n.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Box` does not implement `Clone`, so calling `clone` on `&Box` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 296 - self.right.as_ref().map(|n| n.clone()) [INFO] [stdout] 296 + self.right.as_ref().map(|n| n) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tsp/tsplib.rs:178:44 [INFO] [stdout] | [INFO] [stdout] 178 | let id_str = tokens.next().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling teeline v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/tsp/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/tsp/genetic_algorithm.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | for i in 0..gene_len { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 144 | for _i in 0..gene_len { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `UNVISITED_NODE` [INFO] [stdout] | [INFO] [stdout] 144 - for i in 0..gene_len { [INFO] [stdout] 144 + for tsp::branch_bound::UNVISITED_NODE in 0..gene_len { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `first_id` is never read [INFO] [stdout] --> src/tsp/distance_matrix.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct DistanceMatrix { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 66 | first_id: usize, // TODO: remove - the first city id, default 0 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DistanceMatrix` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `point` and `cmp` are never used [INFO] [stdout] --> src/tsp/kdtree.rs:274:8 [INFO] [stdout] | [INFO] [stdout] 184 | impl KDNode { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 274 | fn point(&self) -> &KDPoint { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | fn cmp(&self, other: &KDNode) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GREEN` is never used [INFO] [stdout] --> src/tsp/progress.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const GREEN: RGBA = [0.0, 1.0, 0.0, 0.9]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLUE` is never used [INFO] [stdout] --> src/tsp/progress.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const BLUE: RGBA = [0.0, 0.0, 1.0, 0.9]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VISITED_COLOR` is never used [INFO] [stdout] --> src/tsp/progress.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | const VISITED_COLOR: RGBA = GREEN; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tsp/kdtree.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | let tree_points = points.clone().to_vec(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[tsp::kdtree::KDPoint]` does not implement `Clone`, so calling `clone` on `&[tsp::kdtree::KDPoint]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/c7f6aa2869acdbf014d094c6e427e554e160b6db/library/alloc/src/boxed.rs:231:1: 231:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/c7f6aa2869acdbf014d094c6e427e554e160b6db/library/alloc/src/boxed.rs" }) } [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tsp/kdtree.rs:292:37 [INFO] [stdout] | [INFO] [stdout] 292 | self.left.as_ref().map(|n| n.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Box` does not implement `Clone`, so calling `clone` on `&Box` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 292 - self.left.as_ref().map(|n| n.clone()) [INFO] [stdout] 292 + self.left.as_ref().map(|n| n) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] WARN rustc_errors::emitter Invalid span /rustc/c7f6aa2869acdbf014d094c6e427e554e160b6db/library/alloc/src/boxed.rs:231:1: 231:1 (#0), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "/rustc/c7f6aa2869acdbf014d094c6e427e554e160b6db/library/alloc/src/boxed.rs" }) } [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tsp/kdtree.rs:296:38 [INFO] [stdout] | [INFO] [stdout] 296 | self.right.as_ref().map(|n| n.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Box` does not implement `Clone`, so calling `clone` on `&Box` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 296 - self.right.as_ref().map(|n| n.clone()) [INFO] [stdout] 296 + self.right.as_ref().map(|n| n) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tsp/tsplib.rs:178:44 [INFO] [stdout] | [INFO] [stdout] 178 | let id_str = tokens.next().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.21s [INFO] running `Command { std: "docker" "inspect" "eb277f5eef7e3622f89fc0806fa0440d7c7da8ebd313833b409570fd3f9a59c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb277f5eef7e3622f89fc0806fa0440d7c7da8ebd313833b409570fd3f9a59c9", kill_on_drop: false }` [INFO] [stdout] eb277f5eef7e3622f89fc0806fa0440d7c7da8ebd313833b409570fd3f9a59c9