[INFO] cloning repository https://github.com/Amansinghtech/rust-practice
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Amansinghtech/rust-practice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmansinghtech%2Frust-practice", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmansinghtech%2Frust-practice'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 7a70e8a11f6bedaeafde51e86c06482288979f57
[INFO] checking Amansinghtech/rust-practice against master#36b21637e93b038453924d3c66821089e71d8baa for pr-143164
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmansinghtech%2Frust-practice" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Amansinghtech/rust-practice
[INFO] finished tweaking git repo https://github.com/Amansinghtech/rust-practice
[INFO] tweaked toml for git repo https://github.com/Amansinghtech/rust-practice written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Amansinghtech/rust-practice on toolchain 36b21637e93b038453924d3c66821089e71d8baa
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Amansinghtech/rust-practice 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" "+36b21637e93b038453924d3c66821089e71d8baa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8413f7278e0ce99916ba4d1e1233ff183b9a6c1b851319dda803bca2ee461809
[INFO] running `Command { std: "docker" "start" "-a" "8413f7278e0ce99916ba4d1e1233ff183b9a6c1b851319dda803bca2ee461809", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8413f7278e0ce99916ba4d1e1233ff183b9a6c1b851319dda803bca2ee461809", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8413f7278e0ce99916ba4d1e1233ff183b9a6c1b851319dda803bca2ee461809", kill_on_drop: false }`
[INFO] [stdout] 8413f7278e0ce99916ba4d1e1233ff183b9a6c1b851319dda803bca2ee461809
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7019e4bc5aa800f9e4ff73fb1555e1deec3654f5f9f0dbe5f9750e307d137057
[INFO] running `Command { std: "docker" "start" "-a" "7019e4bc5aa800f9e4ff73fb1555e1deec3654f5f9f0dbe5f9750e307d137057", kill_on_drop: false }`
[INFO] [stderr]     Checking Rust-Practice v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::ops::Index`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::ops::Index;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Index`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::ops::Index;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `a` is never read
[INFO] [stdout]   --> src/main.rs:37:13
[INFO] [stdout]    |
[INFO] [stdout] 37 |     let mut a = 5; // mutable variable declaration
[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: `nums`
[INFO] [stdout]    --> src/main.rs:155:9
[INFO] [stdout]     |
[INFO] [stdout] 155 |     let nums = [1, 2, 3, 4, 5];
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_nums`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `nums2`
[INFO] [stdout]    --> src/main.rs:156:9
[INFO] [stdout]     |
[INFO] [stdout] 156 |     let nums2: [i8; 10] = [1,2,3,4,5,6,7,8,9,10];
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_nums2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `nums3`
[INFO] [stdout]    --> src/main.rs:157:9
[INFO] [stdout]     |
[INFO] [stdout] 157 |     let nums3 = [1; 5]; // [1, 1, 1, 1, 1] array with 5 elements with value 1
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_nums3`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:254:13
[INFO] [stdout]     |
[INFO] [stdout] 254 |         let mut sum: i32 = x + y;
[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/main.rs:257:13
[INFO] [stdout]     |
[INFO] [stdout] 257 |         let mut result: i32 = sum * sum;
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Down`, `Left`, and `Right` are never constructed
[INFO] [stdout]    --> src/main.rs:115:9
[INFO] [stdout]     |
[INFO] [stdout] 113 |     enum Direction {
[INFO] [stdout]     |          --------- variants in this enum
[INFO] [stdout] 114 |         Up,
[INFO] [stdout] 115 |         Down,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 116 |         Left,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 117 |         Right
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `a` is never read
[INFO] [stdout]   --> src/main.rs:37:13
[INFO] [stdout]    |
[INFO] [stdout] 37 |     let mut a = 5; // mutable variable declaration
[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: `nums`
[INFO] [stdout]    --> src/main.rs:155:9
[INFO] [stdout]     |
[INFO] [stdout] 155 |     let nums = [1, 2, 3, 4, 5];
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_nums`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `nums2`
[INFO] [stdout]    --> src/main.rs:156:9
[INFO] [stdout]     |
[INFO] [stdout] 156 |     let nums2: [i8; 10] = [1,2,3,4,5,6,7,8,9,10];
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_nums2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `nums3`
[INFO] [stdout]    --> src/main.rs:157:9
[INFO] [stdout]     |
[INFO] [stdout] 157 |     let nums3 = [1; 5]; // [1, 1, 1, 1, 1] array with 5 elements with value 1
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_nums3`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:254:13
[INFO] [stdout]     |
[INFO] [stdout] 254 |         let mut sum: i32 = x + y;
[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/main.rs:257:13
[INFO] [stdout]     |
[INFO] [stdout] 257 |         let mut result: i32 = sum * sum;
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Down`, `Left`, and `Right` are never constructed
[INFO] [stdout]    --> src/main.rs:115:9
[INFO] [stdout]     |
[INFO] [stdout] 113 |     enum Direction {
[INFO] [stdout]     |          --------- variants in this enum
[INFO] [stdout] 114 |         Up,
[INFO] [stdout] 115 |         Down,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 116 |         Left,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 117 |         Right
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.26s
[INFO] running `Command { std: "docker" "inspect" "7019e4bc5aa800f9e4ff73fb1555e1deec3654f5f9f0dbe5f9750e307d137057", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7019e4bc5aa800f9e4ff73fb1555e1deec3654f5f9f0dbe5f9750e307d137057", kill_on_drop: false }`
[INFO] [stdout] 7019e4bc5aa800f9e4ff73fb1555e1deec3654f5f9f0dbe5f9750e307d137057
