[INFO] cloning repository https://github.com/tjpools/rust-strengths-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tjpools/rust-strengths-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftjpools%2Frust-strengths-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftjpools%2Frust-strengths-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5d4afc817587f50c3895b2d2f966aafa615cbad5 [INFO] checking tjpools/rust-strengths-demo against try#ac4c3613be2acd5395b65d85e5657b81e3c982f0 for pr-154585 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftjpools%2Frust-strengths-demo" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tjpools/rust-strengths-demo [INFO] finished tweaking git repo https://github.com/tjpools/rust-strengths-demo [INFO] tweaked toml for git repo https://github.com/tjpools/rust-strengths-demo written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tjpools/rust-strengths-demo on toolchain ac4c3613be2acd5395b65d85e5657b81e3c982f0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tjpools/rust-strengths-demo 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" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "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-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b8bb8e4f375952f1d35cb855cfaadc1e2e2759927213d41c4c8cd4d08b3769a5 [INFO] running `Command { std: "docker" "start" "-a" "b8bb8e4f375952f1d35cb855cfaadc1e2e2759927213d41c4c8cd4d08b3769a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b8bb8e4f375952f1d35cb855cfaadc1e2e2759927213d41c4c8cd4d08b3769a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8bb8e4f375952f1d35cb855cfaadc1e2e2759927213d41c4c8cd4d08b3769a5", kill_on_drop: false }` [INFO] [stdout] b8bb8e4f375952f1d35cb855cfaadc1e2e2759927213d41c4c8cd4d08b3769a5 [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=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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5c508935af92d84e08bd3affe72f6f07455abb6c0d42738ba4c0efe7bcfe843 [INFO] running `Command { std: "docker" "start" "-a" "a5c508935af92d84e08bd3affe72f6f07455abb6c0d42738ba4c0efe7bcfe843", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.225 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling serde v1.0.225 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking clap_builder v4.5.48 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling serde_derive v1.0.225 [INFO] [stderr] Checking clap v4.5.48 [INFO] [stderr] Checking rust-strengths-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | InvalidData(String), [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ProcessingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 38 - InvalidData(String), [INFO] [stdout] 38 + InvalidData(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | IoError(std::io::Error), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ProcessingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 40 - IoError(std::io::Error), [INFO] [stdout] 40 + IoError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ComputationError` is never constructed [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 37 | enum ProcessingError { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 38 | InvalidData(String), [INFO] [stdout] 39 | ComputationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProcessingError` 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 `unsafe_counter` is never used [INFO] [stdout] --> src/educational_examples.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn unsafe_counter() -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CStyleVector` is never constructed [INFO] [stdout] --> src/educational_examples.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct CStyleVector { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/educational_examples.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 30 | impl CStyleVector { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 31 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SafeCounter` is never constructed [INFO] [stdout] --> src/educational_examples.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct SafeCounter { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `increment`, and `spawn_workers` are never used [INFO] [stdout] --> src/educational_examples.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 54 | impl SafeCounter { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 55 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn increment(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn spawn_workers(&self, count: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ProcessResult` is never used [INFO] [stdout] --> src/educational_examples.rs:94:14 [INFO] [stdout] | [INFO] [stdout] 94 | pub enum ProcessResult { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `and_then` and `map` are never used [INFO] [stdout] --> src/educational_examples.rs:102:16 [INFO] [stdout] | [INFO] [stdout] 100 | impl ProcessResult { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] 101 | /// Teaches: Error handling as part of type system [INFO] [stdout] 102 | pub fn and_then(self, f: F) -> ProcessResult [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn map(self, f: F) -> ProcessResult [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Processor` is never used [INFO] [stdout] --> src/educational_examples.rs:127:15 [INFO] [stdout] | [INFO] [stdout] 127 | pub trait Processor { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataProcessor` is never constructed [INFO] [stdout] --> src/educational_examples.rs:134:16 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct DataProcessor; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Application` is never constructed [INFO] [stdout] --> src/educational_examples.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | pub struct Application { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run_simulation` are never used [INFO] [stdout] --> src/educational_examples.rs:173:16 [INFO] [stdout] | [INFO] [stdout] 172 | impl Application { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 173 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn run_simulation(&self) -> ProcessResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | InvalidData(String), [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ProcessingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 38 - InvalidData(String), [INFO] [stdout] 38 + InvalidData(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | IoError(std::io::Error), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ProcessingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 40 - IoError(std::io::Error), [INFO] [stdout] 40 + IoError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ComputationError` is never constructed [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 37 | enum ProcessingError { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 38 | InvalidData(String), [INFO] [stdout] 39 | ComputationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProcessingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CStyleVector` is never constructed [INFO] [stdout] --> src/educational_examples.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct CStyleVector { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/educational_examples.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 30 | impl CStyleVector { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 31 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `and_then` and `map` are never used [INFO] [stdout] --> src/educational_examples.rs:102:16 [INFO] [stdout] | [INFO] [stdout] 100 | impl ProcessResult { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] 101 | /// Teaches: Error handling as part of type system [INFO] [stdout] 102 | pub fn and_then(self, f: F) -> ProcessResult [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn map(self, f: F) -> ProcessResult [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.88s [INFO] running `Command { std: "docker" "inspect" "a5c508935af92d84e08bd3affe72f6f07455abb6c0d42738ba4c0efe7bcfe843", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5c508935af92d84e08bd3affe72f6f07455abb6c0d42738ba4c0efe7bcfe843", kill_on_drop: false }` [INFO] [stdout] a5c508935af92d84e08bd3affe72f6f07455abb6c0d42738ba4c0efe7bcfe843