[INFO] cloning repository https://github.com/goodfeeling/rust-datastruct [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/goodfeeling/rust-datastruct" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoodfeeling%2Frust-datastruct", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoodfeeling%2Frust-datastruct'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 361872d6328f68077073b416ba4bf14235b027c5 [INFO] checking goodfeeling/rust-datastruct against master#e3e432d4d65a55e6db167598e96db2bcb163e316 for pr-140313 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoodfeeling%2Frust-datastruct" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/goodfeeling/rust-datastruct on toolchain e3e432d4d65a55e6db167598e96db2bcb163e316 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e3e432d4d65a55e6db167598e96db2bcb163e316" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/goodfeeling/rust-datastruct [INFO] finished tweaking git repo https://github.com/goodfeeling/rust-datastruct [INFO] tweaked toml for git repo https://github.com/goodfeeling/rust-datastruct written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/goodfeeling/rust-datastruct 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" "+e3e432d4d65a55e6db167598e96db2bcb163e316" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+e3e432d4d65a55e6db167598e96db2bcb163e316" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9554a1e2ed005f1bd0da855480d5292a1d8f9fcebe22642dbe0361c1d7b7d412 [INFO] running `Command { std: "docker" "start" "-a" "9554a1e2ed005f1bd0da855480d5292a1d8f9fcebe22642dbe0361c1d7b7d412", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9554a1e2ed005f1bd0da855480d5292a1d8f9fcebe22642dbe0361c1d7b7d412", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9554a1e2ed005f1bd0da855480d5292a1d8f9fcebe22642dbe0361c1d7b7d412", kill_on_drop: false }` [INFO] [stdout] 9554a1e2ed005f1bd0da855480d5292a1d8f9fcebe22642dbe0361c1d7b7d412 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+e3e432d4d65a55e6db167598e96db2bcb163e316" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e70029b97a9f34cdaeead09b5f6744fff4d88f13cc693cfe57f66994933e5853 [INFO] running `Command { std: "docker" "start" "-a" "e70029b97a9f34cdaeead09b5f6744fff4d88f13cc693cfe57f66994933e5853", kill_on_drop: false }` [INFO] [stderr] Checking datastruct v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `is_inc` [INFO] [stdout] --> src/Arrays/array_queue.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | fn resize(&mut self, is_inc: bool) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_inc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_inc` [INFO] [stdout] --> src/Arrays/array_queue.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | fn resize(&mut self, is_inc: bool) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_inc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Student` is never constructed [INFO] [stdout] --> src/main.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Student { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Student` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [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/main.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Student { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 10 | pub fn new(name: String) -> Student { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/Arrays/arr.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Array { [INFO] [stdout] | ----------------------------------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(capacity: usize) -> Array { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_capacity(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn push(&mut self, value: T) [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn get_first(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn set(&mut self, index: usize, e: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn contains(&self, e: T) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn find(&self, e: T) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn remove_last(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn remove_element(&mut self, e: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_string` are never used [INFO] [stdout] --> src/Arrays/array_queue.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ArrayQueue { [INFO] [stdout] | ----------------------------------------------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(capacity: usize) -> ArrayQueue { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_capacity`, and `to_string` are never used [INFO] [stdout] --> src/Arrays/array_stack.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ArrayStack { [INFO] [stdout] | ---------------------------------------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(capacity: usize) -> ArrayStack { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn get_capacity(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_size` and `get_front` are never used [INFO] [stdout] --> src/Arrays/queue.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Queue { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 2 | fn get_size(&self) -> usize; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | fn get_front(&self) -> Option; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_size`, `is_empty`, `push`, `pop`, and `peek` are never used [INFO] [stdout] --> src/Arrays/stack.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Stack [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 7 | fn get_size(&self) -> usize; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | fn is_empty(&self) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | fn push(&mut self, e: E); [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | fn pop(&mut self) -> Option; [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | fn peek(&self) -> Option; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Arrays` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Arrays; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `arrays` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Student` is never constructed [INFO] [stdout] --> src/main.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Student { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Student` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [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/main.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Student { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 10 | pub fn new(name: String) -> Student { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/Arrays/arr.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Array { [INFO] [stdout] | ----------------------------------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(capacity: usize) -> Array { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_capacity(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn push(&mut self, value: T) [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn get_first(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn set(&mut self, index: usize, e: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn contains(&self, e: T) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn find(&self, e: T) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn remove_last(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn remove_element(&mut self, e: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_string` are never used [INFO] [stdout] --> src/Arrays/array_queue.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ArrayQueue { [INFO] [stdout] | ----------------------------------------------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(capacity: usize) -> ArrayQueue { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_capacity`, and `to_string` are never used [INFO] [stdout] --> src/Arrays/array_stack.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ArrayStack { [INFO] [stdout] | ---------------------------------------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(capacity: usize) -> ArrayStack { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn get_capacity(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_size` and `get_front` are never used [INFO] [stdout] --> src/Arrays/queue.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Queue { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 2 | fn get_size(&self) -> usize; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | fn get_front(&self) -> Option; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_size`, `is_empty`, `push`, `pop`, and `peek` are never used [INFO] [stdout] --> src/Arrays/stack.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Stack [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 7 | fn get_size(&self) -> usize; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | fn is_empty(&self) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | fn push(&mut self, e: E); [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | fn pop(&mut self) -> Option; [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | fn peek(&self) -> Option; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Arrays` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Arrays; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `arrays` [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.12s [INFO] running `Command { std: "docker" "inspect" "e70029b97a9f34cdaeead09b5f6744fff4d88f13cc693cfe57f66994933e5853", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e70029b97a9f34cdaeead09b5f6744fff4d88f13cc693cfe57f66994933e5853", kill_on_drop: false }` [INFO] [stdout] e70029b97a9f34cdaeead09b5f6744fff4d88f13cc693cfe57f66994933e5853