[INFO] cloning repository https://github.com/ramhuw/cses-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ramhuw/cses-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Framhuw%2Fcses-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Framhuw%2Fcses-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 4221077fdb5e335796a3a3e0c6d95a9ed9fe75c5
[INFO] checking ramhuw/cses-rust against 6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa for pr-159356
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Framhuw%2Fcses-rust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/ramhuw/cses-rust
[INFO] finished tweaking git repo https://github.com/ramhuw/cses-rust
[INFO] tweaked toml for git repo https://github.com/ramhuw/cses-rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ramhuw/cses-rust on toolchain 6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/ramhuw/cses-rust 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" "+6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 1f28c30e59e7377b04e6301ee813ac4d5f3e8cb98b43a41ae8d522260b4b3cfd
[INFO] running `Command { std: "docker" "start" "1f28c30e59e7377b04e6301ee813ac4d5f3e8cb98b43a41ae8d522260b4b3cfd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1f28c30e59e7377b04e6301ee813ac4d5f3e8cb98b43a41ae8d522260b4b3cfd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1f28c30e59e7377b04e6301ee813ac4d5f3e8cb98b43a41ae8d522260b4b3cfd" "/opt/rustwide/cargo-home/bin/cargo" "+6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1f28c30e59e7377b04e6301ee813ac4d5f3e8cb98b43a41ae8d522260b4b3cfd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1f28c30e59e7377b04e6301ee813ac4d5f3e8cb98b43a41ae8d522260b4b3cfd" "/opt/rustwide/cargo-home/bin/cargo" "+6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking cses-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]  --> src/bin/number_spiral.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     for i in 0..n {
[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/bin/number_spiral.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut ans: i64;
[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 `result` is never read
[INFO] [stdout]   --> src/bin/two_knights.rs:10:27
[INFO] [stdout]    |
[INFO] [stdout] 10 |       let mut result: i64 = 0;
[INFO] [stdout]    |                             ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 18 | /         result = two_nights(n - 1) + (2*n - 1)*(n-1)*(n-1) + (2*n-1)*(n-1)
[INFO] [stdout] 19 | |         - 2*((n - 2) + (n - 1) + (n - 2) + (n - 1)) + 4 ;
[INFO] [stdout]    | |_______________________________________________________- `result` 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: field `label` is never read
[INFO] [stdout]   --> src/bin/tower_of_honoi.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | struct Disk {
[INFO] [stdout]    |        ---- field in this struct
[INFO] [stdout] 25 |     label: u32,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `label` and `is_least` are never used
[INFO] [stdout]   --> src/bin/tower_of_honoi.rs:34:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | impl Disk {
[INFO] [stdout]    | --------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 34 |     fn label(&self) -> u32 {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     fn is_least(&self) -> bool {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `n` is never read
[INFO] [stdout]   --> src/bin/tower_of_honoi.rs:52:5
[INFO] [stdout]    |
[INFO] [stdout] 51 | struct Hanoi {
[INFO] [stdout]    |        ----- field in this struct
[INFO] [stdout] 52 |     n: u32,
[INFO] [stdout]    |     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/bin/string_reorder.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let mut max_value = m.clone().into_values().max().unwrap();
[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: variable does not need to be mutable
[INFO] [stdout]   --> src/bin/string_reorder.rs:18:13
[INFO] [stdout]    |
[INFO] [stdout] 18 |         let mut l = n - i;
[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/bin/string_reorder.rs:19:13
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let mut max_value = m.clone().into_values().max().unwrap();
[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/bin/string_reorder.rs:21:18
[INFO] [stdout]    |
[INFO] [stdout] 21 |             let (mut key, mut value) = match m
[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/bin/string_reorder.rs:21:27
[INFO] [stdout]    |
[INFO] [stdout] 21 |             let (mut key, mut value) = match m
[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/bin/string_reorder.rs:35:18
[INFO] [stdout]    |
[INFO] [stdout] 35 |             let (mut key, mut value) = match m
[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/bin/string_reorder.rs:35:27
[INFO] [stdout]    |
[INFO] [stdout] 35 |             let (mut key, mut value) = match m
[INFO] [stdout]    |                           ----^^^^^
[INFO] [stdout]    |                           |
[INFO] [stdout]    |                           help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_value`
[INFO] [stdout]   --> src/bin/string_reorder.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let mut max_value = m.clone().into_values().max().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_value`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `result` is never read
[INFO] [stdout]   --> src/bin/two_knights.rs:10:27
[INFO] [stdout]    |
[INFO] [stdout] 10 |       let mut result: i64 = 0;
[INFO] [stdout]    |                             ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 18 | /         result = two_nights(n - 1) + (2*n - 1)*(n-1)*(n-1) + (2*n-1)*(n-1)
[INFO] [stdout] 19 | |         - 2*((n - 2) + (n - 1) + (n - 2) + (n - 1)) + 4 ;
[INFO] [stdout]    | |_______________________________________________________- `result` 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/bin/number_spiral.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     for i in 0..n {
[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/bin/number_spiral.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut ans: i64;
[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: field `label` is never read
[INFO] [stdout]   --> src/bin/tower_of_honoi.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | struct Disk {
[INFO] [stdout]    |        ---- field in this struct
[INFO] [stdout] 25 |     label: u32,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `label` and `is_least` are never used
[INFO] [stdout]   --> src/bin/tower_of_honoi.rs:34:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | impl Disk {
[INFO] [stdout]    | --------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 34 |     fn label(&self) -> u32 {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     fn is_least(&self) -> bool {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `n` is never read
[INFO] [stdout]   --> src/bin/tower_of_honoi.rs:52:5
[INFO] [stdout]    |
[INFO] [stdout] 51 | struct Hanoi {
[INFO] [stdout]    |        ----- field in this struct
[INFO] [stdout] 52 |     n: u32,
[INFO] [stdout]    |     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/bin/string_reorder.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let mut max_value = m.clone().into_values().max().unwrap();
[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: variable does not need to be mutable
[INFO] [stdout]   --> src/bin/string_reorder.rs:18:13
[INFO] [stdout]    |
[INFO] [stdout] 18 |         let mut l = n - i;
[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/bin/string_reorder.rs:19:13
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let mut max_value = m.clone().into_values().max().unwrap();
[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/bin/string_reorder.rs:21:18
[INFO] [stdout]    |
[INFO] [stdout] 21 |             let (mut key, mut value) = match m
[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/bin/string_reorder.rs:21:27
[INFO] [stdout]    |
[INFO] [stdout] 21 |             let (mut key, mut value) = match m
[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/bin/string_reorder.rs:35:18
[INFO] [stdout]    |
[INFO] [stdout] 35 |             let (mut key, mut value) = match m
[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/bin/string_reorder.rs:35:27
[INFO] [stdout]    |
[INFO] [stdout] 35 |             let (mut key, mut value) = match m
[INFO] [stdout]    |                           ----^^^^^
[INFO] [stdout]    |                           |
[INFO] [stdout]    |                           help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_value`
[INFO] [stdout]   --> src/bin/string_reorder.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let mut max_value = m.clone().into_values().max().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_value`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.51s
[INFO] running `Command { std: "docker" "inspect" "1f28c30e59e7377b04e6301ee813ac4d5f3e8cb98b43a41ae8d522260b4b3cfd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1f28c30e59e7377b04e6301ee813ac4d5f3e8cb98b43a41ae8d522260b4b3cfd", kill_on_drop: false }`
[INFO] [stdout] 1f28c30e59e7377b04e6301ee813ac4d5f3e8cb98b43a41ae8d522260b4b3cfd
