[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] checking chriswininger/rust-wasm-dla against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchriswininger%2Frust-wasm-dla" "/workspace/builds/worker-67/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-67/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/chriswininger/rust-wasm-dla on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-67/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: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-67/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-67/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06e90cdb499dfd754b6dd14cec2c250e3d7141d3fe3bfef791a2dc4e0848857e [INFO] running `Command { std: "docker" "start" "-a" "06e90cdb499dfd754b6dd14cec2c250e3d7141d3fe3bfef791a2dc4e0848857e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06e90cdb499dfd754b6dd14cec2c250e3d7141d3fe3bfef791a2dc4e0848857e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06e90cdb499dfd754b6dd14cec2c250e3d7141d3fe3bfef791a2dc4e0848857e", kill_on_drop: false }` [INFO] [stdout] 06e90cdb499dfd754b6dd14cec2c250e3d7141d3fe3bfef791a2dc4e0848857e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-67/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-67/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 166816b0a90be6f6046e8af4e790c2401566838aeec6f53eada2f6cc18f80ca1 [INFO] running `Command { std: "docker" "start" "-a" "166816b0a90be6f6046e8af4e790c2401566838aeec6f53eada2f6cc18f80ca1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] web-sys v0.3.39: Event, MessageEvent, Worker [INFO] [stderr] [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 serde v1.0.110 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Compiling bumpalo v3.3.0 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling wasm-bindgen v0.2.62 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking futures v0.1.29 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.2.50 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.62 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.62 [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.62 [INFO] [stderr] Checking serde_json v1.0.53 [INFO] [stderr] Checking js-sys v0.3.39 [INFO] [stderr] Checking console_error_panic_hook v0.1.6 [INFO] [stderr] Checking wasm-bindgen-futures v0.3.27 [INFO] [stderr] Checking web-sys v0.3.39 [INFO] [stderr] Checking wasm-bindgen-test v0.2.50 [INFO] [stderr] Checking wasm-rust-dla v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/field_position.rs (1 fix) [INFO] [stderr] Fixed src/lib.rs (10 fixes) [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] | || [INFO] [stdout] 315 | || None => return (true, None), // already stuck, no neighbor [INFO] [stdout] 316 | || Some(position) => { [INFO] [stdout] 317 | || // already stuck pass along it's stuck neighbor if applicable [INFO] [stdout] 318 | || return (true, Some((position.x, position.y))) [INFO] [stdout] 319 | || } [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: 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] | || [INFO] [stdout] 315 | || None => return (true, None), // already stuck, no neighbor [INFO] [stdout] 316 | || Some(position) => { [INFO] [stdout] 317 | || // already stuck pass along it's stuck neighbor if applicable [INFO] [stdout] 318 | || return (true, Some((position.x, position.y))) [INFO] [stdout] 319 | || } [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: function is never used: `set_panic_hook` [INFO] [stdout] --> src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_agent_at_borrow` [INFO] [stdout] --> src/lib.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn get_agent_at_borrow(&mut self, ndx: usize) -> &mut ColorizedPoint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_agent_at_coordinate` [INFO] [stdout] --> src/lib.rs:228:8 [INFO] [stdout] | [INFO] [stdout] 228 | fn find_agent_at_coordinate(&self, x: usize, y: usize) -> Option<&ColorizedPoint> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `agent_iterator` [INFO] [stdout] --> src/lib.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | fn agent_iterator(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `isEmpty` [INFO] [stdout] --> src/lib.rs:400:8 [INFO] [stdout] | [INFO] [stdout] 400 | fn isEmpty(&self, x: u32, y: u32) -> bool { [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:13 [INFO] [stdout] | [INFO] [stdout] 155 | let _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: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `set_panic_hook` [INFO] [stdout] --> src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_agent_at_borrow` [INFO] [stdout] --> src/lib.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn get_agent_at_borrow(&mut self, ndx: usize) -> &mut ColorizedPoint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_agent_at_coordinate` [INFO] [stdout] --> src/lib.rs:228:8 [INFO] [stdout] | [INFO] [stdout] 228 | fn find_agent_at_coordinate(&self, x: usize, y: usize) -> Option<&ColorizedPoint> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `agent_iterator` [INFO] [stdout] --> src/lib.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | fn agent_iterator(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `isEmpty` [INFO] [stdout] --> src/lib.rs:400:8 [INFO] [stdout] | [INFO] [stdout] 400 | fn isEmpty(&self, x: u32, y: u32) -> bool { [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] [stderr] Migrating tests/web.rs from 2018 edition to 2021 [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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 16s [INFO] [stdout] warning: variable `_cntStuck` should have a snake case name [INFO] [stdout] --> src/lib.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let _cntStuck = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `_cnt_stuck` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2021 [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] [stderr] Checking web-sys v0.3.39 [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: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking wasm-rust-dla v0.1.0 (/tmp/fixit) [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] | || [INFO] [stdout] 315 | || None => return (true, None), // already stuck, no neighbor [INFO] [stdout] 316 | || Some(position) => { [INFO] [stdout] 317 | || // already stuck pass along it's stuck neighbor if applicable [INFO] [stdout] 318 | || return (true, Some((position.x, position.y))) [INFO] [stdout] 319 | || } [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: 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] | || [INFO] [stdout] 315 | || None => return (true, None), // already stuck, no neighbor [INFO] [stdout] 316 | || Some(position) => { [INFO] [stdout] 317 | || // already stuck pass along it's stuck neighbor if applicable [INFO] [stdout] 318 | || return (true, Some((position.x, position.y))) [INFO] [stdout] 319 | || } [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: function is never used: `set_panic_hook` [INFO] [stdout] --> src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_agent_at_borrow` [INFO] [stdout] --> src/lib.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn get_agent_at_borrow(&mut self, ndx: usize) -> &mut ColorizedPoint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_agent_at_coordinate` [INFO] [stdout] --> src/lib.rs:228:8 [INFO] [stdout] | [INFO] [stdout] 228 | fn find_agent_at_coordinate(&self, x: usize, y: usize) -> Option<&ColorizedPoint> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `agent_iterator` [INFO] [stdout] --> src/lib.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | fn agent_iterator(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `isEmpty` [INFO] [stdout] --> src/lib.rs:400:8 [INFO] [stdout] | [INFO] [stdout] 400 | fn isEmpty(&self, x: u32, y: u32) -> bool { [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:13 [INFO] [stdout] | [INFO] [stdout] 155 | let _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: function is never used: `set_panic_hook` [INFO] [stdout] --> src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_agent_at_borrow` [INFO] [stdout] --> src/lib.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn get_agent_at_borrow(&mut self, ndx: usize) -> &mut ColorizedPoint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_agent_at_coordinate` [INFO] [stdout] --> src/lib.rs:228:8 [INFO] [stdout] | [INFO] [stdout] 228 | fn find_agent_at_coordinate(&self, x: usize, y: usize) -> Option<&ColorizedPoint> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `agent_iterator` [INFO] [stdout] --> src/lib.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | fn agent_iterator(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `isEmpty` [INFO] [stdout] --> src/lib.rs:400:8 [INFO] [stdout] | [INFO] [stdout] 400 | fn isEmpty(&self, x: u32, y: u32) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [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:13 [INFO] [stdout] | [INFO] [stdout] 155 | let _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: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.40s [INFO] running `Command { std: "docker" "inspect" "166816b0a90be6f6046e8af4e790c2401566838aeec6f53eada2f6cc18f80ca1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "166816b0a90be6f6046e8af4e790c2401566838aeec6f53eada2f6cc18f80ca1", kill_on_drop: false }` [INFO] [stdout] 166816b0a90be6f6046e8af4e790c2401566838aeec6f53eada2f6cc18f80ca1