[INFO] cloning repository https://github.com/rtroxler/general_ledge.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rtroxler/general_ledge.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frtroxler%2Fgeneral_ledge.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frtroxler%2Fgeneral_ledge.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 998d3dcf70534c2036b96f1c5bd9cdd2f2dba367 [INFO] checking rtroxler/general_ledge.rs against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frtroxler%2Fgeneral_ledge.rs" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rtroxler/general_ledge.rs [INFO] finished tweaking git repo https://github.com/rtroxler/general_ledge.rs [INFO] tweaked toml for git repo https://github.com/rtroxler/general_ledge.rs written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rtroxler/general_ledge.rs on toolchain 5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rtroxler/general_ledge.rs 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" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b3a69db8e7d33ca99ca969a2e4e4a0bd5d7f3f0f7a43946be1b8be0b67f35963 [INFO] running `Command { std: "docker" "start" "-a" "b3a69db8e7d33ca99ca969a2e4e4a0bd5d7f3f0f7a43946be1b8be0b67f35963", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b3a69db8e7d33ca99ca969a2e4e4a0bd5d7f3f0f7a43946be1b8be0b67f35963", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3a69db8e7d33ca99ca969a2e4e4a0bd5d7f3f0f7a43946be1b8be0b67f35963", kill_on_drop: false }` [INFO] [stdout] b3a69db8e7d33ca99ca969a2e4e4a0bd5d7f3f0f7a43946be1b8be0b67f35963 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f178b109cad2a8bc91683c6e42706ff97f1e4c3b21e5b4b86ec586d0c4d2c642 [INFO] running `Command { std: "docker" "start" "-a" "f178b109cad2a8bc91683c6e42706ff97f1e4c3b21e5b4b86ec586d0c4d2c642", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking num-traits v0.1.40 [INFO] [stderr] Checking libc v0.2.33 [INFO] [stderr] Checking num-integer v0.1.35 [INFO] [stderr] Checking time v0.1.38 [INFO] [stderr] Checking num-iter v0.1.34 [INFO] [stderr] Checking num v0.1.40 [INFO] [stderr] Checking chrono v0.4.0 [INFO] [stderr] Checking general_ledgers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `transaction::*` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use transaction::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `usd::USD` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use usd::USD; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `general_ledger::GeneralLedger` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use general_ledger::GeneralLedger; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `payee_effective_on` is never read [INFO] [stdout] --> src/transaction.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Payment { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | payee_effective_on: DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Payment` 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: method `inverse` is never used [INFO] [stdout] --> src/usd.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl USD { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn inverse(&self) -> USD { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> src/general_ledger.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl GeneralLedger { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `accounts_receivable_code` is never used [INFO] [stdout] --> src/account_map.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn accounts_receivable_code(revenue_code: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deferred_code` is never used [INFO] [stdout] --> src/account_map.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn deferred_code(revenue_code: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Assessment` is never constructed [INFO] [stdout] --> src/transaction.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Assessment { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/transaction.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Assessment { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 28 | pub fn new(amount: USD, account_code: String, effective_on: DateTime, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Payment` is never constructed [INFO] [stdout] --> src/transaction.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Payment { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/transaction.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Payment { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 55 | pub fn new( amount: USD, account_code: String, effective_on: DateTime, payee_amount: USD, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Transaction` is never used [INFO] [stdout] --> src/transaction.rs:77:11 [INFO] [stdout] | [INFO] [stdout] 77 | pub trait Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `USD` is never constructed [INFO] [stdout] --> src/usd.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct USD { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `zero`, `from_float`, `from_pennies`, `to_pennies`, and `inverse` are never used [INFO] [stdout] --> src/usd.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl USD { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 11 | pub fn zero() -> USD { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn from_float(d: f64) -> USD { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn from_pennies(pennies: i64) -> USD { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn to_pennies(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn inverse(&self) -> USD { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GeneralLedger` is never constructed [INFO] [stdout] --> src/general_ledger.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct GeneralLedger { // By Day [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `print`, `record_double_entry`, and `fetch_amount` are never used [INFO] [stdout] --> src/general_ledger.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl GeneralLedger { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> GeneralLedger { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn record_double_entry(&mut self, date: Date, amount: USD, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn fetch_amount(&self, date: Date, account_code: String) -> Option<&USD> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.34s [INFO] running `Command { std: "docker" "inspect" "f178b109cad2a8bc91683c6e42706ff97f1e4c3b21e5b4b86ec586d0c4d2c642", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f178b109cad2a8bc91683c6e42706ff97f1e4c3b21e5b4b86ec586d0c4d2c642", kill_on_drop: false }` [INFO] [stdout] f178b109cad2a8bc91683c6e42706ff97f1e4c3b21e5b4b86ec586d0c4d2c642