[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] testing zasekle/rust_book_chapter_10 against beta-2025-04-13 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzasekle%2Frust_book_chapter_10" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: unable to write file .idea/.gitignore [INFO] [stderr] error: unable to write file .idea/modules.xml [INFO] [stderr] error: unable to write file .idea/rust_book_chapter_10.iml [INFO] [stderr] error: unable to write file .idea/vcs.xml [INFO] [stderr] error: unable to write file Cargo.lock [INFO] [stderr] error: unable to write file Cargo.toml [INFO] [stderr] fatal: cannot create directory at 'src': No space left on device [INFO] [stderr] warning: Clone succeeded, but checkout failed. [INFO] [stderr] You can inspect what was checked out with 'git status' [INFO] [stderr] and retry with 'git restore --source=HEAD :/' [INFO] [stderr] [INFO] testing zasekle/rust_book_chapter_10 against beta-2025-04-13 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzasekle%2Frust_book_chapter_10" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] /workspace/builds/worker-4-tc2/source/.git/objects/info: No space left on device [INFO] testing zasekle/rust_book_chapter_10 against beta-2025-04-13 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzasekle%2Frust_book_chapter_10" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] error: failed to write new configuration file /workspace/builds/worker-4-tc2/source/.git/config.lock [INFO] [stderr] fatal: could not set 'core.filemode' to 'true' [INFO] testing zasekle/rust_book_chapter_10 against beta-2025-04-13 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzasekle%2Frust_book_chapter_10" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zasekle/rust_book_chapter_10 on toolchain beta-2025-04-13 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-04-13" "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-tc2/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" "+beta-2025-04-13" "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-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab771c5c54d3f19bf04732a8abe4403b94fa71b3e315567e3f471a0b27b1dd81 [INFO] running `Command { std: "docker" "start" "-a" "ab771c5c54d3f19bf04732a8abe4403b94fa71b3e315567e3f471a0b27b1dd81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab771c5c54d3f19bf04732a8abe4403b94fa71b3e315567e3f471a0b27b1dd81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab771c5c54d3f19bf04732a8abe4403b94fa71b3e315567e3f471a0b27b1dd81", kill_on_drop: false }` [INFO] [stdout] ab771c5c54d3f19bf04732a8abe4403b94fa71b3e315567e3f471a0b27b1dd81 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2025-04-13" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e531c0efaa5a4b3e26641ac7c2da1c46a389d0ef52e16e49a77f5c33a57f11e6 [INFO] running `Command { std: "docker" "start" "-a" "e531c0efaa5a4b3e26641ac7c2da1c46a389d0ef52e16e49a77f5c33a57f11e6", kill_on_drop: false }` [INFO] [stderr] Compiling 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 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: 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: 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.25s [INFO] running `Command { std: "docker" "inspect" "e531c0efaa5a4b3e26641ac7c2da1c46a389d0ef52e16e49a77f5c33a57f11e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e531c0efaa5a4b3e26641ac7c2da1c46a389d0ef52e16e49a77f5c33a57f11e6", kill_on_drop: false }` [INFO] [stdout] e531c0efaa5a4b3e26641ac7c2da1c46a389d0ef52e16e49a77f5c33a57f11e6 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2025-04-13" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d033bb121355f60380458c8035cfec8eac4f1c1a29f5c53f7e6d29207bff8129 [INFO] running `Command { std: "docker" "start" "-a" "d033bb121355f60380458c8035cfec8eac4f1c1a29f5c53f7e6d29207bff8129", kill_on_drop: false }` [INFO] [stderr] Compiling 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 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: 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: 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 `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "d033bb121355f60380458c8035cfec8eac4f1c1a29f5c53f7e6d29207bff8129", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d033bb121355f60380458c8035cfec8eac4f1c1a29f5c53f7e6d29207bff8129", kill_on_drop: false }` [INFO] [stdout] d033bb121355f60380458c8035cfec8eac4f1c1a29f5c53f7e6d29207bff8129 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2025-04-13" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7eb099faba42096b9a6b4e9522ede5262cf20599758cb3dbaafa6b432a9ffe82 [INFO] running `Command { std: "docker" "start" "-a" "7eb099faba42096b9a6b4e9522ede5262cf20599758cb3dbaafa6b432a9ffe82", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::fmt::Display` [INFO] [stderr] --> src/main.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::fmt::Display; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `shape` [INFO] [stderr] --> src/main.rs:173:34 [INFO] [stderr] | [INFO] [stderr] 173 | pub fn get_distance_and_area(shape: &(impl Shape + Display)) {} [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `height` and `width` are never read [INFO] [stderr] --> src/main.rs:29:9 [INFO] [stderr] | [INFO] [stderr] 28 | struct Rectangle { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 29 | height: T, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 30 | width: T, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `base` and `height` are never read [INFO] [stderr] --> src/main.rs:47:9 [INFO] [stderr] | [INFO] [stderr] 46 | struct Triangle { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 47 | base: T, [INFO] [stderr] | ^^^^ [INFO] [stderr] 48 | height: U, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Triangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `Blue` and `Red` are never constructed [INFO] [stderr] --> src/main.rs:62:9 [INFO] [stderr] | [INFO] [stderr] 60 | enum PrimaryColors { [INFO] [stderr] | ------------- variants in this enum [INFO] [stderr] 61 | Yellow(T), [INFO] [stderr] 62 | Blue(T), [INFO] [stderr] | ^^^^ [INFO] [stderr] 63 | Red(T), [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PrimaryColors` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `base` and `height` are never used [INFO] [stderr] --> src/main.rs:86:12 [INFO] [stderr] | [INFO] [stderr] 85 | impl Triangle { [INFO] [stderr] | --------------------------- methods in this implementation [INFO] [stderr] 86 | fn base(&self) -> &isize { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 90 | fn height(&self) -> &isize { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_distance_and_area` is never used [INFO] [stderr] --> src/main.rs:173:12 [INFO] [stderr] | [INFO] [stderr] 173 | pub fn get_distance_and_area(shape: &(impl Shape + Display)) {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Pair` is never constructed [INFO] [stderr] --> src/main.rs:198:12 [INFO] [stderr] | [INFO] [stderr] 198 | struct Pair { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/main.rs:204:12 [INFO] [stderr] | [INFO] [stderr] 203 | impl Pair { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 204 | fn new(x: T, y: T) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: method `cmp_display` is never used [INFO] [stderr] --> src/main.rs:211:12 [INFO] [stderr] | [INFO] [stderr] 210 | impl Pair { [INFO] [stderr] | ------------------------------------- method in this implementation [INFO] [stderr] 211 | fn cmp_display(&self) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rust_book_chapter_10` (bin "rust_book_chapter_10" test) generated 10 warnings (run `cargo fix --bin "rust_book_chapter_10" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_book_chapter_10-61b8297232452797) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7eb099faba42096b9a6b4e9522ede5262cf20599758cb3dbaafa6b432a9ffe82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7eb099faba42096b9a6b4e9522ede5262cf20599758cb3dbaafa6b432a9ffe82", kill_on_drop: false }` [INFO] [stdout] 7eb099faba42096b9a6b4e9522ede5262cf20599758cb3dbaafa6b432a9ffe82