[INFO] cloning repository https://github.com/RandyBoBandy92/learning-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RandyBoBandy92/learning-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRandyBoBandy92%2Flearning-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRandyBoBandy92%2Flearning-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6e89cdd834517b5084a6d4d7d1c5907176ad0155 [INFO] checking RandyBoBandy92/learning-rust against master#17ffbc81a30c094193836a5d7f90dff273b5df93 for pr-138785 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRandyBoBandy92%2Flearning-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RandyBoBandy92/learning-rust on toolchain 17ffbc81a30c094193836a5d7f90dff273b5df93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/RandyBoBandy92/learning-rust [INFO] finished tweaking git repo https://github.com/RandyBoBandy92/learning-rust [INFO] tweaked toml for git repo https://github.com/RandyBoBandy92/learning-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/RandyBoBandy92/learning-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" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5cf043635dbdff2a15c653d6cc13fb181ebbaeca42340b65b4e31a0eaae49c1b [INFO] running `Command { std: "docker" "start" "-a" "5cf043635dbdff2a15c653d6cc13fb181ebbaeca42340b65b4e31a0eaae49c1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5cf043635dbdff2a15c653d6cc13fb181ebbaeca42340b65b4e31a0eaae49c1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cf043635dbdff2a15c653d6cc13fb181ebbaeca42340b65b4e31a0eaae49c1b", kill_on_drop: false }` [INFO] [stdout] 5cf043635dbdff2a15c653d6cc13fb181ebbaeca42340b65b4e31a0eaae49c1b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f928abd15b1e15471cd7e6759cbcbe476787c96fcccca5cb76dee936f06f2636 [INFO] running `Command { std: "docker" "start" "-a" "f928abd15b1e15471cd7e6759cbcbe476787c96fcccca5cb76dee936f06f2636", kill_on_drop: false }` [INFO] [stderr] Checking hello-world v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Colors` and `print_color_info` [INFO] [stdout] --> src/main.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use colors::{print_color_info, Colors}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Colors` and `print_color_info` [INFO] [stdout] --> src/main.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use colors::{print_color_info, Colors}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Colors` is never used [INFO] [stdout] --> src/colors.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Colors { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_color_info` is never used [INFO] [stdout] --> src/colors.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn print_color_info(color: Colors) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bar` is never used [INFO] [stdout] --> src/foo.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn bar() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Circle` is never constructed [INFO] [stdout] --> src/shapes.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Circle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/shapes.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `area` and `get_diameter` are never used [INFO] [stdout] --> src/shapes.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Circle { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 13 | pub fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn get_diameter(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> src/shapes.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 22 | pub fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_length_of_string` is never used [INFO] [stdout] --> src/strings.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_length_of_string(s: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_num_of_word_in_string` is never used [INFO] [stdout] --> src/strings.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_num_of_word_in_string(s: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Colors` is never used [INFO] [stdout] --> src/colors.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Colors { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_color_info` is never used [INFO] [stdout] --> src/colors.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn print_color_info(color: Colors) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bar` is never used [INFO] [stdout] --> src/foo.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn bar() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Circle` is never constructed [INFO] [stdout] --> src/shapes.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Circle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/shapes.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `area` and `get_diameter` are never used [INFO] [stdout] --> src/shapes.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Circle { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 13 | pub fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn get_diameter(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> src/shapes.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 22 | pub fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_length_of_string` is never used [INFO] [stdout] --> src/strings.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn get_length_of_string(s: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_num_of_word_in_string` is never used [INFO] [stdout] --> src/strings.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_num_of_word_in_string(s: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] running `Command { std: "docker" "inspect" "f928abd15b1e15471cd7e6759cbcbe476787c96fcccca5cb76dee936f06f2636", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f928abd15b1e15471cd7e6759cbcbe476787c96fcccca5cb76dee936f06f2636", kill_on_drop: false }` [INFO] [stdout] f928abd15b1e15471cd7e6759cbcbe476787c96fcccca5cb76dee936f06f2636