[INFO] cloning repository https://github.com/viktorhex/cba [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/viktorhex/cba" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fviktorhex%2Fcba", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fviktorhex%2Fcba'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cc6a583ff1f6b9853bb0cd81d22457376b4d8f66 [INFO] checking viktorhex/cba against try#8c500c7cefd54fd11d57295f3771d576be9ee415 for pr-145113 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fviktorhex%2Fcba" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/viktorhex/cba [INFO] finished tweaking git repo https://github.com/viktorhex/cba [INFO] tweaked toml for git repo https://github.com/viktorhex/cba written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/viktorhex/cba on toolchain 8c500c7cefd54fd11d57295f3771d576be9ee415 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/viktorhex/cba 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" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3050da2f6c53ce77ddc05c4ad0d2dfe44c8e59e61a439d86b7f193f7f9ea6679 [INFO] running `Command { std: "docker" "start" "-a" "3050da2f6c53ce77ddc05c4ad0d2dfe44c8e59e61a439d86b7f193f7f9ea6679", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3050da2f6c53ce77ddc05c4ad0d2dfe44c8e59e61a439d86b7f193f7f9ea6679", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3050da2f6c53ce77ddc05c4ad0d2dfe44c8e59e61a439d86b7f193f7f9ea6679", kill_on_drop: false }` [INFO] [stdout] 3050da2f6c53ce77ddc05c4ad0d2dfe44c8e59e61a439d86b7f193f7f9ea6679 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02500a14d1654a3cd9a5682e86ae1c720dd8e7062611e1bde1a5b10a96f59542 [INFO] running `Command { std: "docker" "start" "-a" "02500a14d1654a3cd9a5682e86ae1c720dd8e7062611e1bde1a5b10a96f59542", kill_on_drop: false }` [INFO] [stderr] Checking cba v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `present_value_list::PresentValueList` [INFO] [stdout] --> src/types/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use present_value_list::PresentValueList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cashflow`, `DiscountFactor`, `Percentage`, `PresentValue`, and `USD` [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use types::{Cashflow, DiscountFactor, Percentage, PresentValue, USD}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `present_value_list::PresentValueList` [INFO] [stdout] --> src/types/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use present_value_list::PresentValueList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cashflow`, `DiscountFactor`, `Percentage`, `PresentValue`, and `USD` [INFO] [stdout] --> src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use types::{Cashflow, DiscountFactor, Percentage, PresentValue, USD}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cashflow` is never constructed [INFO] [stdout] --> src/types/cashflow.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Cashflow { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `net` are never used [INFO] [stdout] --> src/types/cashflow.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Cashflow { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(benefits: USD, costs: USD) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn net(&self) -> USD { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DiscountFactor` is never constructed [INFO] [stdout] --> src/types/discount_factor.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DiscountFactor { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/types/discount_factor.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl DiscountFactor { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(rate: Percentage, time_period: f64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn value(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PresentValue` is never constructed [INFO] [stdout] --> src/types/present_value.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PresentValue{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `discount_factor`, `cashflow`, and `net` are never used [INFO] [stdout] --> src/types/present_value.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PresentValue { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(cashflow: Cashflow, discount_factor: DiscountFactor) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn discount_factor(&self) -> DiscountFactor { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn cashflow(&self) -> Cashflow { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn net(&self) -> USD { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PresentValueList` is never constructed [INFO] [stdout] --> src/types/present_value_list.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct PresentValueList{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/types/present_value_list.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 16 | impl PresentValueList { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(cashflows: Vec, discount_rate: Percentage, max_period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `discount_factor` and `cashflow` are never used [INFO] [stdout] --> src/types/present_value.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PresentValue { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn discount_factor(&self) -> DiscountFactor { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn cashflow(&self) -> Cashflow { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "02500a14d1654a3cd9a5682e86ae1c720dd8e7062611e1bde1a5b10a96f59542", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02500a14d1654a3cd9a5682e86ae1c720dd8e7062611e1bde1a5b10a96f59542", kill_on_drop: false }` [INFO] [stdout] 02500a14d1654a3cd9a5682e86ae1c720dd8e7062611e1bde1a5b10a96f59542