[INFO] fetching crate ledger-rs-lib 0.7.0...
[INFO] checking ledger-rs-lib-0.7.0 against master#c2f2db79ca3024f68d22b45aa22b570775c2c4ad for pr-124157
[INFO] extracting crate ledger-rs-lib 0.7.0 into /workspace/builds/worker-7-tc1/source
[INFO] validating manifest of crates.io crate ledger-rs-lib 0.7.0 on toolchain c2f2db79ca3024f68d22b45aa22b570775c2c4ad
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2f2db79ca3024f68d22b45aa22b570775c2c4ad" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate ledger-rs-lib 0.7.0
[INFO] finished tweaking crates.io crate ledger-rs-lib 0.7.0
[INFO] tweaked toml for crates.io crate ledger-rs-lib 0.7.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] crate crates.io crate ledger-rs-lib 0.7.0 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" "+c2f2db79ca3024f68d22b45aa22b570775c2c4ad" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded wasm-bindgen-test v0.3.37
[INFO] [stderr]   Downloaded wasm-bindgen-test-macro v0.3.37
[INFO] [stderr]   Downloaded test-log v0.2.12
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+c2f2db79ca3024f68d22b45aa22b570775c2c4ad" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6e877136d8ddd7f07254e236ac59ad0e7b8e1d7ff27b3794dec8798cd4adb59b
[INFO] running `Command { std: "docker" "start" "-a" "6e877136d8ddd7f07254e236ac59ad0e7b8e1d7ff27b3794dec8798cd4adb59b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6e877136d8ddd7f07254e236ac59ad0e7b8e1d7ff27b3794dec8798cd4adb59b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6e877136d8ddd7f07254e236ac59ad0e7b8e1d7ff27b3794dec8798cd4adb59b", kill_on_drop: false }`
[INFO] [stdout] 6e877136d8ddd7f07254e236ac59ad0e7b8e1d7ff27b3794dec8798cd4adb59b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+c2f2db79ca3024f68d22b45aa22b570775c2c4ad" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] dab281325cd3092be518f33839c44928ab4502c5fd5204afd67f6f2bf61aa1c0
[INFO] running `Command { std: "docker" "start" "-a" "dab281325cd3092be518f33839c44928ab4502c5fd5204afd67f6f2bf61aa1c0", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.16
[INFO] [stderr]    Compiling rustix v0.38.11
[INFO] [stderr]     Checking memchr v2.6.3
[INFO] [stderr]    Compiling libc v0.2.147
[INFO] [stderr]     Checking bitflags v2.4.0
[INFO] [stderr]    Compiling serde v1.0.188
[INFO] [stderr]     Checking regex-syntax v0.7.5
[INFO] [stderr]     Checking linux-raw-sys v0.4.5
[INFO] [stderr]    Compiling proc-macro2 v1.0.66
[INFO] [stderr]    Compiling rust_decimal v1.32.0
[INFO] [stderr]    Compiling anyhow v1.0.75
[INFO] [stderr]     Checking hashbrown v0.14.0
[INFO] [stderr]     Checking aho-corasick v1.0.5
[INFO] [stderr]     Checking indexmap v2.0.0
[INFO] [stderr]     Checking time v0.1.45
[INFO] [stderr]     Checking humantime v2.1.0
[INFO] [stderr]     Checking is-terminal v0.4.9
[INFO] [stderr]     Checking iana-time-zone v0.1.57
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking log v0.4.20
[INFO] [stderr]     Checking termcolor v1.2.0
[INFO] [stderr]     Checking arrayvec v0.7.4
[INFO] [stderr]     Checking fixedbitset v0.4.2
[INFO] [stderr]     Checking chrono v0.4.29
[INFO] [stderr]     Checking regex-automata v0.3.8
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]     Checking petgraph v0.6.4
[INFO] [stderr]     Checking shell-words v1.1.0
[INFO] [stderr]     Checking regex v1.9.5
[INFO] [stderr]     Checking env_logger v0.10.0
[INFO] [stderr]     Checking ledger-rs-lib v0.7.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `target`
[INFO] [stdout]   --> src/commodity.rs:46:9
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let target = commodity;
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moment`
[INFO] [stdout]   --> src/commodity.rs:44:49
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub(crate) fn find_price(commodity: &Commodity, moment: NaiveDateTime, oldest: NaiveDateTime) {
[INFO] [stdout]    |                                                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moment`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `oldest`
[INFO] [stdout]   --> src/commodity.rs:44:72
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub(crate) fn find_price(commodity: &Commodity, moment: NaiveDateTime, oldest: NaiveDateTime) {
[INFO] [stdout]    |                                                                        ^^^^^^ help: if this is intentional, prefix it with an underscore: `_oldest`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moment`
[INFO] [stdout]    --> src/history.rs:106:9
[INFO] [stdout]     |
[INFO] [stdout] 106 |         moment: NaiveDateTime,
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moment`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `oldest`
[INFO] [stdout]    --> src/history.rs:107:9
[INFO] [stdout]     |
[INFO] [stdout] 107 |         oldest: NaiveDateTime,
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_oldest`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/history.rs:115:80
[INFO] [stdout]     |
[INFO] [stdout] 115 |         let shortest_path = astar(&self.0, source, |finish| finish == target, |e| 1, |_| 0);
[INFO] [stdout]     |                                                                                ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `option_name`
[INFO] [stdout]   --> src/option.rs:54:17
[INFO] [stdout]    |
[INFO] [stdout] 54 |             let option_name = &arg[2..];
[INFO] [stdout]    |                 ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_option_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/parser.rs:342:13
[INFO] [stdout]     |
[INFO] [stdout] 342 |         let mut file_found = false;
[INFO] [stdout]     |             ----^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `journal`
[INFO] [stdout]   --> src/report.rs:99:64
[INFO] [stdout]    |
[INFO] [stdout] 99 | fn format_balance_report(mut balances: Vec<(String, Balance)>, journal: &Journal) -> Vec<String> {
[INFO] [stdout]    |                                                                ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_journal`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `target_commodity`
[INFO] [stdout]    --> src/report.rs:135:11
[INFO] [stdout]     |
[INFO] [stdout] 135 | fn market(target_commodity: &str) {
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_commodity`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `aux_date`
[INFO] [stdout]    --> src/scanner.rs:139:9
[INFO] [stdout]     |
[INFO] [stdout] 139 |     let aux_date: &str;
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aux_date`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cdty`
[INFO] [stdout]   --> src/value.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |         let cdty = pool.find_or_create(commodities, None);
[INFO] [stdout]    |             ^^^^ help: if this is intentional, prefix it with an underscore: `_cdty`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `add_prices`
[INFO] [stdout]   --> src/value.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 |     add_prices: bool,
[INFO] [stdout]    |     ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_prices`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moment`
[INFO] [stdout]   --> src/value.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 |     moment: &NaiveDateTime,
[INFO] [stdout]    |     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moment`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `point`
[INFO] [stdout]   --> src/value.rs:46:9
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let point: Option<PricePoint>;
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moment`
[INFO] [stdout]   --> src/value.rs:43:17
[INFO] [stdout]    |
[INFO] [stdout] 43 | fn amount_value(moment: &NaiveDateTime, in_terms_of: Option<&Commodity>, pool: &CommodityPool) {
[INFO] [stdout]    |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moment`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `in_terms_of`
[INFO] [stdout]   --> src/value.rs:43:41
[INFO] [stdout]    |
[INFO] [stdout] 43 | fn amount_value(moment: &NaiveDateTime, in_terms_of: Option<&Commodity>, pool: &CommodityPool) {
[INFO] [stdout]    |                                         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_terms_of`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pool`
[INFO] [stdout]   --> src/value.rs:43:74
[INFO] [stdout]    |
[INFO] [stdout] 43 | fn amount_value(moment: &NaiveDateTime, in_terms_of: Option<&Commodity>, pool: &CommodityPool) {
[INFO] [stdout]    |                                                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_pool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `null_post` is never read
[INFO] [stdout]    --> src/xact.rs:273:9
[INFO] [stdout]     |
[INFO] [stdout] 273 |         null_post = std::ptr::null_mut();
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `command_args`
[INFO] [stdout]   --> src/lib.rs:94:9
[INFO] [stdout]    |
[INFO] [stdout] 94 |     let command_args = &commands[1..];
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_args`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `verb`
[INFO] [stdout]    --> src/lib.rs:124:24
[INFO] [stdout]     |
[INFO] [stdout] 124 | fn look_for_precommand(verb: &str) {
[INFO] [stdout]     |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_verb`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `look_for_precommand` is never used
[INFO] [stdout]    --> src/lib.rs:124:4
[INFO] [stdout]     |
[INFO] [stdout] 124 | fn look_for_precommand(verb: &str) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_price` is never used
[INFO] [stdout]   --> src/commodity.rs:44:15
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub(crate) fn find_price(commodity: &Commodity, moment: NaiveDateTime, oldest: NaiveDateTime) {
[INFO] [stdout]    |               ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PricePoint` is never constructed
[INFO] [stdout]   --> src/commodity.rs:63:19
[INFO] [stdout]    |
[INFO] [stdout] 63 | pub(crate) struct PricePoint {
[INFO] [stdout]    |                   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/commodity.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 68 | impl PricePoint {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] 69 |     pub fn new(when: NaiveDateTime, price: Amount) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/directives.rs:13:10
[INFO] [stdout]    |
[INFO] [stdout] 13 |     Xact(Xact)
[INFO] [stdout]    |     ---- ^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[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] 13 |     Xact(())
[INFO] [stdout]    |          ~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Comment` and `Price` are never constructed
[INFO] [stdout]   --> src/directives.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |  pub enum DirectiveType {
[INFO] [stdout]    |           ------------- variants in this enum
[INFO] [stdout] 11 |     Comment,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 12 |     Price,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `DirectiveType` 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 `map_prices`, `find_price`, `calculate_rate`, `get_direct_price`, and `print_map` are never used
[INFO] [stdout]    --> src/history.rs:97:12
[INFO] [stdout]     |
[INFO] [stdout] 38  | impl CommodityHistory {
[INFO] [stdout]     | --------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 97  |     pub fn map_prices(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 102 |     pub fn find_price(
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 152 |     fn calculate_rate(&self, source: CommodityIndex, target_ptr: *const Commodity, path: Vec<NodeIndex>) -> (NaiveDateTime, Quantity) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 195 |     pub fn get_direct_price(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 213 |     fn print_map(&self) {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_latest_price` is never used
[INFO] [stdout]    --> src/history.rs:237:4
[INFO] [stdout]     |
[INFO] [stdout] 237 | fn get_latest_price(
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/iterator.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl SimpleParserIter {
[INFO] [stdout]    | --------------------- associated function in this implementation
[INFO] [stdout] 16 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `JournalReader` is never constructed
[INFO] [stdout]  --> src/journalreader.rs:7:19
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub(crate) struct JournalReader {}
[INFO] [stdout]   |                   ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/journalreader.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 9  | impl JournalReader {
[INFO] [stdout]    | ------------------ associated function in this implementation
[INFO] [stdout] 10 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Kind` is never used
[INFO] [stdout]   --> src/option.rs:12:10
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub enum Kind {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_option` is never used
[INFO] [stdout]    --> src/option.rs:119:4
[INFO] [stdout]     |
[INFO] [stdout] 119 | fn find_option(letter: char) {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lookup_option_global` is never used
[INFO] [stdout]    --> src/option.rs:130:4
[INFO] [stdout]     |
[INFO] [stdout] 130 | fn lookup_option_global(kind: Kind, letter: char) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_option` is never used
[INFO] [stdout]    --> src/option.rs:146:4
[INFO] [stdout]     |
[INFO] [stdout] 146 | fn process_option(whence: String, value: Option<String>) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `session_lookup` is never used
[INFO] [stdout]    --> src/option.rs:163:4
[INFO] [stdout]     |
[INFO] [stdout] 163 | fn session_lookup(kind: Kind, name: &str) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `session_lookup_option` is never used
[INFO] [stdout]    --> src/option.rs:178:4
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn session_lookup_option(option: char) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lookup_report` is never used
[INFO] [stdout]    --> src/option.rs:203:4
[INFO] [stdout]     |
[INFO] [stdout] 203 | fn lookup_report(kind: Kind, name: &str) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lookup_option_report` is never used
[INFO] [stdout]    --> src/option.rs:269:4
[INFO] [stdout]     |
[INFO] [stdout] 269 | fn lookup_option_report(letter: char) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `general_directive` and `include_directive` are never used
[INFO] [stdout]    --> src/parser.rs:195:8
[INFO] [stdout]     |
[INFO] [stdout] 94  | impl<'j, T: Read> Parser<'j, T> {
[INFO] [stdout]     | ------------------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 195 |     fn general_directive(&self) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 325 |     fn include_directive(&self, argument: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `null_commodity` and `default_commodity` are never read
[INFO] [stdout]   --> src/pool.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct CommodityPool {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 32 |     null_commodity: *const Commodity,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 33 |     default_commodity: *const Commodity,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `report_commodities` is never used
[INFO] [stdout]   --> src/report.rs:20:4
[INFO] [stdout]    |
[INFO] [stdout] 20 | fn report_commodities() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `report_payees` is never used
[INFO] [stdout]   --> src/report.rs:24:4
[INFO] [stdout]    |
[INFO] [stdout] 24 | fn report_payees() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_account_balances` is never used
[INFO] [stdout]   --> src/report.rs:76:4
[INFO] [stdout]    |
[INFO] [stdout] 76 | fn get_account_balances(journal: &Journal) -> Vec<(&str, Balance)> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `format_balance_report` is never used
[INFO] [stdout]   --> src/report.rs:99:4
[INFO] [stdout]    |
[INFO] [stdout] 99 | fn format_balance_report(mut balances: Vec<(String, Balance)>, journal: &Journal) -> Vec<String> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `market` is never used
[INFO] [stdout]    --> src/report.rs:135:4
[INFO] [stdout]     |
[INFO] [stdout] 135 | fn market(target_commodity: &str) {
[INFO] [stdout]     |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `remainder` is never read
[INFO] [stdout]   --> src/scanner.rs:65:9
[INFO] [stdout]    |
[INFO] [stdout] 61 | struct CostTokens<'a> {
[INFO] [stdout]    |        ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 65 |     pub remainder: &'a str,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `next_element` is never used
[INFO] [stdout]    --> src/scanner.rs:452:4
[INFO] [stdout]     |
[INFO] [stdout] 452 | fn next_element(input: &str) -> Option<&str> {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `exchange_commodities` is never used
[INFO] [stdout]   --> src/value.rs:15:15
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub(crate) fn exchange_commodities(
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `value` is never used
[INFO] [stdout]   --> src/value.rs:31:4
[INFO] [stdout]    |
[INFO] [stdout] 31 | fn value(moment: &NaiveDateTime, in_terms_of: Option<&Commodity>, pool: &CommodityPool) {
[INFO] [stdout]    |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `amount_value` is never used
[INFO] [stdout]   --> src/value.rs:43:4
[INFO] [stdout]    |
[INFO] [stdout] 43 | fn amount_value(moment: &NaiveDateTime, in_terms_of: Option<&Commodity>, pool: &CommodityPool) {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]   --> src/pool.rs:91:28
[INFO] [stdout]    |
[INFO] [stdout] 90 |             let mut_ptr = cdty_ptr as *mut Commodity;
[INFO] [stdout]    |                           -------------------------- casting happend here
[INFO] [stdout] 91 |             let mut_cdty = &mut *mut_ptr;
[INFO] [stdout]    |                            ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, visit <https://doc.rust-lang.org/book/ch15-05-interior-mutability.html>
[INFO] [stdout]    = note: `#[deny(invalid_reference_casting)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error; 52 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ledger-rs-lib` (lib) due to 2 previous errors; 52 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "dab281325cd3092be518f33839c44928ab4502c5fd5204afd67f6f2bf61aa1c0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "dab281325cd3092be518f33839c44928ab4502c5fd5204afd67f6f2bf61aa1c0", kill_on_drop: false }`
[INFO] [stdout] dab281325cd3092be518f33839c44928ab4502c5fd5204afd67f6f2bf61aa1c0
[INFO] checking ledger-rs-lib-0.7.0 against try#9c7b5f5b6b8ec32bbbcf9f07fc0e5208da6c5f88 for pr-124157
[INFO] extracting crate ledger-rs-lib 0.7.0 into /workspace/builds/worker-7-tc2/source
[INFO] validating manifest of crates.io crate ledger-rs-lib 0.7.0 on toolchain 9c7b5f5b6b8ec32bbbcf9f07fc0e5208da6c5f88
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c7b5f5b6b8ec32bbbcf9f07fc0e5208da6c5f88" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate ledger-rs-lib 0.7.0
[INFO] finished tweaking crates.io crate ledger-rs-lib 0.7.0
[INFO] tweaked toml for crates.io crate ledger-rs-lib 0.7.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] crate crates.io crate ledger-rs-lib 0.7.0 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" "+9c7b5f5b6b8ec32bbbcf9f07fc0e5208da6c5f88" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+9c7b5f5b6b8ec32bbbcf9f07fc0e5208da6c5f88" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6d087140b5c65203e31a1946baa52b1a2c070190ba705bbd70f69c65117c12d3
[INFO] running `Command { std: "docker" "start" "-a" "6d087140b5c65203e31a1946baa52b1a2c070190ba705bbd70f69c65117c12d3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6d087140b5c65203e31a1946baa52b1a2c070190ba705bbd70f69c65117c12d3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6d087140b5c65203e31a1946baa52b1a2c070190ba705bbd70f69c65117c12d3", kill_on_drop: false }`
[INFO] [stdout] 6d087140b5c65203e31a1946baa52b1a2c070190ba705bbd70f69c65117c12d3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+9c7b5f5b6b8ec32bbbcf9f07fc0e5208da6c5f88" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d3251bddc4453c6c5fa5c8f6a52010a08a53d5eeadf6aeaffd52711553ce7276
[INFO] running `Command { std: "docker" "start" "-a" "d3251bddc4453c6c5fa5c8f6a52010a08a53d5eeadf6aeaffd52711553ce7276", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.16
[INFO] [stderr]     Checking memchr v2.6.3
[INFO] [stderr]    Compiling rustix v0.38.11
[INFO] [stderr]    Compiling libc v0.2.147
[INFO] [stderr]    Compiling serde v1.0.188
[INFO] [stderr]     Checking bitflags v2.4.0
[INFO] [stderr]     Checking regex-syntax v0.7.5
[INFO] [stderr]     Checking linux-raw-sys v0.4.5
[INFO] [stderr]    Compiling proc-macro2 v1.0.66
[INFO] [stderr]    Compiling rust_decimal v1.32.0
[INFO] [stderr]    Compiling anyhow v1.0.75
[INFO] [stderr]     Checking hashbrown v0.14.0
[INFO] [stderr]     Checking aho-corasick v1.0.5
[INFO] [stderr]     Checking arrayvec v0.7.4
[INFO] [stderr]     Checking time v0.1.45
[INFO] [stderr]     Checking indexmap v2.0.0
[INFO] [stderr]     Checking is-terminal v0.4.9
[INFO] [stderr]     Checking humantime v2.1.0
[INFO] [stderr]     Checking log v0.4.20
[INFO] [stderr]     Checking termcolor v1.2.0
[INFO] [stderr]     Checking iana-time-zone v0.1.57
[INFO] [stderr]     Checking fixedbitset v0.4.2
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]     Checking chrono v0.4.29
[INFO] [stderr]     Checking regex-automata v0.3.8
[INFO] [stderr]     Checking shell-words v1.1.0
[INFO] [stderr]     Checking petgraph v0.6.4
[INFO] [stderr]     Checking regex v1.9.5
[INFO] [stderr]     Checking env_logger v0.10.0
[INFO] [stderr]     Checking ledger-rs-lib v0.7.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `target`
[INFO] [stdout]   --> src/commodity.rs:46:9
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let target = commodity;
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moment`
[INFO] [stdout]   --> src/commodity.rs:44:49
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub(crate) fn find_price(commodity: &Commodity, moment: NaiveDateTime, oldest: NaiveDateTime) {
[INFO] [stdout]    |                                                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moment`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `oldest`
[INFO] [stdout]   --> src/commodity.rs:44:72
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub(crate) fn find_price(commodity: &Commodity, moment: NaiveDateTime, oldest: NaiveDateTime) {
[INFO] [stdout]    |                                                                        ^^^^^^ help: if this is intentional, prefix it with an underscore: `_oldest`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moment`
[INFO] [stdout]    --> src/history.rs:106:9
[INFO] [stdout]     |
[INFO] [stdout] 106 |         moment: NaiveDateTime,
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moment`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `oldest`
[INFO] [stdout]    --> src/history.rs:107:9
[INFO] [stdout]     |
[INFO] [stdout] 107 |         oldest: NaiveDateTime,
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_oldest`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/history.rs:115:80
[INFO] [stdout]     |
[INFO] [stdout] 115 |         let shortest_path = astar(&self.0, source, |finish| finish == target, |e| 1, |_| 0);
[INFO] [stdout]     |                                                                                ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `option_name`
[INFO] [stdout]   --> src/option.rs:54:17
[INFO] [stdout]    |
[INFO] [stdout] 54 |             let option_name = &arg[2..];
[INFO] [stdout]    |                 ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_option_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/parser.rs:342:13
[INFO] [stdout]     |
[INFO] [stdout] 342 |         let mut file_found = false;
[INFO] [stdout]     |             ----^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `journal`
[INFO] [stdout]   --> src/report.rs:99:64
[INFO] [stdout]    |
[INFO] [stdout] 99 | fn format_balance_report(mut balances: Vec<(String, Balance)>, journal: &Journal) -> Vec<String> {
[INFO] [stdout]    |                                                                ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_journal`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `target_commodity`
[INFO] [stdout]    --> src/report.rs:135:11
[INFO] [stdout]     |
[INFO] [stdout] 135 | fn market(target_commodity: &str) {
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_commodity`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `aux_date`
[INFO] [stdout]    --> src/scanner.rs:139:9
[INFO] [stdout]     |
[INFO] [stdout] 139 |     let aux_date: &str;
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aux_date`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cdty`
[INFO] [stdout]   --> src/value.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |         let cdty = pool.find_or_create(commodities, None);
[INFO] [stdout]    |             ^^^^ help: if this is intentional, prefix it with an underscore: `_cdty`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `add_prices`
[INFO] [stdout]   --> src/value.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 |     add_prices: bool,
[INFO] [stdout]    |     ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_prices`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moment`
[INFO] [stdout]   --> src/value.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 |     moment: &NaiveDateTime,
[INFO] [stdout]    |     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moment`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `point`
[INFO] [stdout]   --> src/value.rs:46:9
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let point: Option<PricePoint>;
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_point`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moment`
[INFO] [stdout]   --> src/value.rs:43:17
[INFO] [stdout]    |
[INFO] [stdout] 43 | fn amount_value(moment: &NaiveDateTime, in_terms_of: Option<&Commodity>, pool: &CommodityPool) {
[INFO] [stdout]    |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moment`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `in_terms_of`
[INFO] [stdout]   --> src/value.rs:43:41
[INFO] [stdout]    |
[INFO] [stdout] 43 | fn amount_value(moment: &NaiveDateTime, in_terms_of: Option<&Commodity>, pool: &CommodityPool) {
[INFO] [stdout]    |                                         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_terms_of`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pool`
[INFO] [stdout]   --> src/value.rs:43:74
[INFO] [stdout]    |
[INFO] [stdout] 43 | fn amount_value(moment: &NaiveDateTime, in_terms_of: Option<&Commodity>, pool: &CommodityPool) {
[INFO] [stdout]    |                                                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_pool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `null_post` is never read
[INFO] [stdout]    --> src/xact.rs:273:9
[INFO] [stdout]     |
[INFO] [stdout] 273 |         null_post = std::ptr::null_mut();
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `command_args`
[INFO] [stdout]   --> src/lib.rs:94:9
[INFO] [stdout]    |
[INFO] [stdout] 94 |     let command_args = &commands[1..];
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_args`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `verb`
[INFO] [stdout]    --> src/lib.rs:124:24
[INFO] [stdout]     |
[INFO] [stdout] 124 | fn look_for_precommand(verb: &str) {
[INFO] [stdout]     |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_verb`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `look_for_precommand` is never used
[INFO] [stdout]    --> src/lib.rs:124:4
[INFO] [stdout]     |
[INFO] [stdout] 124 | fn look_for_precommand(verb: &str) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_price` is never used
[INFO] [stdout]   --> src/commodity.rs:44:15
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub(crate) fn find_price(commodity: &Commodity, moment: NaiveDateTime, oldest: NaiveDateTime) {
[INFO] [stdout]    |               ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PricePoint` is never constructed
[INFO] [stdout]   --> src/commodity.rs:63:19
[INFO] [stdout]    |
[INFO] [stdout] 63 | pub(crate) struct PricePoint {
[INFO] [stdout]    |                   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/commodity.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 68 | impl PricePoint {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] 69 |     pub fn new(when: NaiveDateTime, price: Amount) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/directives.rs:13:10
[INFO] [stdout]    |
[INFO] [stdout] 13 |     Xact(Xact)
[INFO] [stdout]    |     ---- ^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[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] 13 |     Xact(())
[INFO] [stdout]    |          ~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Comment` and `Price` are never constructed
[INFO] [stdout]   --> src/directives.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |  pub enum DirectiveType {
[INFO] [stdout]    |           ------------- variants in this enum
[INFO] [stdout] 11 |     Comment,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 12 |     Price,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `DirectiveType` 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 `map_prices`, `find_price`, `calculate_rate`, `get_direct_price`, and `print_map` are never used
[INFO] [stdout]    --> src/history.rs:97:12
[INFO] [stdout]     |
[INFO] [stdout] 38  | impl CommodityHistory {
[INFO] [stdout]     | --------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 97  |     pub fn map_prices(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 102 |     pub fn find_price(
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 152 |     fn calculate_rate(&self, source: CommodityIndex, target_ptr: *const Commodity, path: Vec<NodeIndex>) -> (NaiveDateTime, Quantity) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 195 |     pub fn get_direct_price(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 213 |     fn print_map(&self) {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_latest_price` is never used
[INFO] [stdout]    --> src/history.rs:237:4
[INFO] [stdout]     |
[INFO] [stdout] 237 | fn get_latest_price(
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/iterator.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl SimpleParserIter {
[INFO] [stdout]    | --------------------- associated function in this implementation
[INFO] [stdout] 16 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `JournalReader` is never constructed
[INFO] [stdout]  --> src/journalreader.rs:7:19
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub(crate) struct JournalReader {}
[INFO] [stdout]   |                   ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/journalreader.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 9  | impl JournalReader {
[INFO] [stdout]    | ------------------ associated function in this implementation
[INFO] [stdout] 10 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Kind` is never used
[INFO] [stdout]   --> src/option.rs:12:10
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub enum Kind {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_option` is never used
[INFO] [stdout]    --> src/option.rs:119:4
[INFO] [stdout]     |
[INFO] [stdout] 119 | fn find_option(letter: char) {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lookup_option_global` is never used
[INFO] [stdout]    --> src/option.rs:130:4
[INFO] [stdout]     |
[INFO] [stdout] 130 | fn lookup_option_global(kind: Kind, letter: char) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_option` is never used
[INFO] [stdout]    --> src/option.rs:146:4
[INFO] [stdout]     |
[INFO] [stdout] 146 | fn process_option(whence: String, value: Option<String>) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `session_lookup` is never used
[INFO] [stdout]    --> src/option.rs:163:4
[INFO] [stdout]     |
[INFO] [stdout] 163 | fn session_lookup(kind: Kind, name: &str) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `session_lookup_option` is never used
[INFO] [stdout]    --> src/option.rs:178:4
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn session_lookup_option(option: char) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lookup_report` is never used
[INFO] [stdout]    --> src/option.rs:203:4
[INFO] [stdout]     |
[INFO] [stdout] 203 | fn lookup_report(kind: Kind, name: &str) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `lookup_option_report` is never used
[INFO] [stdout]    --> src/option.rs:269:4
[INFO] [stdout]     |
[INFO] [stdout] 269 | fn lookup_option_report(letter: char) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `general_directive` and `include_directive` are never used
[INFO] [stdout]    --> src/parser.rs:195:8
[INFO] [stdout]     |
[INFO] [stdout] 94  | impl<'j, T: Read> Parser<'j, T> {
[INFO] [stdout]     | ------------------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 195 |     fn general_directive(&self) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 325 |     fn include_directive(&self, argument: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `null_commodity` and `default_commodity` are never read
[INFO] [stdout]   --> src/pool.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct CommodityPool {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 32 |     null_commodity: *const Commodity,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 33 |     default_commodity: *const Commodity,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `report_commodities` is never used
[INFO] [stdout]   --> src/report.rs:20:4
[INFO] [stdout]    |
[INFO] [stdout] 20 | fn report_commodities() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `report_payees` is never used
[INFO] [stdout]   --> src/report.rs:24:4
[INFO] [stdout]    |
[INFO] [stdout] 24 | fn report_payees() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_account_balances` is never used
[INFO] [stdout]   --> src/report.rs:76:4
[INFO] [stdout]    |
[INFO] [stdout] 76 | fn get_account_balances(journal: &Journal) -> Vec<(&str, Balance)> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `format_balance_report` is never used
[INFO] [stdout]   --> src/report.rs:99:4
[INFO] [stdout]    |
[INFO] [stdout] 99 | fn format_balance_report(mut balances: Vec<(String, Balance)>, journal: &Journal) -> Vec<String> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `market` is never used
[INFO] [stdout]    --> src/report.rs:135:4
[INFO] [stdout]     |
[INFO] [stdout] 135 | fn market(target_commodity: &str) {
[INFO] [stdout]     |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `remainder` is never read
[INFO] [stdout]   --> src/scanner.rs:65:9
[INFO] [stdout]    |
[INFO] [stdout] 61 | struct CostTokens<'a> {
[INFO] [stdout]    |        ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 65 |     pub remainder: &'a str,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `next_element` is never used
[INFO] [stdout]    --> src/scanner.rs:452:4
[INFO] [stdout]     |
[INFO] [stdout] 452 | fn next_element(input: &str) -> Option<&str> {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `exchange_commodities` is never used
[INFO] [stdout]   --> src/value.rs:15:15
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub(crate) fn exchange_commodities(
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `value` is never used
[INFO] [stdout]   --> src/value.rs:31:4
[INFO] [stdout]    |
[INFO] [stdout] 31 | fn value(moment: &NaiveDateTime, in_terms_of: Option<&Commodity>, pool: &CommodityPool) {
[INFO] [stdout]    |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `amount_value` is never used
[INFO] [stdout]   --> src/value.rs:43:4
[INFO] [stdout]    |
[INFO] [stdout] 43 | fn amount_value(moment: &NaiveDateTime, in_terms_of: Option<&Commodity>, pool: &CommodityPool) {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]   --> src/pool.rs:91:28
[INFO] [stdout]    |
[INFO] [stdout] 90 |             let mut_ptr = cdty_ptr as *mut Commodity;
[INFO] [stdout]    |                           -------------------------- casting happend here
[INFO] [stdout] 91 |             let mut_cdty = &mut *mut_ptr;
[INFO] [stdout]    |                            ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, visit <https://doc.rust-lang.org/book/ch15-05-interior-mutability.html>
[INFO] [stdout]    = note: `#[deny(invalid_reference_casting)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error; 52 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ledger-rs-lib` (lib) due to 2 previous errors; 52 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "d3251bddc4453c6c5fa5c8f6a52010a08a53d5eeadf6aeaffd52711553ce7276", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d3251bddc4453c6c5fa5c8f6a52010a08a53d5eeadf6aeaffd52711553ce7276", kill_on_drop: false }`
[INFO] [stdout] d3251bddc4453c6c5fa5c8f6a52010a08a53d5eeadf6aeaffd52711553ce7276
