[INFO] cloning repository https://github.com/srufle/maze-book-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/srufle/maze-book-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsrufle%2Fmaze-book-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsrufle%2Fmaze-book-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb33121d25b45c94c8cebd62ad8f379f0cf1de61 [INFO] checking srufle/maze-book-rs against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsrufle%2Fmaze-book-rs" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/srufle/maze-book-rs on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/srufle/maze-book-rs [INFO] finished tweaking git repo https://github.com/srufle/maze-book-rs [INFO] tweaked toml for git repo https://github.com/srufle/maze-book-rs written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/srufle/maze-book-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-7/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d30af56ea9597521011d21096a2b20ff4c518d2ad3f08f3a68fe7fd576593cb3 [INFO] running `Command { std: "docker" "start" "-a" "d30af56ea9597521011d21096a2b20ff4c518d2ad3f08f3a68fe7fd576593cb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d30af56ea9597521011d21096a2b20ff4c518d2ad3f08f3a68fe7fd576593cb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d30af56ea9597521011d21096a2b20ff4c518d2ad3f08f3a68fe7fd576593cb3", kill_on_drop: false }` [INFO] [stdout] d30af56ea9597521011d21096a2b20ff4c518d2ad3f08f3a68fe7fd576593cb3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4a01982e40b65f0568890b4eae299a6c0861b34a5116aae0ad95f284ad50826a [INFO] running `Command { std: "docker" "start" "-a" "4a01982e40b65f0568890b4eae299a6c0861b34a5116aae0ad95f284ad50826a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling rayon-core v1.8.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling slog v2.5.2 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking radix_fmt v0.1.1 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling rayon v1.4.1 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking itertools v0.7.11 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking ordered-float v1.1.0 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking num-iter v0.1.41 [INFO] [stderr] Checking crossbeam-channel v0.4.4 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking png v0.14.1 [INFO] [stderr] Checking term v0.6.1 [INFO] [stderr] Checking slog-async v2.5.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking slog-term v2.6.0 [INFO] [stderr] Checking jpeg-decoder v0.1.20 [INFO] [stderr] Checking tiff v0.2.2 [INFO] [stderr] Checking image v0.21.3 [INFO] [stderr] Checking imageproc v0.18.0 [INFO] [stderr] Checking maze-book-rs v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/cell.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | (self.row as i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/cell.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | (self.col as i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/cell.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | (margin + (self.col_i32() * cell_size) + lw_i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/cell.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | (margin - (self.row_i32() * cell_size) - cell_size + lw_i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/grid.rs:617:9 [INFO] [stdout] | [INFO] [stdout] 617 | (self.length == row + 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/grid.rs:621:9 [INFO] [stdout] | [INFO] [stdout] 621 | (1 == row + 1) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/grid.rs:625:9 [INFO] [stdout] | [INFO] [stdout] 625 | (self.width == col + 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/grid.rs:629:9 [INFO] [stdout] | [INFO] [stdout] 629 | (1 == col + 1) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `maze::Grid` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use maze::Grid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `maze::Pos2d` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use maze::Pos2d; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/cell.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | (self.row as i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/cell.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | (self.col as i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/cell.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | (margin + (self.col_i32() * cell_size) + lw_i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/cell.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | (margin - (self.row_i32() * cell_size) - cell_size + lw_i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/grid.rs:617:9 [INFO] [stdout] | [INFO] [stdout] 617 | (self.length == row + 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/grid.rs:621:9 [INFO] [stdout] | [INFO] [stdout] 621 | (1 == row + 1) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/grid.rs:625:9 [INFO] [stdout] | [INFO] [stdout] 625 | (self.width == col + 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/maze/grid.rs:629:9 [INFO] [stdout] | [INFO] [stdout] 629 | (1 == col + 1) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/maze/grid.rs:357:9 [INFO] [stdout] | [INFO] [stdout] 356 | let cur_front = &self.frontier; [INFO] [stdout] | -------------- immutable borrow occurs here [INFO] [stdout] 357 | self.do_calculate_distances(cur_front.to_vec()); [INFO] [stdout] | ^^^^ --------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate` [INFO] [stdout] --> src/maze/binary_tree.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn generate(maze: &mut Grid) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_fixed_3x3_grid` [INFO] [stdout] --> src/maze/binary_tree.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn generate_fixed_3x3_grid(maze: &mut Grid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_fixed_4x4_grid` [INFO] [stdout] --> src/maze/binary_tree.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn generate_fixed_4x4_grid(maze: &mut Grid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `row` [INFO] [stdout] --> src/maze/cell.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn row(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `col` [INFO] [stdout] --> src/maze/cell.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn col(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `row_i32` [INFO] [stdout] --> src/maze/cell.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn row_i32(&self) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `col_i32` [INFO] [stdout] --> src/maze/cell.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn col_i32(&self) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inner_x` [INFO] [stdout] --> src/maze/cell.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn inner_x(&self, margin: i32, cell_size: i32, line_width: u32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inner_y` [INFO] [stdout] --> src/maze/cell.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn inner_y(&self, margin: i32, cell_size: i32, line_width: u32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inner_w` [INFO] [stdout] --> src/maze/cell.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn inner_w(&self, cell_size: i32, line_width: u32) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inner_h` [INFO] [stdout] --> src/maze/cell.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn inner_h(&self, cell_size: i32, line_width: u32) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `d` [INFO] [stdout] --> src/maze/grid.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn d(pos: Pos2d, dist: usize) -> Distance2d { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `col` [INFO] [stdout] --> src/maze/grid.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn col(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `row` [INFO] [stdout] --> src/maze/grid.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn row(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `visited` [INFO] [stdout] --> src/maze/grid.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | visited: HashSet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `frontier` [INFO] [stdout] --> src/maze/grid.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | frontier: Pos2dVec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_path` [INFO] [stdout] --> src/maze/grid.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn reset_path(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `entrance` [INFO] [stdout] --> src/maze/grid.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn entrance(&mut self, entrance: Pos2d) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `visit_pos` [INFO] [stdout] --> src/maze/grid.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn visit_pos(&mut self, pos: Pos2d) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_cell_visited` [INFO] [stdout] --> src/maze/grid.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn is_cell_visited(&self, pos: Pos2d) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `display` [INFO] [stdout] --> src/maze/grid.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `display_distances` [INFO] [stdout] --> src/maze/grid.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn display_distances(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_render_ascii` [INFO] [stdout] --> src/maze/grid.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn do_render_ascii(&self, dist_map: Option<&DistanceMap>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render_ascii` [INFO] [stdout] --> src/maze/grid.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn render_ascii(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render_ascii_path` [INFO] [stdout] --> src/maze/grid.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn render_ascii_path(&self, dist_map: DistanceMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `background_for_cell` [INFO] [stdout] --> src/maze/grid.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | fn background_for_cell(&self, dist: usize) -> Rgb { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_render_png` [INFO] [stdout] --> src/maze/grid.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | fn do_render_png(&self, name: &str, dist_map: Option<&DistanceMap>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render_png` [INFO] [stdout] --> src/maze/grid.rs:347:12 [INFO] [stdout] | [INFO] [stdout] 347 | pub fn render_png(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render_png_path` [INFO] [stdout] --> src/maze/grid.rs:351:12 [INFO] [stdout] | [INFO] [stdout] 351 | pub fn render_png_path(&self, name: &str, dist_map: DistanceMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_distances` [INFO] [stdout] --> src/maze/grid.rs:355:12 [INFO] [stdout] | [INFO] [stdout] 355 | pub fn calculate_distances(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `distance_map` [INFO] [stdout] --> src/maze/grid.rs:360:12 [INFO] [stdout] | [INFO] [stdout] 360 | pub fn distance_map(&self) -> DistanceMap { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `distance_of_cell` [INFO] [stdout] --> src/maze/grid.rs:364:12 [INFO] [stdout] | [INFO] [stdout] 364 | pub fn distance_of_cell(&self, pos: Pos2d) -> Option<&usize> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_path_from` [INFO] [stdout] --> src/maze/grid.rs:372:12 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn max_path_from(&self, start: Pos2d) -> Distance2d { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `plot_path_between` [INFO] [stdout] --> src/maze/grid.rs:384:12 [INFO] [stdout] | [INFO] [stdout] 384 | pub fn plot_path_between(&mut self, start: Pos2d, end: Pos2d) -> DistanceMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_calculate_distances` [INFO] [stdout] --> src/maze/grid.rs:449:8 [INFO] [stdout] | [INFO] [stdout] 449 | fn do_calculate_distances(&mut self, frontier: Pos2dVec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cells` [INFO] [stdout] --> src/maze/grid.rs:532:12 [INFO] [stdout] | [INFO] [stdout] 532 | pub fn cells(&self) -> Cells { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_north` [INFO] [stdout] --> src/maze/grid.rs:551:12 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn next_north(&mut self, col: usize, row: usize) -> Pos2d { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_east` [INFO] [stdout] --> src/maze/grid.rs:570:12 [INFO] [stdout] | [INFO] [stdout] 570 | pub fn next_east(&mut self, col: usize, row: usize) -> Pos2d { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_south` [INFO] [stdout] --> src/maze/grid.rs:589:12 [INFO] [stdout] | [INFO] [stdout] 589 | pub fn next_south(&mut self, col: usize, row: usize) -> Pos2d { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_west` [INFO] [stdout] --> src/maze/grid.rs:608:12 [INFO] [stdout] | [INFO] [stdout] 608 | pub fn next_west(&mut self, col: usize, row: usize) -> Pos2d { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `logger` [INFO] [stdout] --> src/maze/grid.rs:656:8 [INFO] [stdout] | [INFO] [stdout] 656 | fn logger() -> Logger { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate` [INFO] [stdout] --> src/maze/sidewinder.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn generate(maze: &mut Grid) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `coin_flip` [INFO] [stdout] --> src/maze/utils.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn coin_flip() -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `choose_cell` [INFO] [stdout] --> src/maze/utils.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn choose_cell(low: usize, high: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/maze/grid.rs:357:9 [INFO] [stdout] | [INFO] [stdout] 356 | let cur_front = &self.frontier; [INFO] [stdout] | -------------- immutable borrow occurs here [INFO] [stdout] 357 | self.do_calculate_distances(cur_front.to_vec()); [INFO] [stdout] | ^^^^ --------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_fixed_3x3_grid` [INFO] [stdout] --> src/maze/binary_tree.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn generate_fixed_3x3_grid(maze: &mut Grid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_fixed_4x4_grid` [INFO] [stdout] --> src/maze/binary_tree.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn generate_fixed_4x4_grid(maze: &mut Grid) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_path` [INFO] [stdout] --> src/maze/grid.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn reset_path(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `link_south` [INFO] [stdout] --> src/maze/grid.rs:578:12 [INFO] [stdout] | [INFO] [stdout] 578 | pub fn link_south(&mut self, col: usize, row: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `link_west` [INFO] [stdout] --> src/maze/grid.rs:597:12 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn link_west(&mut self, col: usize, row: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `at_upper_left` [INFO] [stdout] --> src/maze/grid.rs:632:12 [INFO] [stdout] | [INFO] [stdout] 632 | pub fn at_upper_left(&self, col: usize, row: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `at_lower_left` [INFO] [stdout] --> src/maze/grid.rs:640:12 [INFO] [stdout] | [INFO] [stdout] 640 | pub fn at_lower_left(&self, col: usize, row: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `at_lower_right` [INFO] [stdout] --> src/maze/grid.rs:644:12 [INFO] [stdout] | [INFO] [stdout] 644 | pub fn at_lower_right(&self, col: usize, row: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 49.20s [INFO] running `Command { std: "docker" "inspect" "4a01982e40b65f0568890b4eae299a6c0861b34a5116aae0ad95f284ad50826a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a01982e40b65f0568890b4eae299a6c0861b34a5116aae0ad95f284ad50826a", kill_on_drop: false }` [INFO] [stdout] 4a01982e40b65f0568890b4eae299a6c0861b34a5116aae0ad95f284ad50826a