[INFO] fetching crate lfest 0.7.8... [INFO] checking lfest-0.7.8 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate lfest 0.7.8 into /workspace/builds/worker-46/source [INFO] validating manifest of crates.io crate lfest 0.7.8 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate lfest 0.7.8 [INFO] finished tweaking crates.io crate lfest 0.7.8 [INFO] tweaked toml for crates.io crate lfest 0.7.8 written to /workspace/builds/worker-46/source/Cargo.toml [INFO] crate crates.io crate lfest 0.7.8 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust_decimal v1.14.2 [INFO] [stderr] Downloaded rand_distr v0.4.1 [INFO] [stderr] Downloaded time_series_generator v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-46/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-46/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0ffa11b749640af6399bcd90ecefa0908817b889e3531c01b1642242064cd505 [INFO] running `Command { std: "docker" "start" "-a" "0ffa11b749640af6399bcd90ecefa0908817b889e3531c01b1642242064cd505", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ffa11b749640af6399bcd90ecefa0908817b889e3531c01b1642242064cd505", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ffa11b749640af6399bcd90ecefa0908817b889e3531c01b1642242064cd505", kill_on_drop: false }` [INFO] [stdout] 0ffa11b749640af6399bcd90ecefa0908817b889e3531c01b1642242064cd505 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-46/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-46/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 452f51ada8627e4ad8f84d7c954a25f9ad6a7def141bfd4bd507857ed5478399 [INFO] running `Command { std: "docker" "start" "-a" "452f51ada8627e4ad8f84d7c954a25f9ad6a7def141bfd4bd507857ed5478399", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] num-traits v0.2.14: libm [INFO] [stderr] [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking rand_distr v0.4.1 [INFO] [stderr] Checking time_series_generator v0.2.0 [INFO] [stderr] Checking bstr v0.2.16 [INFO] [stderr] Checking rust_decimal v1.14.2 [INFO] [stderr] Checking lfest v0.7.8 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Fixed src/validator.rs (3 fixes) [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:215:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 215 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:224:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 224 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:245:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 245 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:236:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 236 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `log_limit_order_cancellation` [INFO] [stdout] --> src/acc_tracker.rs:256:19 [INFO] [stdout] | [INFO] [stdout] 256 | pub(crate) fn log_limit_order_cancellation(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `log_limit_order_fill` [INFO] [stdout] --> src/acc_tracker.rs:261:19 [INFO] [stdout] | [INFO] [stdout] 261 | pub(crate) fn log_limit_order_fill(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/basic.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/sine_wave_market_orders.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/inverse_futures.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/load_trades.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/linear_futures.rs from 2018 edition to 2021 [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> examples/load_trades.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed tests/linear_futures.rs (1 fix) [INFO] [stderr] Fixed src/validator.rs (2 fixes) [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:215:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 215 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:224:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 224 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:245:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 245 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:236:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 236 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `log_limit_order_cancellation` [INFO] [stdout] --> src/acc_tracker.rs:256:19 [INFO] [stdout] | [INFO] [stdout] 256 | pub(crate) fn log_limit_order_cancellation(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `log_limit_order_fill` [INFO] [stdout] --> src/acc_tracker.rs:261:19 [INFO] [stdout] | [INFO] [stdout] 261 | pub(crate) fn log_limit_order_fill(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 22.69s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking lfest v0.7.8 (/tmp/fixit) [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:215:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 215 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:224:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 224 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:245:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 245 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:236:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 236 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `log_limit_order_cancellation` [INFO] [stdout] --> src/acc_tracker.rs:256:19 [INFO] [stdout] | [INFO] [stdout] 256 | pub(crate) fn log_limit_order_cancellation(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `log_limit_order_fill` [INFO] [stdout] --> src/acc_tracker.rs:261:19 [INFO] [stdout] | [INFO] [stdout] 261 | pub(crate) fn log_limit_order_fill(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:215:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 215 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:224:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 224 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:245:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 245 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/exchange.rs:236:29 [INFO] [stdout] | [INFO] [stdout] 208 | let o: &Order = &self.account.active_limit_orders()[order_idx]; [INFO] [stdout] | ------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 236 | self.execute_limit(o.side, o.limit_price, o.size); [INFO] [stdout] | ^^^^ ------ immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> examples/load_trades.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `log_limit_order_cancellation` [INFO] [stdout] --> src/acc_tracker.rs:256:19 [INFO] [stdout] | [INFO] [stdout] 256 | pub(crate) fn log_limit_order_cancellation(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `log_limit_order_fill` [INFO] [stdout] --> src/acc_tracker.rs:261:19 [INFO] [stdout] | [INFO] [stdout] 261 | pub(crate) fn log_limit_order_fill(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.94s [INFO] running `Command { std: "docker" "inspect" "452f51ada8627e4ad8f84d7c954a25f9ad6a7def141bfd4bd507857ed5478399", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "452f51ada8627e4ad8f84d7c954a25f9ad6a7def141bfd4bd507857ed5478399", kill_on_drop: false }` [INFO] [stdout] 452f51ada8627e4ad8f84d7c954a25f9ad6a7def141bfd4bd507857ed5478399