[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 master#cced03bfd61a304243a34504618ecec86c17063f for pr-154065-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGearhartlove%2Fleest" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[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-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Gearhartlove/leest on toolchain cced03bfd61a304243a34504618ecec86c17063f
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+cced03bfd61a304243a34504618ecec86c17063f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8f5c389057d9f58728227fc88382bf12d74d4f4112e85f706f21db1093fbb51d
[INFO] running `Command { std: "docker" "start" "-a" "8f5c389057d9f58728227fc88382bf12d74d4f4112e85f706f21db1093fbb51d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8f5c389057d9f58728227fc88382bf12d74d4f4112e85f706f21db1093fbb51d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8f5c389057d9f58728227fc88382bf12d74d4f4112e85f706f21db1093fbb51d", kill_on_drop: false }`
[INFO] [stdout] 8f5c389057d9f58728227fc88382bf12d74d4f4112e85f706f21db1093fbb51d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 86e56aa11f91a023b8f625ab35226e1226a4467020f1e62d61ed6b59c9352952
[INFO] running `Command { std: "docker" "start" "-a" "86e56aa11f91a023b8f625ab35226e1226a4467020f1e62d61ed6b59c9352952", 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `new_score` is never read
[INFO] [stdout]   --> src/worked_problems/baseball_game.rs:42:43
[INFO] [stdout]    |
[INFO] [stdout] 42 |                  let mut new_score: i32 = 0;
[INFO] [stdout]    |                                           ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 45 |                  new_score = last_element + second_last_element ;
[INFO] [stdout]    |                  ---------------------------------------------- `new_score` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: unused variable: `result_matrix`
[INFO] [stdout]   --> src/worked_problems/shift_2d_grid.rs:34:13
[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: 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)]` (part of `#[warn(unused)]`) 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] 37 | impl Ops {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] 38 |     pub fn handle_ops(op: Ops, record: &mut Vec<i32>) -> Option<bool> {
[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<i32>, k: i32) -> Vec<i32> {
[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<Vec<i32>>, shift: i32) -> Vec<Vec<i32>> {
[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)]` (part of `#[warn(nonstandard_style)]`) 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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 40 |             let _ = std::mem::replace(&mut row[adjusted_new_index], **k);
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s
[INFO] running `Command { std: "docker" "inspect" "86e56aa11f91a023b8f625ab35226e1226a4467020f1e62d61ed6b59c9352952", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "86e56aa11f91a023b8f625ab35226e1226a4467020f1e62d61ed6b59c9352952", kill_on_drop: false }`
[INFO] [stdout] 86e56aa11f91a023b8f625ab35226e1226a4467020f1e62d61ed6b59c9352952
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a0bb51c503c9e8e3ce1a92c9caf59663d163e6bd9478cb3f54435a5ab254a5a9
[INFO] running `Command { std: "docker" "start" "-a" "a0bb51c503c9e8e3ce1a92c9caf59663d163e6bd9478cb3f54435a5ab254a5a9", 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `new_score` is never read
[INFO] [stdout]   --> src/worked_problems/baseball_game.rs:42:43
[INFO] [stdout]    |
[INFO] [stdout] 42 |                  let mut new_score: i32 = 0;
[INFO] [stdout]    |                                           ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 45 |                  new_score = last_element + second_last_element ;
[INFO] [stdout]    |                  ---------------------------------------------- `new_score` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: unused variable: `result_matrix`
[INFO] [stdout]   --> src/worked_problems/shift_2d_grid.rs:34:13
[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: 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(nonstandard_style)]`) 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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 40 |             let _ = std::mem::replace(&mut row[adjusted_new_index], **k);
[INFO] [stdout]    |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.94s
[INFO] running `Command { std: "docker" "inspect" "a0bb51c503c9e8e3ce1a92c9caf59663d163e6bd9478cb3f54435a5ab254a5a9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a0bb51c503c9e8e3ce1a92c9caf59663d163e6bd9478cb3f54435a5ab254a5a9", kill_on_drop: false }`
[INFO] [stdout] a0bb51c503c9e8e3ce1a92c9caf59663d163e6bd9478cb3f54435a5ab254a5a9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 95a44068c66f8cb8c7cf735da12d0506a02edba3a2ad1d4593eadfb7ec102deb
[INFO] running `Command { std: "docker" "start" "-a" "95a44068c66f8cb8c7cf735da12d0506a02edba3a2ad1d4593eadfb7ec102deb", 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `new_score` is never read
[INFO] [stderr]   --> src/worked_problems/baseball_game.rs:42:43
[INFO] [stderr]    |
[INFO] [stderr] 42 |                  let mut new_score: i32 = 0;
[INFO] [stderr]    |                                           ^ this value is reassigned later and never used
[INFO] [stderr] ...
[INFO] [stderr] 45 |                  new_score = last_element + second_last_element ;
[INFO] [stderr]    |                  ---------------------------------------------- `new_score` is overwritten here before the previous value is read
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: unused variable: `result_matrix`
[INFO] [stderr]   --> src/worked_problems/shift_2d_grid.rs:34:13
[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: 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(nonstandard_style)]`) 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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]    |
[INFO] [stderr] 40 |             let _ = std::mem::replace(&mut row[adjusted_new_index], **k);
[INFO] [stderr]    |             +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: `leest` (bin "leest" test) generated 13 warnings (run `cargo fix --bin "leest" -p leest --tests` to apply 7 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/leest-56b8f391c7559603)
[INFO] [stdout] 
[INFO] [stdout] running 5 tests
[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] test worked_problems::shift_2d_grid::tests::shift_nxn_works ... ok
[INFO] [stdout] test worked_problems::baseball_game::tests::baseball_works ... ok
[INFO] [stdout] test worked_problems::top_k_frequent_elements::tests::working ... 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" "95a44068c66f8cb8c7cf735da12d0506a02edba3a2ad1d4593eadfb7ec102deb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "95a44068c66f8cb8c7cf735da12d0506a02edba3a2ad1d4593eadfb7ec102deb", kill_on_drop: false }`
[INFO] [stdout] 95a44068c66f8cb8c7cf735da12d0506a02edba3a2ad1d4593eadfb7ec102deb
