[INFO] cloning repository https://github.com/racgoo/Rust-Clean-Code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/racgoo/Rust-Clean-Code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fracgoo%2FRust-Clean-Code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fracgoo%2FRust-Clean-Code'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fracgoo%2FRust-Clean-Code: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/racgoo/Rust-Clean-Code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/racgoo/Rust-Clean-Code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fracgoo%2FRust-Clean-Code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fracgoo%2FRust-Clean-Code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 052b1a550775a4a3a92d7eff0d351de37b1f0994 [INFO] checking racgoo/Rust-Clean-Code against master#4847d6a9d07d4be9ba3196f6ad444af2d7bdde72 for pr-134276 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fracgoo%2FRust-Clean-Code" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/racgoo/Rust-Clean-Code on toolchain 4847d6a9d07d4be9ba3196f6ad444af2d7bdde72 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/racgoo/Rust-Clean-Code [INFO] finished tweaking git repo https://github.com/racgoo/Rust-Clean-Code [INFO] tweaked toml for git repo https://github.com/racgoo/Rust-Clean-Code written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/racgoo/Rust-Clean-Code 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" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "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-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d9b00684ddf2bd7460664002856ab20b784da326f0b6f8cb3f2bfe21345d5102 [INFO] running `Command { std: "docker" "start" "-a" "d9b00684ddf2bd7460664002856ab20b784da326f0b6f8cb3f2bfe21345d5102", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d9b00684ddf2bd7460664002856ab20b784da326f0b6f8cb3f2bfe21345d5102", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9b00684ddf2bd7460664002856ab20b784da326f0b6f8cb3f2bfe21345d5102", kill_on_drop: false }` [INFO] [stdout] d9b00684ddf2bd7460664002856ab20b784da326f0b6f8cb3f2bfe21345d5102 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b6f96b9400e0b9981f5d7539c643ea061165da8548dd25aedbcdae86e11b5df [INFO] running `Command { std: "docker" "start" "-a" "0b6f96b9400e0b9981f5d7539c643ea061165da8548dd25aedbcdae86e11b5df", kill_on_drop: false }` [INFO] [stderr] Checking fivelinesrust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::examples` [INFO] [stdout] --> src/examples/composition.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::examples; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/examples/method_extract.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | if (apple.fresh) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 9 - if (apple.fresh) { [INFO] [stdout] 9 + if apple.fresh { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/examples/method_extract.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | if (apple.fresh) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - if (apple.fresh) { [INFO] [stdout] 33 + if apple.fresh { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::examples` [INFO] [stdout] --> src/examples/composition.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::examples; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/examples/method_extract.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | if (apple.fresh) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 9 - if (apple.fresh) { [INFO] [stdout] 9 + if apple.fresh { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/examples/method_extract.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | if (apple.fresh) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - if (apple.fresh) { [INFO] [stdout] 33 + if apple.fresh { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Apple` is never constructed [INFO] [stdout] --> src/examples/method_extract.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Apple { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `raw_get_average_price_of_apples` is never used [INFO] [stdout] --> src/examples/method_extract.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn raw_get_average_price_of_apples(apples: Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Apple` is never constructed [INFO] [stdout] --> src/examples/method_extract.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Apple { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_average_price_of_apples` is never used [INFO] [stdout] --> src/examples/method_extract.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn get_average_price_of_apples(apples: Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_price_of_apples` is never used [INFO] [stdout] --> src/examples/method_extract.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn get_price_of_apples(apples: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `raw_get_average_price_of_apples` is never used [INFO] [stdout] --> src/examples/method_extract.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn raw_get_average_price_of_apples(apples: Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_price_of_apple` is never used [INFO] [stdout] --> src/examples/method_extract.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn get_price_of_apple(apple: &Apple) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_average_price_of_apples` is never used [INFO] [stdout] --> src/examples/method_extract.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn get_average_price_of_apples(apples: Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_length_of_apples` is never used [INFO] [stdout] --> src/examples/method_extract.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn get_length_of_apples(apples: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_price_of_apples` is never used [INFO] [stdout] --> src/examples/method_extract.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn get_price_of_apples(apples: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_price_of_apple` is never used [INFO] [stdout] --> src/examples/method_extract.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn get_price_of_apple(apple: &Apple) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Animal` is never used [INFO] [stdout] --> src/examples/transfer_enum_to_class.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | trait Animal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_length_of_apples` is never used [INFO] [stdout] --> src/examples/method_extract.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn get_length_of_apples(apples: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Animal` is never used [INFO] [stdout] --> src/examples/transfer_enum_to_class.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | trait Animal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dog` is never constructed [INFO] [stdout] --> src/examples/transfer_enum_to_class.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct Dog {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cat` is never constructed [INFO] [stdout] --> src/examples/transfer_enum_to_class.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Cat {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dog` is never constructed [INFO] [stdout] --> src/examples/transfer_enum_to_class.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct Dog {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Duck` is never constructed [INFO] [stdout] --> src/examples/transfer_enum_to_class.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct Duck {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cat` is never constructed [INFO] [stdout] --> src/examples/transfer_enum_to_class.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Cat {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_sound` is never used [INFO] [stdout] --> src/examples/transfer_enum_to_class.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn make_sound(animal: impl Animal) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Duck` is never constructed [INFO] [stdout] --> src/examples/transfer_enum_to_class.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct Duck {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_sound` is never used [INFO] [stdout] --> src/examples/transfer_enum_to_class.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn make_sound(animal: impl Animal) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] running `Command { std: "docker" "inspect" "0b6f96b9400e0b9981f5d7539c643ea061165da8548dd25aedbcdae86e11b5df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b6f96b9400e0b9981f5d7539c643ea061165da8548dd25aedbcdae86e11b5df", kill_on_drop: false }` [INFO] [stdout] 0b6f96b9400e0b9981f5d7539c643ea061165da8548dd25aedbcdae86e11b5df