[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#d5830e3d3b571fe52cdf4b7b34be99be74dc65ea+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-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Gearhartlove/leest on toolchain d5830e3d3b571fe52cdf4b7b34be99be74dc65ea [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d5830e3d3b571fe52cdf4b7b34be99be74dc65ea" "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-tc1/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" "+d5830e3d3b571fe52cdf4b7b34be99be74dc65ea" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+d5830e3d3b571fe52cdf4b7b34be99be74dc65ea" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4367d82a1097faadf7431de8b3e7f2d88d5810707394ba5370a14f22f6dcbcfb [INFO] running `Command { std: "docker" "start" "-a" "4367d82a1097faadf7431de8b3e7f2d88d5810707394ba5370a14f22f6dcbcfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4367d82a1097faadf7431de8b3e7f2d88d5810707394ba5370a14f22f6dcbcfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4367d82a1097faadf7431de8b3e7f2d88d5810707394ba5370a14f22f6dcbcfb", kill_on_drop: false }` [INFO] [stdout] 4367d82a1097faadf7431de8b3e7f2d88d5810707394ba5370a14f22f6dcbcfb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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" "+d5830e3d3b571fe52cdf4b7b34be99be74dc65ea" "build" "--frozen" "--message-format=json" "--target" "i686-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 348dabac761f4394d441e2cb560c6d0e0cd21fe3e09bfa498217b5532bdca243 [INFO] running `Command { std: "docker" "start" "-a" "348dabac761f4394d441e2cb560c6d0e0cd21fe3e09bfa498217b5532bdca243", 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] [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 4.48s [INFO] running `Command { std: "docker" "inspect" "348dabac761f4394d441e2cb560c6d0e0cd21fe3e09bfa498217b5532bdca243", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "348dabac761f4394d441e2cb560c6d0e0cd21fe3e09bfa498217b5532bdca243", kill_on_drop: false }` [INFO] [stdout] 348dabac761f4394d441e2cb560c6d0e0cd21fe3e09bfa498217b5532bdca243 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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" "+d5830e3d3b571fe52cdf4b7b34be99be74dc65ea" "test" "--frozen" "--no-run" "--message-format=json" "--target" "i686-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] c8fa9a8343470acbf21b0b0e690fc5dab0d3d0afbb63d2285dd3527b779bb127 [INFO] running `Command { std: "docker" "start" "-a" "c8fa9a8343470acbf21b0b0e690fc5dab0d3d0afbb63d2285dd3527b779bb127", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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.68s [INFO] running `Command { std: "docker" "inspect" "c8fa9a8343470acbf21b0b0e690fc5dab0d3d0afbb63d2285dd3527b779bb127", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8fa9a8343470acbf21b0b0e690fc5dab0d3d0afbb63d2285dd3527b779bb127", kill_on_drop: false }` [INFO] [stdout] c8fa9a8343470acbf21b0b0e690fc5dab0d3d0afbb63d2285dd3527b779bb127 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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" "+d5830e3d3b571fe52cdf4b7b34be99be74dc65ea" "test" "--frozen" "--target" "i686-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 22e72ba759ab75e37c4ff63084bb5b55d2dd17a8b2a1af025b392bc522831e95 [INFO] running `Command { std: "docker" "start" "-a" "22e72ba759ab75e37c4ff63084bb5b55d2dd17a8b2a1af025b392bc522831e95", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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.23s [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_k_works ... ok [INFO] [stdout] test worked_problems::shift_2d_grid::tests::shift_mxn_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 ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- worked_problems::top_k_frequent_elements::tests::working stdout ---- [INFO] [stdout] [2, 1] [INFO] [stdout] thread 'worked_problems::top_k_frequent_elements::tests::working' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `[1, 2]`, [INFO] [stdout] right: `[2, 1]`', src/worked_problems/top_k_frequent_elements.rs:43:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x80bc9f1 - std::backtrace_rs::backtrace::libunwind::trace::hd97f390175e4d375 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x80bc9f1 - std::backtrace_rs::backtrace::trace_unsynchronized::h9e4d1346fdbe15c5 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x80bc9f1 - std::sys_common::backtrace::_print_fmt::h2d3f477d48c20ea8 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/sys_common/backtrace.rs:65:5 [INFO] [stdout] 3: 0x80bc9f1 - ::fmt::h2e4fc3d0b8c80e4b [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stdout] 4: 0x80f98ec - core::fmt::write::h4ab0d13aa1c0ffdf [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/core/src/fmt/mod.rs:1213:17 [INFO] [stdout] 5: 0x80ba13b - std::io::Write::write_fmt::hc0e5cbe2e336a35c [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/io/mod.rs:1682:15 [INFO] [stdout] 6: 0x80bc7f6 - std::sys_common::backtrace::_print::he83a0656b60804f4 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stdout] 7: 0x80bc7f6 - std::sys_common::backtrace::print::he5889ca5768e8d1c [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stdout] 8: 0x80be3d5 - std::panicking::default_hook::{{closure}}::ha81712de98b54398 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/panicking.rs:267:22 [INFO] [stdout] 9: 0x80be0d5 - std::panicking::default_hook::he5857a041ac6b670 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/panicking.rs:283:9 [INFO] [stdout] 10: 0x809c20c - core::ops::function::Fn::call::h47ada2d4dc8687c6 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/core/src/ops/function.rs:79:5 [INFO] [stdout] 11: 0x8092719 - as core::ops::function::Fn>::call::h32210aeb8cc578f9 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/alloc/src/boxed.rs:2002:9 [INFO] [stdout] 12: 0x8092719 - test::test_main::{{closure}}::h8466694f5bd858c9 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/test/src/lib.rs:135:21 [INFO] [stdout] 13: 0x80beb11 - as core::ops::function::Fn>::call::h5bc67f704e9605b2 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/alloc/src/boxed.rs:2002:9 [INFO] [stdout] 14: 0x80beb11 - std::panicking::rust_panic_with_hook::h764b8fe75e8ba68c [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/panicking.rs:692:13 [INFO] [stdout] 15: 0x80be8cc - std::panicking::begin_panic_handler::{{closure}}::h04438436866ada8a [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/panicking.rs:579:13 [INFO] [stdout] 16: 0x80bce6a - std::sys_common::backtrace::__rust_end_short_backtrace::hb43e7524728cf453 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/sys_common/backtrace.rs:137:18 [INFO] [stdout] 17: 0x80be5a3 - rust_begin_unwind [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/panicking.rs:575:5 [INFO] [stdout] 18: 0x804c600 - core::panicking::panic_fmt::ha026792c47a5830b [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/core/src/panicking.rs:64:14 [INFO] [stdout] 19: 0x804c97b - core::panicking::assert_failed_inner::h1e9c902f12865031 [INFO] [stdout] 20: 0x80642fd - core::panicking::assert_failed::h21e8a01352f4b54f [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/core/src/panicking.rs:212:5 [INFO] [stdout] 21: 0x805f096 - leest::worked_problems::top_k_frequent_elements::tests::working::h5700fe6582835067 [INFO] [stdout] at /opt/rustwide/workdir/src/worked_problems/top_k_frequent_elements.rs:43:9 [INFO] [stdout] 22: 0x805ee77 - leest::worked_problems::top_k_frequent_elements::tests::working::{{closure}}::h34e96a722a6a695c [INFO] [stdout] at /opt/rustwide/workdir/src/worked_problems/top_k_frequent_elements.rs:42:18 [INFO] [stdout] 23: 0x805d14d - core::ops::function::FnOnce::call_once::h126e54d5f12970e4 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x80971ae - core::ops::function::FnOnce::call_once::h3969063a3b87f847 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x80971ae - test::__rust_begin_short_backtrace::h4b8703a824c9f4d1 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/test/src/lib.rs:656:18 [INFO] [stdout] 26: 0x806af00 - test::run_test::{{closure}}::he242fd19981fa5cd [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/test/src/lib.rs:647:30 [INFO] [stdout] 27: 0x806af00 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h706575526aa71778 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 28: 0x80962e7 - as core::ops::function::FnOnce>::call_once::hafe155c229ed3840 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/alloc/src/boxed.rs:1988:9 [INFO] [stdout] 29: 0x80962e7 - as core::ops::function::FnOnce<()>>::call_once::hccf8545804efeabc [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 30: 0x80962e7 - std::panicking::try::do_call::h14c088d0ccd71a85 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/panicking.rs:483:40 [INFO] [stdout] 31: 0x80962e7 - std::panicking::try::h5bee4f0fb041d03c [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/panicking.rs:447:19 [INFO] [stdout] 32: 0x80962e7 - std::panic::catch_unwind::hc4a3b19ca4039446 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/panic.rs:140:14 [INFO] [stdout] 33: 0x80962e7 - test::run_test_in_process::h01c4cf5424b4aa16 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/test/src/lib.rs:679:27 [INFO] [stdout] 34: 0x80962e7 - test::run_test::run_test_inner::{{closure}}::h2b730e73e85dc07e [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/test/src/lib.rs:573:39 [INFO] [stdout] 35: 0x806562a - test::run_test::run_test_inner::{{closure}}::h1e6de70351d982ef [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/test/src/lib.rs:600:37 [INFO] [stdout] 36: 0x806562a - std::sys_common::backtrace::__rust_begin_short_backtrace::h11ed077933f178e3 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/sys_common/backtrace.rs:121:18 [INFO] [stdout] 37: 0x806afdb - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha60d98b360ed53c8 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/thread/mod.rs:558:17 [INFO] [stdout] 38: 0x806afdb - as core::ops::function::FnOnce<()>>::call_once::h5e10cae340573322 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 39: 0x806afdb - std::panicking::try::do_call::h47dd5d7a0750d636 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/panicking.rs:483:40 [INFO] [stdout] 40: 0x806afdb - std::panicking::try::hcaac73f0ac4cf9b2 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/panicking.rs:447:19 [INFO] [stdout] 41: 0x806afdb - std::panic::catch_unwind::h9fe9d263cb0da10f [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/panic.rs:140:14 [INFO] [stdout] 42: 0x806afdb - std::thread::Builder::spawn_unchecked_::{{closure}}::h2c0f796f4234fbbe [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 43: 0x806afdb - core::ops::function::FnOnce::call_once{{vtable.shim}}::hd8a5d36b54e84e44 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 44: 0x80c2a3d - as core::ops::function::FnOnce>::call_once::hbac986b07f477b52 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/alloc/src/boxed.rs:1988:9 [INFO] [stdout] 45: 0x80c2a3d - as core::ops::function::FnOnce>::call_once::h5768035ad531add2 [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/alloc/src/boxed.rs:1988:9 [INFO] [stdout] 46: 0x80c2a3d - std::sys::unix::thread::Thread::new::thread_start::h48056988cddec68b [INFO] [stdout] at /rustc/d5830e3d3b571fe52cdf4b7b34be99be74dc65ea/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] worked_problems::top_k_frequent_elements::tests::working [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin leest` [INFO] running `Command { std: "docker" "inspect" "22e72ba759ab75e37c4ff63084bb5b55d2dd17a8b2a1af025b392bc522831e95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22e72ba759ab75e37c4ff63084bb5b55d2dd17a8b2a1af025b392bc522831e95", kill_on_drop: false }` [INFO] [stdout] 22e72ba759ab75e37c4ff63084bb5b55d2dd17a8b2a1af025b392bc522831e95