[INFO] cloning repository https://github.com/Gearhartlove/leest [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Gearhartlove/leest" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGearhartlove%2Fleest", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGearhartlove%2Fleest'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1cd900fde7b5f32f52a0bab8140b9bb4f23f29ef [INFO] testing Gearhartlove/leest against try#a40ec913238f4f188d97c41aa605cb486451acf2+target=i686-unknown-linux-musl for musl_1_2_upgrade_i686_unknown_linux_musl [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGearhartlove%2Fleest" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Gearhartlove/leest on toolchain a40ec913238f4f188d97c41aa605cb486451acf2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a40ec913238f4f188d97c41aa605cb486451acf2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Gearhartlove/leest [INFO] finished tweaking git repo https://github.com/Gearhartlove/leest [INFO] tweaked toml for git repo https://github.com/Gearhartlove/leest written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Gearhartlove/leest 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" "+a40ec913238f4f188d97c41aa605cb486451acf2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+a40ec913238f4f188d97c41aa605cb486451acf2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b4dc38d25a5e00139c36c1ca6ba436480704a5699721b3360a9b905382d54b6f [INFO] running `Command { std: "docker" "start" "-a" "b4dc38d25a5e00139c36c1ca6ba436480704a5699721b3360a9b905382d54b6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b4dc38d25a5e00139c36c1ca6ba436480704a5699721b3360a9b905382d54b6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4dc38d25a5e00139c36c1ca6ba436480704a5699721b3360a9b905382d54b6f", kill_on_drop: false }` [INFO] [stdout] b4dc38d25a5e00139c36c1ca6ba436480704a5699721b3360a9b905382d54b6f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "RUSTDOCFLAGS=--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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+a40ec913238f4f188d97c41aa605cb486451acf2" "build" "--frozen" "--message-format=json" "--target" "i686-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] d31acb317fcb4249516269ab82d8c6af6ae2f88260ced2c663632b4878682d60 [INFO] running `Command { std: "docker" "start" "-a" "d31acb317fcb4249516269ab82d8c6af6ae2f88260ced2c663632b4878682d60", kill_on_drop: false }` [INFO] [stderr] Compiling leest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::mem::replace` [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::replace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `worked_problems::baseball_game` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use worked_problems::baseball_game; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_score` is never read [INFO] [stdout] --> src/worked_problems/baseball_game.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 42 | let mut new_score: i32 = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/worked_problems/top_k_frequent_elements.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | for i in 0..k { [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: `result_matrix` [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let mut result_matrix = grid.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/worked_problems/baseball_game.rs:51:22 [INFO] [stdout] | [INFO] [stdout] 51 | let mut new_score = *record.last()? * 2; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut result_matrix = grid.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | let mut row = return_grid.get_mut(new_row_pos).unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cal_points` is never used [INFO] [stdout] --> src/worked_problems/baseball_game.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn cal_points(ops: Vec<&str>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Ops` is never used [INFO] [stdout] --> src/worked_problems/baseball_game.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | enum Ops { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `handle_ops` is never used [INFO] [stdout] --> src/worked_problems/baseball_game.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn handle_ops(op: Ops, record: &mut Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `top_k_frequent` is never used [INFO] [stdout] --> src/worked_problems/top_k_frequent_elements.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn top_k_frequent(nums: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shift_grid` is never used [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn shift_grid(grid: Vec>, shift: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ROWS` should have a snake case name [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let ROWS = return_grid.len(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `rows` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `COLS` should have a snake case name [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let COLS = return_grid[0].len(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `cols` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SIZE` should have a snake case name [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let SIZE = ROWS * COLS; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | std::mem::replace(&mut row[adjusted_new_index], **k); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.44s [INFO] running `Command { std: "docker" "inspect" "d31acb317fcb4249516269ab82d8c6af6ae2f88260ced2c663632b4878682d60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d31acb317fcb4249516269ab82d8c6af6ae2f88260ced2c663632b4878682d60", kill_on_drop: false }` [INFO] [stdout] d31acb317fcb4249516269ab82d8c6af6ae2f88260ced2c663632b4878682d60 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "RUSTDOCFLAGS=--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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+a40ec913238f4f188d97c41aa605cb486451acf2" "test" "--frozen" "--no-run" "--message-format=json" "--target" "i686-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] e6fac2fd790470b54c69897067c24da4ce0e5094e7f49f7860df4b77b919831b [INFO] running `Command { std: "docker" "start" "-a" "e6fac2fd790470b54c69897067c24da4ce0e5094e7f49f7860df4b77b919831b", kill_on_drop: false }` [INFO] [stderr] Compiling leest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::mem::replace` [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::replace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `worked_problems::baseball_game` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use worked_problems::baseball_game; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_score` is never read [INFO] [stdout] --> src/worked_problems/baseball_game.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 42 | let mut new_score: i32 = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/worked_problems/top_k_frequent_elements.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | for i in 0..k { [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: `result_matrix` [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let mut result_matrix = grid.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/worked_problems/baseball_game.rs:51:22 [INFO] [stdout] | [INFO] [stdout] 51 | let mut new_score = *record.last()? * 2; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut result_matrix = grid.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | let mut row = return_grid.get_mut(new_row_pos).unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `INTEGER` is never constructed [INFO] [stdout] --> src/worked_problems/baseball_game.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | enum Ops { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] 31 | INTEGER, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ROWS` should have a snake case name [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let ROWS = return_grid.len(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `rows` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `COLS` should have a snake case name [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let COLS = return_grid[0].len(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `cols` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SIZE` should have a snake case name [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let SIZE = ROWS * COLS; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/worked_problems/shift_2d_grid.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | std::mem::replace(&mut row[adjusted_new_index], **k); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.98s [INFO] running `Command { std: "docker" "inspect" "e6fac2fd790470b54c69897067c24da4ce0e5094e7f49f7860df4b77b919831b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6fac2fd790470b54c69897067c24da4ce0e5094e7f49f7860df4b77b919831b", kill_on_drop: false }` [INFO] [stdout] e6fac2fd790470b54c69897067c24da4ce0e5094e7f49f7860df4b77b919831b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "RUSTDOCFLAGS=--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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+a40ec913238f4f188d97c41aa605cb486451acf2" "test" "--frozen" "--target" "i686-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 6b24c75200a72ec8276fa3c190b195d356eec8a5420ec98948cdc44a9035ed79 [INFO] running `Command { std: "docker" "start" "-a" "6b24c75200a72ec8276fa3c190b195d356eec8a5420ec98948cdc44a9035ed79", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::mem::replace` [INFO] [stderr] --> src/worked_problems/shift_2d_grid.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::mem::replace; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `worked_problems::baseball_game` [INFO] [stderr] --> src/main.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use worked_problems::baseball_game; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: value assigned to `new_score` is never read [INFO] [stderr] --> src/worked_problems/baseball_game.rs:42:26 [INFO] [stderr] | [INFO] [stderr] 42 | let mut new_score: i32 = 0; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/worked_problems/top_k_frequent_elements.rs:19:9 [INFO] [stderr] | [INFO] [stderr] 19 | for i in 0..k { [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: `result_matrix` [INFO] [stderr] --> src/worked_problems/shift_2d_grid.rs:34:17 [INFO] [stderr] | [INFO] [stderr] 34 | let mut result_matrix = grid.clone(); [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_matrix` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/worked_problems/baseball_game.rs:51:22 [INFO] [stderr] | [INFO] [stderr] 51 | let mut new_score = *record.last()? * 2; [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/worked_problems/shift_2d_grid.rs:34:13 [INFO] [stderr] | [INFO] [stderr] 34 | let mut result_matrix = grid.clone(); [INFO] [stderr] | ----^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/worked_problems/shift_2d_grid.rs:39:17 [INFO] [stderr] | [INFO] [stderr] 39 | let mut row = return_grid.get_mut(new_row_pos).unwrap(); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variant `INTEGER` is never constructed [INFO] [stderr] --> src/worked_problems/baseball_game.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 30 | enum Ops { [INFO] [stderr] | --- variant in this enum [INFO] [stderr] 31 | INTEGER, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `ROWS` should have a snake case name [INFO] [stderr] --> src/worked_problems/shift_2d_grid.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | let ROWS = return_grid.len(); [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `rows` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `COLS` should have a snake case name [INFO] [stderr] --> src/worked_problems/shift_2d_grid.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 10 | let COLS = return_grid[0].len(); [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `cols` [INFO] [stderr] [INFO] [stderr] warning: variable `SIZE` should have a snake case name [INFO] [stderr] --> src/worked_problems/shift_2d_grid.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 11 | let SIZE = ROWS * COLS; [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `size` [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/worked_problems/shift_2d_grid.rs:40:13 [INFO] [stderr] | [INFO] [stderr] 40 | std::mem::replace(&mut row[adjusted_new_index], **k); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `leest` (bin "leest" test) generated 13 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/i686-unknown-linux-musl/debug/deps/leest-5408ce3dff475aeb) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test worked_problems::baseball_game::tests::baseball_works ... ok [INFO] [stdout] test worked_problems::shift_2d_grid::tests::shift_nxn_works ... ok [INFO] [stdout] test worked_problems::top_k_frequent_elements::tests::working ... ok [INFO] [stdout] test worked_problems::shift_2d_grid::tests::shift_mxn_works ... ok [INFO] [stdout] test worked_problems::shift_2d_grid::tests::shift_k_works ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6b24c75200a72ec8276fa3c190b195d356eec8a5420ec98948cdc44a9035ed79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b24c75200a72ec8276fa3c190b195d356eec8a5420ec98948cdc44a9035ed79", kill_on_drop: false }` [INFO] [stdout] 6b24c75200a72ec8276fa3c190b195d356eec8a5420ec98948cdc44a9035ed79