[INFO] cloning repository https://github.com/chriswininger/rust-wasm-dla [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chriswininger/rust-wasm-dla" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchriswininger%2Frust-wasm-dla", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchriswininger%2Frust-wasm-dla'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 462f6b814b29d16114b7fb589c60a99070631811 [INFO] testing chriswininger/rust-wasm-dla against 1.85.0 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchriswininger%2Frust-wasm-dla" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/chriswininger/rust-wasm-dla on toolchain 1.85.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/chriswininger/rust-wasm-dla [INFO] finished tweaking git repo https://github.com/chriswininger/rust-wasm-dla [INFO] tweaked toml for git repo https://github.com/chriswininger/rust-wasm-dla written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/chriswininger/rust-wasm-dla 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" "+1.85.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v1.0.22 [INFO] [stderr] Downloaded proc-macro2 v1.0.13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a9728eef28e9a3a4251333c4d0cef70de504880323287fad5325cf964fa7a965 [INFO] running `Command { std: "docker" "start" "-a" "a9728eef28e9a3a4251333c4d0cef70de504880323287fad5325cf964fa7a965", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a9728eef28e9a3a4251333c4d0cef70de504880323287fad5325cf964fa7a965", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9728eef28e9a3a4251333c4d0cef70de504880323287fad5325cf964fa7a965", kill_on_drop: false }` [INFO] [stdout] a9728eef28e9a3a4251333c4d0cef70de504880323287fad5325cf964fa7a965 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ca9b89bdbac4698f1ee6341684d174442f64e4dc0b66a43c5ae04b6ea00c041d [INFO] running `Command { std: "docker" "start" "-a" "ca9b89bdbac4698f1ee6341684d174442f64e4dc0b66a43c5ae04b6ea00c041d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.13 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.22 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.62 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling bumpalo v3.3.0 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Compiling wasm-bindgen v0.2.62 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.62 [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.62 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.62 [INFO] [stderr] Compiling serde_json v1.0.53 [INFO] [stderr] Compiling js-sys v0.3.39 [INFO] [stderr] Compiling console_error_panic_hook v0.1.6 [INFO] [stderr] Compiling web-sys v0.3.39 [INFO] [stderr] Compiling wasm-rust-dla v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/field_position.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ArrayIter` [INFO] [stdout] --> src/lib.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | use js_sys::{Math, Array, ArrayIter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromWasmAbi` and `WasmAbi` [INFO] [stdout] --> src/lib.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | use wasm_bindgen::convert::{FromWasmAbi, WasmAbi}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:479:21 [INFO] [stdout] | [INFO] [stdout] 479 | let y = (ndx % width); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 479 - let y = (ndx % width); [INFO] [stdout] 479 + let y = ndx % width; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:480:21 [INFO] [stdout] | [INFO] [stdout] 480 | let x = (ndx / height); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 480 - let x = (ndx / height); [INFO] [stdout] 480 + let x = ndx / height; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lib.rs:314:25 [INFO] [stdout] | [INFO] [stdout] 314 | return match agent.sticky_neighbor { [INFO] [stdout] | __________________________^ - [INFO] [stdout] | | ________________________________| [INFO] [stdout] 315 | || None => return (true, None), // already stuck, no neighbor [INFO] [stdout] 316 | || Some(position) => { [INFO] [stdout] ... || [INFO] [stdout] 320 | || } [INFO] [stdout] | || ^ [INFO] [stdout] | ||_________________________| [INFO] [stdout] | |_________________________unreachable expression [INFO] [stdout] | any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | for i in 0..num_agents { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ndx` [INFO] [stdout] --> src/lib.rs:84:34 [INFO] [stdout] | [INFO] [stdout] 84 | (0..width * height).map(|ndx| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ndx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cntStuck` [INFO] [stdout] --> src/lib.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | let mut cntStuck = 0; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cntStuck` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let mut cntStuck = 0; [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: unused variable: `new_agent_ndx` [INFO] [stdout] --> src/lib.rs:280:9 [INFO] [stdout] | [INFO] [stdout] 280 | new_agent_ndx: usize [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_agent_ndx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_agent_at_borrow`, `find_agent_at_coordinate`, `agent_iterator`, and `isEmpty` are never used [INFO] [stdout] --> src/lib.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 130 | impl DLAField { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 147 | fn get_agent_at_borrow(&mut self, ndx: usize) -> &mut ColorizedPoint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | fn find_agent_at_coordinate(&self, x: usize, y: usize) -> Option<&ColorizedPoint> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | fn agent_iterator(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 400 | fn isEmpty(&self, x: u32, y: u32) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generateEmptyPositionHash` should have a snake case name [INFO] [stdout] --> src/lib.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn generateEmptyPositionHash(width: usize, height: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `generate_empty_position_hash` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isPositionOccupied` should have a snake case name [INFO] [stdout] --> src/lib.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn isPositionOccupied(positionHash: &Vec, x: usize, y: usize, width: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_position_occupied` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `positionHash` should have a snake case name [INFO] [stdout] --> src/lib.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | fn isPositionOccupied(positionHash: &Vec, x: usize, y: usize, width: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `castMin` should have a snake case name [INFO] [stdout] --> src/lib.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let castMin = min as f64; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `cast_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `castMax` should have a snake case name [INFO] [stdout] --> src/lib.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let castMax = max as f64; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `cast_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cntStuck` should have a snake case name [INFO] [stdout] --> src/lib.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | let mut cntStuck = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `cnt_stuck` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findNextPosition` should have a snake case name [INFO] [stdout] --> src/lib.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 233 | fn findNextPosition(&self, x: usize, y: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_next_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newX` should have a snake case name [INFO] [stdout] --> src/lib.rs:239:17 [INFO] [stdout] | [INFO] [stdout] 239 | let mut newX = if DLAField::gen_bool(0.5) { x + 1 } else { x - 1 }; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `new_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newY` should have a snake case name [INFO] [stdout] --> src/lib.rs:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | let mut newY = if DLAField::gen_bool(0.75) { y + 1 } else { y - 1 }; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `new_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `attemptCount` should have a snake case name [INFO] [stdout] --> src/lib.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | let mut attemptCount = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `attempt_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isEmpty` should have a snake case name [INFO] [stdout] --> src/lib.rs:400:8 [INFO] [stdout] | [INFO] [stdout] 400 | fn isEmpty(&self, x: u32, y: u32) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOccpupiedCount` should have a snake case name [INFO] [stdout] --> src/lib.rs:410:12 [INFO] [stdout] | [INFO] [stdout] 410 | pub fn getOccpupiedCount(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_occpupied_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getStuckCount` should have a snake case name [INFO] [stdout] --> src/lib.rs:433:12 [INFO] [stdout] | [INFO] [stdout] 433 | pub fn getStuckCount(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_stuck_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stuckSize` should have a snake case name [INFO] [stdout] --> src/lib.rs:458:13 [INFO] [stdout] | [INFO] [stdout] 458 | let stuckSize = 1.0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `stuck_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `seedSize` should have a snake case name [INFO] [stdout] --> src/lib.rs:459:13 [INFO] [stdout] | [INFO] [stdout] 459 | let seedSize = 1.0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `seed_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_StickyNeighbor` [INFO] [stdout] 5 | pub struct StickyNeighbor { [INFO] [stdout] | -------------- `StickyNeighbor` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:4:56 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_StickyNeighbor` [INFO] [stdout] 5 | pub struct StickyNeighbor { [INFO] [stdout] | -------------- `StickyNeighbor` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:19:45 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_AgentState` [INFO] [stdout] 20 | pub enum AgentState { [INFO] [stdout] | ---------- `AgentState` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:19:56 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_AgentState` [INFO] [stdout] 20 | pub enum AgentState { [INFO] [stdout] | ---------- `AgentState` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Color` [INFO] [stdout] 27 | pub struct Color { [INFO] [stdout] | ----- `Color` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:26:56 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Color` [INFO] [stdout] 27 | pub struct Color { [INFO] [stdout] | ----- `Color` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:60:45 [INFO] [stdout] | [INFO] [stdout] 60 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_ColorizedPoint` [INFO] [stdout] 61 | pub struct ColorizedPoint { [INFO] [stdout] | -------------- `ColorizedPoint` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:60:56 [INFO] [stdout] | [INFO] [stdout] 60 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ColorizedPoint` [INFO] [stdout] 61 | pub struct ColorizedPoint { [INFO] [stdout] | -------------- `ColorizedPoint` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.34s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.62 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "ca9b89bdbac4698f1ee6341684d174442f64e4dc0b66a43c5ae04b6ea00c041d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca9b89bdbac4698f1ee6341684d174442f64e4dc0b66a43c5ae04b6ea00c041d", kill_on_drop: false }` [INFO] [stdout] ca9b89bdbac4698f1ee6341684d174442f64e4dc0b66a43c5ae04b6ea00c041d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d44d69dc1efa8b0867df7f08e2dd600f44742570964fb8fc9bf24b7f92055d78 [INFO] running `Command { std: "docker" "start" "-a" "d44d69dc1efa8b0867df7f08e2dd600f44742570964fb8fc9bf24b7f92055d78", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling futures v0.1.29 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/field_position.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ArrayIter` [INFO] [stdout] --> src/lib.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | use js_sys::{Math, Array, ArrayIter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromWasmAbi` and `WasmAbi` [INFO] [stdout] --> src/lib.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | use wasm_bindgen::convert::{FromWasmAbi, WasmAbi}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:479:21 [INFO] [stdout] | [INFO] [stdout] 479 | let y = (ndx % width); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 479 - let y = (ndx % width); [INFO] [stdout] 479 + let y = ndx % width; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:480:21 [INFO] [stdout] | [INFO] [stdout] 480 | let x = (ndx / height); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 480 - let x = (ndx / height); [INFO] [stdout] 480 + let x = ndx / height; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lib.rs:314:25 [INFO] [stdout] | [INFO] [stdout] 314 | return match agent.sticky_neighbor { [INFO] [stdout] | __________________________^ - [INFO] [stdout] | | ________________________________| [INFO] [stdout] 315 | || None => return (true, None), // already stuck, no neighbor [INFO] [stdout] 316 | || Some(position) => { [INFO] [stdout] ... || [INFO] [stdout] 320 | || } [INFO] [stdout] | || ^ [INFO] [stdout] | ||_________________________| [INFO] [stdout] | |_________________________unreachable expression [INFO] [stdout] | any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | for i in 0..num_agents { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ndx` [INFO] [stdout] --> src/lib.rs:84:34 [INFO] [stdout] | [INFO] [stdout] 84 | (0..width * height).map(|ndx| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ndx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cntStuck` [INFO] [stdout] --> src/lib.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | let mut cntStuck = 0; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cntStuck` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let mut cntStuck = 0; [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: unused variable: `new_agent_ndx` [INFO] [stdout] --> src/lib.rs:280:9 [INFO] [stdout] | [INFO] [stdout] 280 | new_agent_ndx: usize [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_agent_ndx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_agent_at_borrow`, `find_agent_at_coordinate`, `agent_iterator`, and `isEmpty` are never used [INFO] [stdout] --> src/lib.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 130 | impl DLAField { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 147 | fn get_agent_at_borrow(&mut self, ndx: usize) -> &mut ColorizedPoint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | fn find_agent_at_coordinate(&self, x: usize, y: usize) -> Option<&ColorizedPoint> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | fn agent_iterator(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 400 | fn isEmpty(&self, x: u32, y: u32) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generateEmptyPositionHash` should have a snake case name [INFO] [stdout] --> src/lib.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn generateEmptyPositionHash(width: usize, height: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `generate_empty_position_hash` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isPositionOccupied` should have a snake case name [INFO] [stdout] --> src/lib.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn isPositionOccupied(positionHash: &Vec, x: usize, y: usize, width: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_position_occupied` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `positionHash` should have a snake case name [INFO] [stdout] --> src/lib.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | fn isPositionOccupied(positionHash: &Vec, x: usize, y: usize, width: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `castMin` should have a snake case name [INFO] [stdout] --> src/lib.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let castMin = min as f64; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `cast_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `castMax` should have a snake case name [INFO] [stdout] --> src/lib.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let castMax = max as f64; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `cast_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cntStuck` should have a snake case name [INFO] [stdout] --> src/lib.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | let mut cntStuck = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `cnt_stuck` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findNextPosition` should have a snake case name [INFO] [stdout] --> src/lib.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 233 | fn findNextPosition(&self, x: usize, y: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_next_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newX` should have a snake case name [INFO] [stdout] --> src/lib.rs:239:17 [INFO] [stdout] | [INFO] [stdout] 239 | let mut newX = if DLAField::gen_bool(0.5) { x + 1 } else { x - 1 }; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `new_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newY` should have a snake case name [INFO] [stdout] --> src/lib.rs:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | let mut newY = if DLAField::gen_bool(0.75) { y + 1 } else { y - 1 }; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `new_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `attemptCount` should have a snake case name [INFO] [stdout] --> src/lib.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | let mut attemptCount = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `attempt_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isEmpty` should have a snake case name [INFO] [stdout] --> src/lib.rs:400:8 [INFO] [stdout] | [INFO] [stdout] 400 | fn isEmpty(&self, x: u32, y: u32) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOccpupiedCount` should have a snake case name [INFO] [stdout] --> src/lib.rs:410:12 [INFO] [stdout] | [INFO] [stdout] 410 | pub fn getOccpupiedCount(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_occpupied_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getStuckCount` should have a snake case name [INFO] [stdout] --> src/lib.rs:433:12 [INFO] [stdout] | [INFO] [stdout] 433 | pub fn getStuckCount(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_stuck_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stuckSize` should have a snake case name [INFO] [stdout] --> src/lib.rs:458:13 [INFO] [stdout] | [INFO] [stdout] 458 | let stuckSize = 1.0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `stuck_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `seedSize` should have a snake case name [INFO] [stdout] --> src/lib.rs:459:13 [INFO] [stdout] | [INFO] [stdout] 459 | let seedSize = 1.0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `seed_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_StickyNeighbor` [INFO] [stdout] 5 | pub struct StickyNeighbor { [INFO] [stdout] | -------------- `StickyNeighbor` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:4:56 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_StickyNeighbor` [INFO] [stdout] 5 | pub struct StickyNeighbor { [INFO] [stdout] | -------------- `StickyNeighbor` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:19:45 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_AgentState` [INFO] [stdout] 20 | pub enum AgentState { [INFO] [stdout] | ---------- `AgentState` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:19:56 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_AgentState` [INFO] [stdout] 20 | pub enum AgentState { [INFO] [stdout] | ---------- `AgentState` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Color` [INFO] [stdout] 27 | pub struct Color { [INFO] [stdout] | ----- `Color` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:26:56 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Color` [INFO] [stdout] 27 | pub struct Color { [INFO] [stdout] | ----- `Color` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:60:45 [INFO] [stdout] | [INFO] [stdout] 60 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_ColorizedPoint` [INFO] [stdout] 61 | pub struct ColorizedPoint { [INFO] [stdout] | -------------- `ColorizedPoint` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:60:56 [INFO] [stdout] | [INFO] [stdout] 60 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ColorizedPoint` [INFO] [stdout] 61 | pub struct ColorizedPoint { [INFO] [stdout] | -------------- `ColorizedPoint` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.2.50 [INFO] [stderr] Compiling wasm-bindgen-futures v0.3.27 [INFO] [stderr] Compiling wasm-bindgen-test v0.2.50 [INFO] [stderr] Compiling wasm-rust-dla v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/field_position.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ArrayIter` [INFO] [stdout] --> src/lib.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | use js_sys::{Math, Array, ArrayIter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromWasmAbi` and `WasmAbi` [INFO] [stdout] --> src/lib.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | use wasm_bindgen::convert::{FromWasmAbi, WasmAbi}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:479:21 [INFO] [stdout] | [INFO] [stdout] 479 | let y = (ndx % width); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 479 - let y = (ndx % width); [INFO] [stdout] 479 + let y = ndx % width; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:480:21 [INFO] [stdout] | [INFO] [stdout] 480 | let x = (ndx / height); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 480 - let x = (ndx / height); [INFO] [stdout] 480 + let x = ndx / height; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lib.rs:314:25 [INFO] [stdout] | [INFO] [stdout] 314 | return match agent.sticky_neighbor { [INFO] [stdout] | __________________________^ - [INFO] [stdout] | | ________________________________| [INFO] [stdout] 315 | || None => return (true, None), // already stuck, no neighbor [INFO] [stdout] 316 | || Some(position) => { [INFO] [stdout] ... || [INFO] [stdout] 320 | || } [INFO] [stdout] | || ^ [INFO] [stdout] | ||_________________________| [INFO] [stdout] | |_________________________unreachable expression [INFO] [stdout] | any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | for i in 0..num_agents { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ndx` [INFO] [stdout] --> src/lib.rs:84:34 [INFO] [stdout] | [INFO] [stdout] 84 | (0..width * height).map(|ndx| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ndx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cntStuck` [INFO] [stdout] --> src/lib.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | let mut cntStuck = 0; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cntStuck` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let mut cntStuck = 0; [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: unused variable: `new_agent_ndx` [INFO] [stdout] --> src/lib.rs:280:9 [INFO] [stdout] | [INFO] [stdout] 280 | new_agent_ndx: usize [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_agent_ndx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_agent_at_borrow`, `find_agent_at_coordinate`, `agent_iterator`, and `isEmpty` are never used [INFO] [stdout] --> src/lib.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 130 | impl DLAField { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 147 | fn get_agent_at_borrow(&mut self, ndx: usize) -> &mut ColorizedPoint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | fn find_agent_at_coordinate(&self, x: usize, y: usize) -> Option<&ColorizedPoint> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | fn agent_iterator(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 400 | fn isEmpty(&self, x: u32, y: u32) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generateEmptyPositionHash` should have a snake case name [INFO] [stdout] --> src/lib.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn generateEmptyPositionHash(width: usize, height: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `generate_empty_position_hash` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isPositionOccupied` should have a snake case name [INFO] [stdout] --> src/lib.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn isPositionOccupied(positionHash: &Vec, x: usize, y: usize, width: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_position_occupied` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `positionHash` should have a snake case name [INFO] [stdout] --> src/lib.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | fn isPositionOccupied(positionHash: &Vec, x: usize, y: usize, width: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `castMin` should have a snake case name [INFO] [stdout] --> src/lib.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let castMin = min as f64; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `cast_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `castMax` should have a snake case name [INFO] [stdout] --> src/lib.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let castMax = max as f64; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `cast_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cntStuck` should have a snake case name [INFO] [stdout] --> src/lib.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | let mut cntStuck = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `cnt_stuck` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findNextPosition` should have a snake case name [INFO] [stdout] --> src/lib.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 233 | fn findNextPosition(&self, x: usize, y: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_next_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newX` should have a snake case name [INFO] [stdout] --> src/lib.rs:239:17 [INFO] [stdout] | [INFO] [stdout] 239 | let mut newX = if DLAField::gen_bool(0.5) { x + 1 } else { x - 1 }; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `new_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newY` should have a snake case name [INFO] [stdout] --> src/lib.rs:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | let mut newY = if DLAField::gen_bool(0.75) { y + 1 } else { y - 1 }; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `new_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `attemptCount` should have a snake case name [INFO] [stdout] --> src/lib.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | let mut attemptCount = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `attempt_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isEmpty` should have a snake case name [INFO] [stdout] --> src/lib.rs:400:8 [INFO] [stdout] | [INFO] [stdout] 400 | fn isEmpty(&self, x: u32, y: u32) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOccpupiedCount` should have a snake case name [INFO] [stdout] --> src/lib.rs:410:12 [INFO] [stdout] | [INFO] [stdout] 410 | pub fn getOccpupiedCount(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_occpupied_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getStuckCount` should have a snake case name [INFO] [stdout] --> src/lib.rs:433:12 [INFO] [stdout] | [INFO] [stdout] 433 | pub fn getStuckCount(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_stuck_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stuckSize` should have a snake case name [INFO] [stdout] --> src/lib.rs:458:13 [INFO] [stdout] | [INFO] [stdout] 458 | let stuckSize = 1.0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `stuck_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `seedSize` should have a snake case name [INFO] [stdout] --> src/lib.rs:459:13 [INFO] [stdout] | [INFO] [stdout] 459 | let seedSize = 1.0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `seed_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_StickyNeighbor` [INFO] [stdout] 5 | pub struct StickyNeighbor { [INFO] [stdout] | -------------- `StickyNeighbor` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:4:56 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_StickyNeighbor` [INFO] [stdout] 5 | pub struct StickyNeighbor { [INFO] [stdout] | -------------- `StickyNeighbor` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:19:45 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_AgentState` [INFO] [stdout] 20 | pub enum AgentState { [INFO] [stdout] | ---------- `AgentState` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:19:56 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_AgentState` [INFO] [stdout] 20 | pub enum AgentState { [INFO] [stdout] | ---------- `AgentState` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Color` [INFO] [stdout] 27 | pub struct Color { [INFO] [stdout] | ----- `Color` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:26:56 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Color` [INFO] [stdout] 27 | pub struct Color { [INFO] [stdout] | ----- `Color` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:60:45 [INFO] [stdout] | [INFO] [stdout] 60 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_ColorizedPoint` [INFO] [stdout] 61 | pub struct ColorizedPoint { [INFO] [stdout] | -------------- `ColorizedPoint` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/colorized_point.rs:60:56 [INFO] [stdout] | [INFO] [stdout] 60 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ColorizedPoint` [INFO] [stdout] 61 | pub struct ColorizedPoint { [INFO] [stdout] | -------------- `ColorizedPoint` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.94s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.62 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "d44d69dc1efa8b0867df7f08e2dd600f44742570964fb8fc9bf24b7f92055d78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d44d69dc1efa8b0867df7f08e2dd600f44742570964fb8fc9bf24b7f92055d78", kill_on_drop: false }` [INFO] [stdout] d44d69dc1efa8b0867df7f08e2dd600f44742570964fb8fc9bf24b7f92055d78 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 77b6812092735f59060c8aeff0b89389ea18cfae63b614000cf9b467d62e49e3 [INFO] running `Command { std: "docker" "start" "-a" "77b6812092735f59060c8aeff0b89389ea18cfae63b614000cf9b467d62e49e3", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stderr] --> src/field_position.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use wasm_bindgen::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `ArrayIter` [INFO] [stderr] --> src/lib.rs:12:27 [INFO] [stderr] | [INFO] [stderr] 12 | use js_sys::{Math, Array, ArrayIter}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FromWasmAbi` and `WasmAbi` [INFO] [stderr] --> src/lib.rs:14:29 [INFO] [stderr] | [INFO] [stderr] 14 | use wasm_bindgen::convert::{FromWasmAbi, WasmAbi}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stderr] --> src/lib.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use wasm_bindgen::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/lib.rs:479:21 [INFO] [stderr] | [INFO] [stderr] 479 | let y = (ndx % width); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 479 - let y = (ndx % width); [INFO] [stderr] 479 + let y = ndx % width; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/lib.rs:480:21 [INFO] [stderr] | [INFO] [stderr] 480 | let x = (ndx / height); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 480 - let x = (ndx / height); [INFO] [stderr] 480 + let x = ndx / height; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/lib.rs:314:25 [INFO] [stderr] | [INFO] [stderr] 314 | return match agent.sticky_neighbor { [INFO] [stderr] | __________________________^ - [INFO] [stderr] | | ________________________________| [INFO] [stderr] 315 | || None => return (true, None), // already stuck, no neighbor [INFO] [stderr] 316 | || Some(position) => { [INFO] [stderr] ... || [INFO] [stderr] 320 | || } [INFO] [stderr] | || ^ [INFO] [stderr] | ||_________________________| [INFO] [stderr] | |_________________________unreachable expression [INFO] [stderr] | any code following this `match` expression is unreachable, as all arms diverge [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/lib.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | for i in 0..num_agents { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ndx` [INFO] [stderr] --> src/lib.rs:84:34 [INFO] [stderr] | [INFO] [stderr] 84 | (0..width * height).map(|ndx| { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ndx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cntStuck` [INFO] [stderr] --> src/lib.rs:155:17 [INFO] [stderr] | [INFO] [stderr] 155 | let mut cntStuck = 0; [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cntStuck` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/lib.rs:155:13 [INFO] [stderr] | [INFO] [stderr] 155 | let mut cntStuck = 0; [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `new_agent_ndx` [INFO] [stderr] --> src/lib.rs:280:9 [INFO] [stderr] | [INFO] [stderr] 280 | new_agent_ndx: usize [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_agent_ndx` [INFO] [stderr] [INFO] [stderr] warning: methods `get_agent_at_borrow`, `find_agent_at_coordinate`, `agent_iterator`, and `isEmpty` are never used [INFO] [stderr] --> src/lib.rs:147:8 [INFO] [stderr] | [INFO] [stderr] 130 | impl DLAField { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 147 | fn get_agent_at_borrow(&mut self, ndx: usize) -> &mut ColorizedPoint { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 228 | fn find_agent_at_coordinate(&self, x: usize, y: usize) -> Option<&ColorizedPoint> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 271 | fn agent_iterator(&self) -> std::slice::Iter { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 400 | fn isEmpty(&self, x: u32, y: u32) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `set_panic_hook` is never used [INFO] [stderr] --> src/utils.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn set_panic_hook() { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `generateEmptyPositionHash` should have a snake case name [INFO] [stderr] --> src/lib.rs:83:8 [INFO] [stderr] | [INFO] [stderr] 83 | fn generateEmptyPositionHash(width: usize, height: usize) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `generate_empty_position_hash` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `isPositionOccupied` should have a snake case name [INFO] [stderr] --> src/lib.rs:89:8 [INFO] [stderr] | [INFO] [stderr] 89 | fn isPositionOccupied(positionHash: &Vec, x: usize, y: usize, width: usize) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_position_occupied` [INFO] [stderr] [INFO] [stderr] warning: variable `positionHash` should have a snake case name [INFO] [stderr] --> src/lib.rs:89:27 [INFO] [stderr] | [INFO] [stderr] 89 | fn isPositionOccupied(positionHash: &Vec, x: usize, y: usize, width: usize) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `position_hash` [INFO] [stderr] [INFO] [stderr] warning: variable `castMin` should have a snake case name [INFO] [stderr] --> src/lib.rs:101:13 [INFO] [stderr] | [INFO] [stderr] 101 | let castMin = min as f64; [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `cast_min` [INFO] [stderr] [INFO] [stderr] warning: variable `castMax` should have a snake case name [INFO] [stderr] --> src/lib.rs:102:13 [INFO] [stderr] | [INFO] [stderr] 102 | let castMax = max as f64; [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `cast_max` [INFO] [stderr] [INFO] [stderr] warning: variable `cntStuck` should have a snake case name [INFO] [stderr] --> src/lib.rs:155:17 [INFO] [stderr] | [INFO] [stderr] 155 | let mut cntStuck = 0; [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `cnt_stuck` [INFO] [stderr] [INFO] [stderr] warning: method `findNextPosition` should have a snake case name [INFO] [stderr] --> src/lib.rs:233:8 [INFO] [stderr] | [INFO] [stderr] 233 | fn findNextPosition(&self, x: usize, y: usize) -> (usize, usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_next_position` [INFO] [stderr] [INFO] [stderr] warning: variable `newX` should have a snake case name [INFO] [stderr] --> src/lib.rs:239:17 [INFO] [stderr] | [INFO] [stderr] 239 | let mut newX = if DLAField::gen_bool(0.5) { x + 1 } else { x - 1 }; [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `new_x` [INFO] [stderr] [INFO] [stderr] warning: variable `newY` should have a snake case name [INFO] [stderr] --> src/lib.rs:240:17 [INFO] [stderr] | [INFO] [stderr] 240 | let mut newY = if DLAField::gen_bool(0.75) { y + 1 } else { y - 1 }; [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `new_y` [INFO] [stderr] [INFO] [stderr] warning: variable `attemptCount` should have a snake case name [INFO] [stderr] --> src/lib.rs:252:17 [INFO] [stderr] | [INFO] [stderr] 252 | let mut attemptCount = 0; [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `attempt_count` [INFO] [stderr] [INFO] [stderr] warning: method `isEmpty` should have a snake case name [INFO] [stderr] --> src/lib.rs:400:8 [INFO] [stderr] | [INFO] [stderr] 400 | fn isEmpty(&self, x: u32, y: u32) -> bool { [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `is_empty` [INFO] [stderr] [INFO] [stderr] warning: method `getOccpupiedCount` should have a snake case name [INFO] [stderr] --> src/lib.rs:410:12 [INFO] [stderr] | [INFO] [stderr] 410 | pub fn getOccpupiedCount(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_occpupied_count` [INFO] [stderr] [INFO] [stderr] warning: method `getStuckCount` should have a snake case name [INFO] [stderr] --> src/lib.rs:433:12 [INFO] [stderr] | [INFO] [stderr] 433 | pub fn getStuckCount(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_stuck_count` [INFO] [stderr] [INFO] [stderr] warning: variable `stuckSize` should have a snake case name [INFO] [stderr] --> src/lib.rs:458:13 [INFO] [stderr] | [INFO] [stderr] 458 | let stuckSize = 1.0; [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `stuck_size` [INFO] [stderr] [INFO] [stderr] warning: variable `seedSize` should have a snake case name [INFO] [stderr] --> src/lib.rs:459:13 [INFO] [stderr] | [INFO] [stderr] 459 | let seedSize = 1.0; [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `seed_size` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/colorized_point.rs:4:45 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_StickyNeighbor` [INFO] [stderr] 5 | pub struct StickyNeighbor { [INFO] [stderr] | -------------- `StickyNeighbor` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/colorized_point.rs:4:56 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_StickyNeighbor` [INFO] [stderr] 5 | pub struct StickyNeighbor { [INFO] [stderr] | -------------- `StickyNeighbor` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/colorized_point.rs:19:45 [INFO] [stderr] | [INFO] [stderr] 19 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_AgentState` [INFO] [stderr] 20 | pub enum AgentState { [INFO] [stderr] | ---------- `AgentState` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/colorized_point.rs:19:56 [INFO] [stderr] | [INFO] [stderr] 19 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_AgentState` [INFO] [stderr] 20 | pub enum AgentState { [INFO] [stderr] | ---------- `AgentState` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/colorized_point.rs:26:45 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Color` [INFO] [stderr] 27 | pub struct Color { [INFO] [stderr] | ----- `Color` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/colorized_point.rs:26:56 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Color` [INFO] [stderr] 27 | pub struct Color { [INFO] [stderr] | ----- `Color` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/colorized_point.rs:60:45 [INFO] [stderr] | [INFO] [stderr] 60 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_ColorizedPoint` [INFO] [stderr] 61 | pub struct ColorizedPoint { [INFO] [stderr] | -------------- `ColorizedPoint` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/colorized_point.rs:60:56 [INFO] [stderr] | [INFO] [stderr] 60 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ColorizedPoint` [INFO] [stderr] 61 | pub struct ColorizedPoint { [INFO] [stderr] | -------------- `ColorizedPoint` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `wasm-rust-dla` (lib) generated 37 warnings (run `cargo fix --lib -p wasm-rust-dla` to apply 7 suggestions) [INFO] [stderr] warning: `wasm-rust-dla` (lib test) generated 37 warnings (37 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.62 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/wasm_rust_dla-28cebb7db9bcf008) [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.00s [INFO] [stdout] [INFO] [stderr] Running tests/web.rs (/opt/rustwide/target/debug/deps/web-992bd6ca6f0cd888) [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.00s [INFO] [stdout] [INFO] [stderr] Doc-tests wasm_rust_dla [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/lib.rs:479:21 [INFO] [stderr] | [INFO] [stderr] 479 | let y = (ndx % width); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 479 - let y = (ndx % width); [INFO] [stderr] 479 + let y = ndx % width; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/lib.rs:480:21 [INFO] [stderr] | [INFO] [stderr] 480 | let x = (ndx / height); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 480 - let x = (ndx / height); [INFO] [stderr] 480 + let x = ndx / height; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [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.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "77b6812092735f59060c8aeff0b89389ea18cfae63b614000cf9b467d62e49e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77b6812092735f59060c8aeff0b89389ea18cfae63b614000cf9b467d62e49e3", kill_on_drop: false }` [INFO] [stdout] 77b6812092735f59060c8aeff0b89389ea18cfae63b614000cf9b467d62e49e3