[INFO] cloning repository https://github.com/chanonchanpiwat/data-struct [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chanonchanpiwat/data-struct" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchanonchanpiwat%2Fdata-struct", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchanonchanpiwat%2Fdata-struct'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 843f711006bd26b4e8b2bfa8e20a5bf0658fee2d [INFO] checking chanonchanpiwat/data-struct against try#c6f1a85c8f06c93ddc6200caf413929a2e7e7dd6 for pr-145463 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchanonchanpiwat%2Fdata-struct" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/chanonchanpiwat/data-struct [INFO] finished tweaking git repo https://github.com/chanonchanpiwat/data-struct [INFO] tweaked toml for git repo https://github.com/chanonchanpiwat/data-struct written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chanonchanpiwat/data-struct on toolchain c6f1a85c8f06c93ddc6200caf413929a2e7e7dd6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c6f1a85c8f06c93ddc6200caf413929a2e7e7dd6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/chanonchanpiwat/data-struct 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" "+c6f1a85c8f06c93ddc6200caf413929a2e7e7dd6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c6f1a85c8f06c93ddc6200caf413929a2e7e7dd6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e591f0a9189997813475181697952eb59479629322718a068ed4c801dfbe3ce1 [INFO] running `Command { std: "docker" "start" "-a" "e591f0a9189997813475181697952eb59479629322718a068ed4c801dfbe3ce1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e591f0a9189997813475181697952eb59479629322718a068ed4c801dfbe3ce1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e591f0a9189997813475181697952eb59479629322718a068ed4c801dfbe3ce1", kill_on_drop: false }` [INFO] [stdout] e591f0a9189997813475181697952eb59479629322718a068ed4c801dfbe3ce1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c6f1a85c8f06c93ddc6200caf413929a2e7e7dd6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 44d3d91ff75e49b019178b32657e656daffe0470547d323deaeaf300951dfbcd [INFO] running `Command { std: "docker" "start" "-a" "44d3d91ff75e49b019178b32657e656daffe0470547d323deaeaf300951dfbcd", kill_on_drop: false }` [INFO] [stderr] Checking data-structure v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `cmp::Ordering` and `fmt` [INFO] [stdout] --> src/data/heap.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::Ordering, fmt}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp::Ordering` and `fmt` [INFO] [stdout] --> src/data/heap.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp::Ordering, fmt}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/data/pair.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/data/pair.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 9 | impl Pair { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(first: T, second: U)-> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp` is never used [INFO] [stdout] --> src/data/pair.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 16 | / impl Pair [INFO] [stdout] 17 | | where [INFO] [stdout] 18 | | T: Ord, [INFO] [stdout] 19 | | U: Ord, [INFO] [stdout] | |___________- method in this implementation [INFO] [stdout] 20 | { [INFO] [stdout] 21 | pub fn cmp(&self, other: &Self) -> std::cmp::Ordering { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, and `pop` are never used [INFO] [stdout] --> src/data/vec.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Vec { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn push(&mut self, elem: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `grow` is never used [INFO] [stdout] --> src/data/vec.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vec { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 45 | fn grow(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stack` is never constructed [INFO] [stdout] --> src/data/stack.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `pop`, and `top` are never used [INFO] [stdout] --> src/data/stack.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 10 | impl Stack { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn push(&mut self, element: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn top(&self) -> Option<&T> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MinHeap` is never constructed [INFO] [stdout] --> src/data/heap.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct MinHeap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_parent`, `get_left_child`, `get_right_child`, `insert`, and `pop` are never used [INFO] [stdout] --> src/data/heap.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 7 | / impl MinHeap [INFO] [stdout] 8 | | where [INFO] [stdout] 9 | | T: Ord + Copy, [INFO] [stdout] | |__________________- associated items in this implementation [INFO] [stdout] 10 | { [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn get_parent(&self, child: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn get_left_child(&self, parent: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn get_right_child(&self, parent: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn insert(&mut self, element: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, and `pop` are never used [INFO] [stdout] --> src/data/vec.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Vec { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn push(&mut self, elem: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `grow` is never used [INFO] [stdout] --> src/data/vec.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Vec { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 45 | fn grow(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minHeap` should have a snake case name [INFO] [stdout] --> src/data/heap.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | let mut minHeap: MinHeap = MinHeap::new(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_heap` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "44d3d91ff75e49b019178b32657e656daffe0470547d323deaeaf300951dfbcd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44d3d91ff75e49b019178b32657e656daffe0470547d323deaeaf300951dfbcd", kill_on_drop: false }` [INFO] [stdout] 44d3d91ff75e49b019178b32657e656daffe0470547d323deaeaf300951dfbcd