[INFO] cloning repository https://github.com/qfeys/LD41 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qfeys/LD41" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqfeys%2FLD41", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqfeys%2FLD41'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0aa8cb7d48a6fb0fb8f91e58004fe94d373586f7 [INFO] testing qfeys/LD41 against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqfeys%2FLD41" "/workspace/builds/worker-48/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-48/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/qfeys/LD41 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/qfeys/LD41 [INFO] finished tweaking git repo https://github.com/qfeys/LD41 [INFO] tweaked toml for git repo https://github.com/qfeys/LD41 written to /workspace/builds/worker-48/source/Cargo.toml [INFO] crate git repo https://github.com/qfeys/LD41 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 83d46d793405285e735c088999b8dc7f7f262c9b923266938a8d34e511b04c28 [INFO] running `Command { std: "docker" "start" "-a" "83d46d793405285e735c088999b8dc7f7f262c9b923266938a8d34e511b04c28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "83d46d793405285e735c088999b8dc7f7f262c9b923266938a8d34e511b04c28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83d46d793405285e735c088999b8dc7f7f262c9b923266938a8d34e511b04c28", kill_on_drop: false }` [INFO] [stdout] 83d46d793405285e735c088999b8dc7f7f262c9b923266938a8d34e511b04c28 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f58a741e5fc4f953123a02c9c7e1a56546468395a52e2e41508db63e7f1cb0f [INFO] running `Command { std: "docker" "start" "-a" "6f58a741e5fc4f953123a02c9c7e1a56546468395a52e2e41508db63e7f1cb0f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.40 [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Compiling lazy_static v1.0.0 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling khronos_api v2.2.0 [INFO] [stderr] Compiling cc v1.0.10 [INFO] [stderr] Compiling num-traits v0.2.2 [INFO] [stderr] Compiling nodrop v0.1.12 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling piston-float v0.3.0 [INFO] [stderr] Compiling byteorder v1.2.2 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling token_store v0.1.2 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling pkg-config v0.3.9 [INFO] [stderr] Compiling rayon-core v1.4.0 [INFO] [stderr] Compiling remove_dir_all v0.5.1 [INFO] [stderr] Compiling adler32 v1.0.2 [INFO] [stderr] Compiling shader_version v0.3.0 [INFO] [stderr] Compiling serde v1.0.41 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling stable_deref_trait v1.0.0 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling smallvec v0.6.0 [INFO] [stderr] Compiling regex v0.2.10 [INFO] [stderr] Compiling ucd-util v0.1.1 [INFO] [stderr] Compiling color_quant v1.0.0 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling read_color v1.0.0 [INFO] [stderr] Compiling interpolation v0.1.0 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling piston-texture v0.6.0 [INFO] [stderr] Compiling clock_ticks v0.1.1 [INFO] [stderr] Compiling piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Compiling unicode-width v0.1.4 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling crossbeam-utils v0.2.2 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling proc-macro2 v0.3.6 [INFO] [stderr] Compiling arrayvec v0.4.7 [INFO] [stderr] Compiling unreachable v0.1.1 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling piston-viewport v0.3.0 [INFO] [stderr] Compiling vecmath v0.3.1 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling memmap v0.6.2 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling shared_library v0.1.8 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling termios v0.2.2 [INFO] [stderr] Compiling clicolors-control v0.2.0 [INFO] [stderr] Compiling inflate v0.3.4 [INFO] [stderr] Compiling gif v0.9.2 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling x11-dl v2.17.5 [INFO] [stderr] Compiling regex-syntax v0.5.5 [INFO] [stderr] Compiling thread_local v0.3.5 [INFO] [stderr] Compiling wayland-scanner v0.12.5 [INFO] [stderr] Compiling deflate v0.7.18 [INFO] [stderr] Compiling stb_truetype v0.2.2 [INFO] [stderr] Compiling quote v0.5.1 [INFO] [stderr] Compiling crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling num-integer v0.1.36 [INFO] [stderr] Compiling aho-corasick v0.6.4 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling gl_generator v0.8.0 [INFO] [stderr] Compiling hprof v0.1.3 [INFO] [stderr] Compiling tempfile v3.0.1 [INFO] [stderr] Compiling parking_lot_core v0.2.13 [INFO] [stderr] Compiling rand v0.3.22 [INFO] [stderr] Compiling crossbeam-deque v0.2.0 [INFO] [stderr] Compiling syn v0.13.1 [INFO] [stderr] Compiling ordered-float v0.5.0 [INFO] [stderr] Compiling enum_primitive v0.1.1 [INFO] [stderr] Compiling wayland-client v0.12.5 [INFO] [stderr] Compiling wayland-protocols v0.12.5 [INFO] [stderr] Compiling parking_lot v0.5.4 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling rusttype v0.4.3 [INFO] [stderr] Compiling num-iter v0.1.35 [INFO] [stderr] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling png v0.11.0 [INFO] [stderr] Compiling piston2d-graphics v0.26.0 [INFO] [stderr] Compiling rayon v1.0.1 [INFO] [stderr] Compiling glutin v0.12.2 [INFO] [stderr] Compiling dlib v0.4.1 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Compiling wayland-sys v0.12.5 [INFO] [stderr] Compiling jpeg-decoder v0.1.14 [INFO] [stderr] Compiling console v0.6.1 [INFO] [stderr] Compiling serde_derive_internals v0.23.1 [INFO] [stderr] Compiling wayland-kbd v0.13.1 [INFO] [stderr] Compiling image v0.18.0 [INFO] [stderr] Compiling serde_derive v1.0.41 [INFO] [stderr] Compiling wayland-window v0.13.3 [INFO] [stderr] Compiling winit v0.10.0 [INFO] [stderr] Compiling pistoncore-input v0.20.0 [INFO] [stderr] Compiling piston2d-opengl_graphics v0.52.1 [INFO] [stderr] Compiling pistoncore-window v0.31.0 [INFO] [stderr] Compiling pistoncore-event_loop v0.36.0 [INFO] [stderr] Compiling pistoncore-glutin_window v0.45.3 [INFO] [stderr] Compiling piston v0.36.0 [INFO] [stderr] Compiling LD41 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::f64::*` [INFO] [stdout] --> src/drone/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::f64::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `unit_type` should have an upper camel case name [INFO] [stdout] --> src/drone/mod.rs:256:10 [INFO] [stdout] | [INFO] [stdout] 256 | pub enum unit_type { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `UnitType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/drone/mod.rs:11:46 [INFO] [stdout] | [INFO] [stdout] 11 | static OBJECT_COUNTER: AtomicUsize = atomic::ATOMIC_USIZE_INIT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated constant: `AtomicUsize::new(0)` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/map.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let mut total = ch_d.inhabitants.len(); [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | for mut d in &mut self.drones { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | for mut ai in &mut self.ais{ [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | for mut b in &mut self.bases { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | for mut d in &mut self.drones { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Evade` [INFO] [stdout] --> src/drone/mod.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 269 | Evade(usize, Pos, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Behaviour` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/drone/mod.rs:261:10 [INFO] [stdout] | [INFO] [stdout] 261 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `LD41` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `ld41` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/drone/mod.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | / ::std::mem::replace( [INFO] [stdout] 158 | | &mut self.behaviour, [INFO] [stdout] 159 | | Behaviour::Persue(closest.0, closest.2, Box::new(old_behafiour)), [INFO] [stdout] 160 | | ); [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 46.75s [INFO] running `Command { std: "docker" "inspect" "6f58a741e5fc4f953123a02c9c7e1a56546468395a52e2e41508db63e7f1cb0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f58a741e5fc4f953123a02c9c7e1a56546468395a52e2e41508db63e7f1cb0f", kill_on_drop: false }` [INFO] [stdout] 6f58a741e5fc4f953123a02c9c7e1a56546468395a52e2e41508db63e7f1cb0f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5dfeb060e218d749b19c210bbbb532d501d0489ec5d0bd0ebcfb9bd4d445df14 [INFO] running `Command { std: "docker" "start" "-a" "5dfeb060e218d749b19c210bbbb532d501d0489ec5d0bd0ebcfb9bd4d445df14", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling LD41 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::f64::*` [INFO] [stdout] --> src/drone/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::f64::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `unit_type` should have an upper camel case name [INFO] [stdout] --> src/drone/mod.rs:256:10 [INFO] [stdout] | [INFO] [stdout] 256 | pub enum unit_type { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `UnitType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/drone/mod.rs:11:46 [INFO] [stdout] | [INFO] [stdout] 11 | static OBJECT_COUNTER: AtomicUsize = atomic::ATOMIC_USIZE_INIT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated constant: `AtomicUsize::new(0)` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/map.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let mut total = ch_d.inhabitants.len(); [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | for mut d in &mut self.drones { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | for mut ai in &mut self.ais{ [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | for mut b in &mut self.bases { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:253:13 [INFO] [stdout] | [INFO] [stdout] 253 | for mut d in &mut self.drones { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Evade` [INFO] [stdout] --> src/drone/mod.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 269 | Evade(usize, Pos, Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Behaviour` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/drone/mod.rs:261:10 [INFO] [stdout] | [INFO] [stdout] 261 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `LD41` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `ld41` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/drone/mod.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | / ::std::mem::replace( [INFO] [stdout] 158 | | &mut self.behaviour, [INFO] [stdout] 159 | | Behaviour::Persue(closest.0, closest.2, Box::new(old_behafiour)), [INFO] [stdout] 160 | | ); [INFO] [stdout] | |__________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.69s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/LD41-44ff24b7293e539b) [INFO] running `Command { std: "docker" "inspect" "5dfeb060e218d749b19c210bbbb532d501d0489ec5d0bd0ebcfb9bd4d445df14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dfeb060e218d749b19c210bbbb532d501d0489ec5d0bd0ebcfb9bd4d445df14", kill_on_drop: false }` [INFO] [stdout] 5dfeb060e218d749b19c210bbbb532d501d0489ec5d0bd0ebcfb9bd4d445df14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5da3f698e226ae0b809e1818ed3f1e90be8c9781e58479c42cc327f838e17850 [INFO] running `Command { std: "docker" "start" "-a" "5da3f698e226ae0b809e1818ed3f1e90be8c9781e58479c42cc327f838e17850", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `std::f64::*` [INFO] [stderr] --> src/drone/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use std::f64::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `unit_type` should have an upper camel case name [INFO] [stderr] --> src/drone/mod.rs:256:10 [INFO] [stderr] | [INFO] [stderr] 256 | pub enum unit_type { [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to upper camel case: `UnitType` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred [INFO] [stderr] --> src/drone/mod.rs:11:46 [INFO] [stderr] | [INFO] [stderr] 11 | static OBJECT_COUNTER: AtomicUsize = atomic::ATOMIC_USIZE_INIT; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated constant: `AtomicUsize::new(0)` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/map.rs:90:17 [INFO] [stderr] | [INFO] [stderr] 90 | let mut total = ch_d.inhabitants.len(); [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/main.rs:201:13 [INFO] [stderr] | [INFO] [stderr] 201 | for mut d in &mut self.drones { [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/main.rs:213:13 [INFO] [stderr] | [INFO] [stderr] 213 | for mut ai in &mut self.ais{ [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/main.rs:219:13 [INFO] [stderr] | [INFO] [stderr] 219 | for mut b in &mut self.bases { [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/main.rs:253:13 [INFO] [stderr] | [INFO] [stderr] 253 | for mut d in &mut self.drones { [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Evade` [INFO] [stderr] --> src/drone/mod.rs:269:5 [INFO] [stderr] | [INFO] [stderr] 269 | Evade(usize, Pos, Box), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Behaviour` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/drone/mod.rs:261:10 [INFO] [stderr] | [INFO] [stderr] 261 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: crate `LD41` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] = help: convert the identifier to snake case: `ld41` [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/drone/mod.rs:157:25 [INFO] [stderr] | [INFO] [stderr] 157 | / ::std::mem::replace( [INFO] [stderr] 158 | | &mut self.behaviour, [INFO] [stderr] 159 | | Behaviour::Persue(closest.0, closest.2, Box::new(old_behafiour)), [INFO] [stderr] 160 | | ); [INFO] [stderr] | |__________________________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: `LD41` (bin "LD41" test) generated 11 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.45s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/LD41-44ff24b7293e539b) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5da3f698e226ae0b809e1818ed3f1e90be8c9781e58479c42cc327f838e17850", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5da3f698e226ae0b809e1818ed3f1e90be8c9781e58479c42cc327f838e17850", kill_on_drop: false }` [INFO] [stdout] 5da3f698e226ae0b809e1818ed3f1e90be8c9781e58479c42cc327f838e17850