[INFO] cloning repository https://github.com/zasekle/rust_book_chapter_10 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zasekle/rust_book_chapter_10" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzasekle%2Frust_book_chapter_10", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzasekle%2Frust_book_chapter_10'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 535480682c9232ba707fdb6275401bcda9650e21 [INFO] checking zasekle/rust_book_chapter_10 against master#b44e14f762fd4062faeba97f8f2bc470298ec1ac for pr-135331 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzasekle%2Frust_book_chapter_10" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zasekle/rust_book_chapter_10 on toolchain b44e14f762fd4062faeba97f8f2bc470298ec1ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zasekle/rust_book_chapter_10 [INFO] finished tweaking git repo https://github.com/zasekle/rust_book_chapter_10 [INFO] tweaked toml for git repo https://github.com/zasekle/rust_book_chapter_10 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/zasekle/rust_book_chapter_10 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" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c4e0ca80588c31f9886e300e3c814d05201fe335b9b83be717a7c7ce1bf25025 [INFO] running `Command { std: "docker" "start" "-a" "c4e0ca80588c31f9886e300e3c814d05201fe335b9b83be717a7c7ce1bf25025", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c4e0ca80588c31f9886e300e3c814d05201fe335b9b83be717a7c7ce1bf25025", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4e0ca80588c31f9886e300e3c814d05201fe335b9b83be717a7c7ce1bf25025", kill_on_drop: false }` [INFO] [stdout] c4e0ca80588c31f9886e300e3c814d05201fe335b9b83be717a7c7ce1bf25025 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41ced8e7a8eef45fcb428a471be817faeeefc81039dbef4bc0271712acbe41bb [INFO] running `Command { std: "docker" "start" "-a" "41ced8e7a8eef45fcb428a471be817faeeefc81039dbef4bc0271712acbe41bb", kill_on_drop: false }` [INFO] [stderr] Checking rust_book_chapter_10 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shape` [INFO] [stdout] --> src/main.rs:173:34 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn get_distance_and_area(shape: &(impl Shape + Display)) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shape` [INFO] [stdout] --> src/main.rs:173:34 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn get_distance_and_area(shape: &(impl Shape + Display)) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `height` and `width` are never read [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 29 | height: T, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 30 | width: T, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, 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: fields `base` and `height` are never read [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | struct Triangle { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 47 | base: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | height: U, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Triangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `height` and `width` are never read [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 29 | height: T, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 30 | width: T, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, 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: variants `Blue` and `Red` are never constructed [INFO] [stdout] --> src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 60 | enum PrimaryColors { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 61 | Yellow(T), [INFO] [stdout] 62 | Blue(T), [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | Red(T), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrimaryColors` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `base` and `height` are never used [INFO] [stdout] --> src/main.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl Triangle { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] 86 | fn base(&self) -> &isize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn height(&self) -> &isize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `base` and `height` are never read [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | struct Triangle { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 47 | base: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | height: U, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Triangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_distance_and_area` is never used [INFO] [stdout] --> src/main.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn get_distance_and_area(shape: &(impl Shape + Display)) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/main.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Blue` and `Red` are never constructed [INFO] [stdout] --> src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 60 | enum PrimaryColors { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 61 | Yellow(T), [INFO] [stdout] 62 | Blue(T), [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | Red(T), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrimaryColors` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 203 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 204 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `base` and `height` are never used [INFO] [stdout] --> src/main.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl Triangle { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] 86 | fn base(&self) -> &isize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn height(&self) -> &isize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/main.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 210 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 211 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_distance_and_area` is never used [INFO] [stdout] --> src/main.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn get_distance_and_area(shape: &(impl Shape + Display)) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/main.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 203 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 204 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/main.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 210 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 211 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] running `Command { std: "docker" "inspect" "41ced8e7a8eef45fcb428a471be817faeeefc81039dbef4bc0271712acbe41bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41ced8e7a8eef45fcb428a471be817faeeefc81039dbef4bc0271712acbe41bb", kill_on_drop: false }` [INFO] [stdout] 41ced8e7a8eef45fcb428a471be817faeeefc81039dbef4bc0271712acbe41bb