[INFO] cloning repository https://github.com/ethanshry/Ant-Simulation [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ethanshry/Ant-Simulation" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fethanshry%2FAnt-Simulation", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fethanshry%2FAnt-Simulation'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2d5fe9c0de074d645a34438ba123b64179016655 [INFO] testing ethanshry/Ant-Simulation against master#0e21a27075a8c508f00d1a4430497f17ce93d5c9 for pr-98839 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fethanshry%2FAnt-Simulation" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ethanshry/Ant-Simulation on toolchain 0e21a27075a8c508f00d1a4430497f17ce93d5c9 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ethanshry/Ant-Simulation [INFO] finished tweaking git repo https://github.com/ethanshry/Ant-Simulation [INFO] tweaked toml for git repo https://github.com/ethanshry/Ant-Simulation written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/ethanshry/Ant-Simulation already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded backtrace v0.3.58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f83855d5f25706adde7e9346ff0edc95ba4b9b23068a4846496cd43e2d1074d1 [INFO] running `Command { std: "docker" "start" "-a" "f83855d5f25706adde7e9346ff0edc95ba4b9b23068a4846496cd43e2d1074d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f83855d5f25706adde7e9346ff0edc95ba4b9b23068a4846496cd43e2d1074d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f83855d5f25706adde7e9346ff0edc95ba4b9b23068a4846496cd43e2d1074d1", kill_on_drop: false }` [INFO] [stdout] f83855d5f25706adde7e9346ff0edc95ba4b9b23068a4846496cd43e2d1074d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f74ce39d6728060f4684aafee4f6232ed73187194a154c1810c6e77da8c35739 [INFO] running `Command { std: "docker" "start" "-a" "f74ce39d6728060f4684aafee4f6232ed73187194a154c1810c6e77da8c35739", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.71 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling xdg v2.2.0 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling pulldown-cmark v0.8.0 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling bytecount v0.6.2 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling xi-unicode v0.2.1 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling mint v0.5.6 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling hound v3.4.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling stb_truetype v0.3.1 [INFO] [stderr] Compiling ogg v0.7.1 [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling alsa-sys v0.1.2 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling matrixmultiply v0.2.4 [INFO] [stderr] Compiling gif v0.10.3 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling bzip2-sys v0.1.10+1.0.8 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling wayland-sys v0.21.13 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling draw_state v0.8.0 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling png v0.15.3 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling lewton v0.9.4 [INFO] [stderr] Compiling gfx_core v0.9.2 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling slice-deque v0.3.0 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling line_drawing v0.7.0 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling gfx v0.18.2 [INFO] [stderr] Compiling directories v2.0.2 [INFO] [stderr] Compiling cpal v0.8.2 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling minimp3 v0.3.5 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling bzip2 v0.3.3 [INFO] [stderr] Compiling sid v0.5.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling wayland-commons v0.21.13 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling alga v0.9.3 [INFO] [stderr] Compiling rusttype v0.8.3 [INFO] [stderr] Compiling gilrs-core v0.2.6 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling nalgebra v0.18.1 [INFO] [stderr] Compiling euclid_macros v0.1.0 [INFO] [stderr] Compiling smart-default v0.5.2 [INFO] [stderr] Compiling rusttype v0.7.9 [INFO] [stderr] Compiling glyph_brush_layout v0.1.9 [INFO] [stderr] Compiling gilrs v0.7.4 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling twox-hash v1.6.0 [INFO] [stderr] Compiling andrew v0.2.1 [INFO] [stderr] Compiling rand_distr v0.4.0 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling glyph_brush v0.6.3 [INFO] [stderr] Compiling glyph_brush v0.5.4 [INFO] [stderr] Compiling euclid v0.19.9 [INFO] [stderr] Compiling gfx_device_gl v0.16.2 [INFO] [stderr] Compiling lyon_geom v0.12.7 [INFO] [stderr] Compiling lyon_path v0.13.2 [INFO] [stderr] Compiling rodio v0.9.0 [INFO] [stderr] Compiling lyon_tessellation v0.13.5 [INFO] [stderr] Compiling lyon_algorithms v0.13.4 [INFO] [stderr] Compiling lyon v0.13.5 [INFO] [stderr] Compiling smithay-client-toolkit v0.4.6 [INFO] [stderr] Compiling tiff v0.3.1 [INFO] [stderr] Compiling image v0.22.5 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling zip v0.5.12 [INFO] [stderr] Compiling winit v0.19.5 [INFO] [stderr] Compiling glutin v0.20.1 [INFO] [stderr] Compiling gfx_window_glutin v0.30.0 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling cargo-platform v0.1.1 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling cargo_metadata v0.12.3 [INFO] [stderr] Compiling skeptic v0.13.6 [INFO] [stderr] Compiling ggez v0.5.1 [INFO] [stderr] Compiling ants v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `MeshBuilder`, `Mesh` [INFO] [stdout] --> src/main.rs:12:45 [INFO] [stdout] | [INFO] [stdout] 12 | graphics::{GlBackendSpec, ImageGeneric, Mesh, MeshBuilder}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand_distr::Normal` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand_distr::Normal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::scent::Scent` [INFO] [stdout] --> src/ant.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::scent::Scent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bounded` [INFO] [stdout] --> src/ant.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{coordinate::Coordinate, Bounded}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `navigable::Navigable` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use navigable::Navigable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/ant.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(drain_filter)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/ant.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(destructuring_assignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/coordinate.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(drain_filter)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/coordinate.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(destructuring_assignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/scent.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(drain_filter)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/scent.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(destructuring_assignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `destructuring_assignment` has been stable since 1.59.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(destructuring_assignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist` [INFO] [stdout] --> src/coordinate.rs:106:57 [INFO] [stdout] | [INFO] [stdout] 106 | fn get_nearest(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/coordinate.rs:106:68 [INFO] [stdout] | [INFO] [stdout] 106 | fn get_nearest(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist` [INFO] [stdout] --> src/coordinate.rs:118:63 [INFO] [stdout] | [INFO] [stdout] 118 | fn get_avg_direction(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> f32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `final_dir` is never read [INFO] [stdout] --> src/coordinate.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let mut final_dir = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/coordinate.rs:138:68 [INFO] [stdout] | [INFO] [stdout] 138 | fn get_nearest(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist` [INFO] [stdout] --> src/coordinate.rs:178:63 [INFO] [stdout] | [INFO] [stdout] 178 | fn get_avg_direction(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> f32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/scent.rs:29:68 [INFO] [stdout] | [INFO] [stdout] 29 | fn get_nearest(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist` [INFO] [stdout] --> src/scent.rs:69:63 [INFO] [stdout] | [INFO] [stdout] 69 | fn get_avg_direction(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> f32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ANT_DETECTION_RANGE` is never used [INFO] [stdout] --> src/main.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const ANT_DETECTION_RANGE: f32 = 50.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SCENT_LIFE` is never used [INFO] [stdout] --> src/ant.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const SCENT_LIFE: u32 = 300; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOME_SIZE` is never used [INFO] [stdout] --> src/ant.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const HOME_SIZE: f32 = 25.0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `X_SIZE` is never used [INFO] [stdout] --> src/ant.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const X_SIZE: f32 = 500.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Y_SIZE` is never used [INFO] [stdout] --> src/ant.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const Y_SIZE: f32 = 500.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Y_SIZE` is never used [INFO] [stdout] --> src/coordinate.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const Y_SIZE: f32 = 500.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `enforce_bounds` is never used [INFO] [stdout] --> src/coordinate.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn enforce_bounds(&mut self, x_low: f32, x_high: f32, y_low: f32, y_high: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [optimized + debuginfo] target(s) in 2m 05s [INFO] running `Command { std: "docker" "inspect" "f74ce39d6728060f4684aafee4f6232ed73187194a154c1810c6e77da8c35739", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f74ce39d6728060f4684aafee4f6232ed73187194a154c1810c6e77da8c35739", kill_on_drop: false }` [INFO] [stdout] f74ce39d6728060f4684aafee4f6232ed73187194a154c1810c6e77da8c35739 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f99e28890aafc17f4170cd06cd5f493a834f318f5af3ca1f72f7d4817c9ac5b [INFO] running `Command { std: "docker" "start" "-a" "1f99e28890aafc17f4170cd06cd5f493a834f318f5af3ca1f72f7d4817c9ac5b", kill_on_drop: false }` [INFO] [stderr] Compiling ants v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `MeshBuilder`, `Mesh` [INFO] [stdout] --> src/main.rs:12:45 [INFO] [stdout] | [INFO] [stdout] 12 | graphics::{GlBackendSpec, ImageGeneric, Mesh, MeshBuilder}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand_distr::Normal` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand_distr::Normal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::scent::Scent` [INFO] [stdout] --> src/ant.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::scent::Scent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bounded` [INFO] [stdout] --> src/ant.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{coordinate::Coordinate, Bounded}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `navigable::Navigable` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use navigable::Navigable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/ant.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(drain_filter)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/ant.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(destructuring_assignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/coordinate.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(drain_filter)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/coordinate.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(destructuring_assignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/scent.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(drain_filter)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/scent.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(destructuring_assignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `destructuring_assignment` has been stable since 1.59.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(destructuring_assignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist` [INFO] [stdout] --> src/coordinate.rs:106:57 [INFO] [stdout] | [INFO] [stdout] 106 | fn get_nearest(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/coordinate.rs:106:68 [INFO] [stdout] | [INFO] [stdout] 106 | fn get_nearest(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist` [INFO] [stdout] --> src/coordinate.rs:118:63 [INFO] [stdout] | [INFO] [stdout] 118 | fn get_avg_direction(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> f32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `final_dir` is never read [INFO] [stdout] --> src/coordinate.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | let mut final_dir = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/coordinate.rs:138:68 [INFO] [stdout] | [INFO] [stdout] 138 | fn get_nearest(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist` [INFO] [stdout] --> src/coordinate.rs:178:63 [INFO] [stdout] | [INFO] [stdout] 178 | fn get_avg_direction(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> f32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/scent.rs:29:68 [INFO] [stdout] | [INFO] [stdout] 29 | fn get_nearest(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist` [INFO] [stdout] --> src/scent.rs:69:63 [INFO] [stdout] | [INFO] [stdout] 69 | fn get_avg_direction(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> f32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ANT_DETECTION_RANGE` is never used [INFO] [stdout] --> src/main.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const ANT_DETECTION_RANGE: f32 = 50.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SCENT_LIFE` is never used [INFO] [stdout] --> src/ant.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const SCENT_LIFE: u32 = 300; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOME_SIZE` is never used [INFO] [stdout] --> src/ant.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const HOME_SIZE: f32 = 25.0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `X_SIZE` is never used [INFO] [stdout] --> src/ant.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const X_SIZE: f32 = 500.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Y_SIZE` is never used [INFO] [stdout] --> src/ant.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const Y_SIZE: f32 = 500.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Y_SIZE` is never used [INFO] [stdout] --> src/coordinate.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const Y_SIZE: f32 = 500.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `enforce_bounds` is never used [INFO] [stdout] --> src/coordinate.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn enforce_bounds(&mut self, x_low: f32, x_high: f32, y_low: f32, y_high: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [optimized + debuginfo] target(s) in 4.99s [INFO] running `Command { std: "docker" "inspect" "1f99e28890aafc17f4170cd06cd5f493a834f318f5af3ca1f72f7d4817c9ac5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f99e28890aafc17f4170cd06cd5f493a834f318f5af3ca1f72f7d4817c9ac5b", kill_on_drop: false }` [INFO] [stdout] 1f99e28890aafc17f4170cd06cd5f493a834f318f5af3ca1f72f7d4817c9ac5b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a77f85f99ba7a632634d964734fe63375e73cc9765d3558f8381bb7034d5fc79 [INFO] running `Command { std: "docker" "start" "-a" "a77f85f99ba7a632634d964734fe63375e73cc9765d3558f8381bb7034d5fc79", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `MeshBuilder`, `Mesh` [INFO] [stderr] --> src/main.rs:12:45 [INFO] [stderr] | [INFO] [stderr] 12 | graphics::{GlBackendSpec, ImageGeneric, Mesh, MeshBuilder}, [INFO] [stderr] | ^^^^ ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand_distr::Normal` [INFO] [stderr] --> src/main.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use rand_distr::Normal; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::scent::Scent` [INFO] [stderr] --> src/ant.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::scent::Scent; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Bounded` [INFO] [stderr] --> src/ant.rs:6:37 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::{coordinate::Coordinate, Bounded}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `navigable::Navigable` [INFO] [stderr] --> src/main.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | use navigable::Navigable; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate-level attribute should be in the root module [INFO] [stderr] --> src/ant.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(drain_filter)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_attributes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: crate-level attribute should be in the root module [INFO] [stderr] --> src/ant.rs:2:1 [INFO] [stderr] | [INFO] [stderr] 2 | #![feature(destructuring_assignment)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate-level attribute should be in the root module [INFO] [stderr] --> src/coordinate.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(drain_filter)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate-level attribute should be in the root module [INFO] [stderr] --> src/coordinate.rs:2:1 [INFO] [stderr] | [INFO] [stderr] 2 | #![feature(destructuring_assignment)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate-level attribute should be in the root module [INFO] [stderr] --> src/scent.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(drain_filter)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate-level attribute should be in the root module [INFO] [stderr] --> src/scent.rs:2:1 [INFO] [stderr] | [INFO] [stderr] 2 | #![feature(destructuring_assignment)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the feature `destructuring_assignment` has been stable since 1.59.0 and no longer requires an attribute to enable [INFO] [stderr] --> src/main.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | #![feature(destructuring_assignment)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(stable_features)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dist` [INFO] [stderr] --> src/coordinate.rs:106:57 [INFO] [stderr] | [INFO] [stderr] 106 | fn get_nearest(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> Option { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dir` [INFO] [stderr] --> src/coordinate.rs:106:68 [INFO] [stderr] | [INFO] [stderr] 106 | fn get_nearest(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> Option { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dist` [INFO] [stderr] --> src/coordinate.rs:118:63 [INFO] [stderr] | [INFO] [stderr] 118 | fn get_avg_direction(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> f32 { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `final_dir` is never read [INFO] [stderr] --> src/coordinate.rs:140:17 [INFO] [stderr] | [INFO] [stderr] 140 | let mut final_dir = None; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dir` [INFO] [stderr] --> src/coordinate.rs:138:68 [INFO] [stderr] | [INFO] [stderr] 138 | fn get_nearest(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> Option { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dist` [INFO] [stderr] --> src/coordinate.rs:178:63 [INFO] [stderr] | [INFO] [stderr] 178 | fn get_avg_direction(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> f32 { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dir` [INFO] [stderr] --> src/scent.rs:29:68 [INFO] [stderr] | [INFO] [stderr] 29 | fn get_nearest(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> Option { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dist` [INFO] [stderr] --> src/scent.rs:69:63 [INFO] [stderr] | [INFO] [stderr] 69 | fn get_avg_direction(&self, pos: &Coordinate, range: f32, dist: f32, dir: f32) -> f32 { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stderr] [INFO] [stderr] warning: constant `ANT_DETECTION_RANGE` is never used [INFO] [stderr] --> src/main.rs:29:7 [INFO] [stderr] | [INFO] [stderr] 29 | const ANT_DETECTION_RANGE: f32 = 50.0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `SCENT_LIFE` is never used [INFO] [stderr] --> src/ant.rs:11:7 [INFO] [stderr] | [INFO] [stderr] 11 | const SCENT_LIFE: u32 = 300; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `HOME_SIZE` is never used [INFO] [stderr] --> src/ant.rs:13:7 [INFO] [stderr] | [INFO] [stderr] 13 | const HOME_SIZE: f32 = 25.0; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `X_SIZE` is never used [INFO] [stderr] --> src/ant.rs:15:7 [INFO] [stderr] | [INFO] [stderr] 15 | const X_SIZE: f32 = 500.0; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `Y_SIZE` is never used [INFO] [stderr] --> src/ant.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | const Y_SIZE: f32 = 500.0; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `Y_SIZE` is never used [INFO] [stderr] --> src/coordinate.rs:10:7 [INFO] [stderr] | [INFO] [stderr] 10 | const Y_SIZE: f32 = 500.0; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `enforce_bounds` is never used [INFO] [stderr] --> src/coordinate.rs:40:12 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn enforce_bounds(&mut self, x_low: f32, x_high: f32, y_low: f32, y_high: f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `ants` (bin "ants" test) generated 27 warnings [INFO] [stderr] Finished test [optimized + debuginfo] target(s) in 0.58s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ants-4eaac207a437f04e) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test coordinate::coordinate_direction ... ok [INFO] [stdout] test coordinate::coordinate_distance ... ok [INFO] [stdout] test coordinate::coordinate_traverse ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a77f85f99ba7a632634d964734fe63375e73cc9765d3558f8381bb7034d5fc79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a77f85f99ba7a632634d964734fe63375e73cc9765d3558f8381bb7034d5fc79", kill_on_drop: false }` [INFO] [stdout] a77f85f99ba7a632634d964734fe63375e73cc9765d3558f8381bb7034d5fc79