[INFO] cloning repository https://github.com/iangaunt/rust-projects [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iangaunt/rust-projects" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiangaunt%2Frust-projects", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiangaunt%2Frust-projects'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f78fb975464089dac50b75de56d80881685ca3ff [INFO] checking iangaunt/rust-projects against master#4ecd70ddd1039a3954056c1071e40278048476fa for pr-137633 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiangaunt%2Frust-projects" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/iangaunt/rust-projects on toolchain 4ecd70ddd1039a3954056c1071e40278048476fa [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4ecd70ddd1039a3954056c1071e40278048476fa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/iangaunt/rust-projects [INFO] finished tweaking git repo https://github.com/iangaunt/rust-projects [INFO] tweaked toml for git repo https://github.com/iangaunt/rust-projects written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/iangaunt/rust-projects 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" "+4ecd70ddd1039a3954056c1071e40278048476fa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+4ecd70ddd1039a3954056c1071e40278048476fa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4a57d0c4e8521a39df39e65cb513f6c268610c489482ff66676f10632b6fd8aa [INFO] running `Command { std: "docker" "start" "-a" "4a57d0c4e8521a39df39e65cb513f6c268610c489482ff66676f10632b6fd8aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a57d0c4e8521a39df39e65cb513f6c268610c489482ff66676f10632b6fd8aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a57d0c4e8521a39df39e65cb513f6c268610c489482ff66676f10632b6fd8aa", kill_on_drop: false }` [INFO] [stdout] 4a57d0c4e8521a39df39e65cb513f6c268610c489482ff66676f10632b6fd8aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+4ecd70ddd1039a3954056c1071e40278048476fa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d47bfca9d9e03f5d6e997d6459128790a03984f3346ee97e767b8d7375b4cfb0 [INFO] running `Command { std: "docker" "start" "-a" "d47bfca9d9e03f5d6e997d6459128790a03984f3346ee97e767b8d7375b4cfb0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rust-projects v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `nodes::TreeNode` [INFO] [stdout] --> src/tut/structs.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nodes::TreeNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nodes::TreeNode` [INFO] [stdout] --> src/tut/structs.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nodes::TreeNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `queue` [INFO] [stdout] --> src/tut/../structs/nodes.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | let mut queue: Vec>> = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_queue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/tut/../structs/nodes.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn build_tree(&mut self, vec: Vec) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tut/../structs/nodes.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut queue: Vec>> = Vec::new(); [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: associated items `new`, `set_left`, `set_right`, and `build_tree` are never used [INFO] [stdout] --> src/tut/../structs/nodes.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl TreeNode { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 22 | #[inline] [INFO] [stdout] 23 | pub fn new(val: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn set_left(&mut self, node: TreeNode) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn set_right(&mut self, node: TreeNode) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn build_tree(&mut self, vec: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_odd` is never used [INFO] [stdout] --> src/practice/codewars.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn find_odd(arr: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `short_find_odd` is never used [INFO] [stdout] --> src/practice/codewars.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn short_find_odd(arr: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `queue` [INFO] [stdout] --> src/tut/../structs/nodes.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | let mut queue: Vec>> = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_queue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/tut/../structs/nodes.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn build_tree(&mut self, vec: Vec) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tut/../structs/nodes.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut queue: Vec>> = Vec::new(); [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: associated items `new`, `set_left`, `set_right`, and `build_tree` are never used [INFO] [stdout] --> src/tut/../structs/nodes.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl TreeNode { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 22 | #[inline] [INFO] [stdout] 23 | pub fn new(val: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn set_left(&mut self, node: TreeNode) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn set_right(&mut self, node: TreeNode) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn build_tree(&mut self, vec: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_odd` is never used [INFO] [stdout] --> src/practice/codewars.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn find_odd(arr: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `short_find_odd` is never used [INFO] [stdout] --> src/practice/codewars.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn short_find_odd(arr: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.39s [INFO] running `Command { std: "docker" "inspect" "d47bfca9d9e03f5d6e997d6459128790a03984f3346ee97e767b8d7375b4cfb0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d47bfca9d9e03f5d6e997d6459128790a03984f3346ee97e767b8d7375b4cfb0", kill_on_drop: false }` [INFO] [stdout] d47bfca9d9e03f5d6e997d6459128790a03984f3346ee97e767b8d7375b4cfb0