[INFO] fetching crate lfest 0.7.8... [INFO] checking lfest-0.7.8 against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] extracting crate lfest 0.7.8 into /workspace/builds/worker-77/source [INFO] validating manifest of crates.io crate lfest 0.7.8 on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "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-77/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-77/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-77/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d4bbfeaaf1a5ce00e07b43a21f9019dab90b671033a3506a59174fb6f149c2d6 [INFO] running `Command { std: "docker" "start" "-a" "d4bbfeaaf1a5ce00e07b43a21f9019dab90b671033a3506a59174fb6f149c2d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d4bbfeaaf1a5ce00e07b43a21f9019dab90b671033a3506a59174fb6f149c2d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4bbfeaaf1a5ce00e07b43a21f9019dab90b671033a3506a59174fb6f149c2d6", kill_on_drop: false }` [INFO] [stdout] d4bbfeaaf1a5ce00e07b43a21f9019dab90b671033a3506a59174fb6f149c2d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-77/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-77/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a8b0fd5c8e7c14a7e1a560b7482214a8a4ce455f2e06eccd9fd323080106f6d [INFO] running `Command { std: "docker" "start" "-a" "3a8b0fd5c8e7c14a7e1a560b7482214a8a4ce455f2e06eccd9fd323080106f6d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling log v0.4.14 [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 aho-corasick v0.7.18 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking rand_distr v0.4.1 [INFO] [stderr] Checking time_series_generator v0.2.0 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking bstr v0.2.16 [INFO] [stderr] Checking rust_decimal v1.14.2 [INFO] [stderr] Checking lfest v0.7.8 (/opt/rustwide/workdir) [INFO] [stderr] Checking csv v1.1.6 [INFO] [stdout] warning: unused variable: `reference_price` [INFO] [stdout] --> src/validator.rs:186:17 [INFO] [stdout] | [INFO] [stdout] 186 | let (d, reference_price) = match max_idx { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reference_price` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order` [INFO] [stdout] --> src/validator.rs:233:31 [INFO] [stdout] | [INFO] [stdout] 233 | fn order_cost_stop(&self, order: &Order, acc: &Account) -> (f64, f64) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `acc` [INFO] [stdout] --> src/validator.rs:233:46 [INFO] [stdout] | [INFO] [stdout] 233 | fn order_cost_stop(&self, order: &Order, acc: &Account) -> (f64, f64) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_acc` [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: 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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fee_taker` [INFO] [stdout] --> tests/linear_futures.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let fee_taker = config.fee_taker; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fee_taker` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reference_price` [INFO] [stdout] --> src/validator.rs:186:17 [INFO] [stdout] | [INFO] [stdout] 186 | let (d, reference_price) = match max_idx { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reference_price` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order` [INFO] [stdout] --> src/validator.rs:233:31 [INFO] [stdout] | [INFO] [stdout] 233 | fn order_cost_stop(&self, order: &Order, acc: &Account) -> (f64, f64) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `acc` [INFO] [stdout] --> src/validator.rs:233:46 [INFO] [stdout] | [INFO] [stdout] 233 | fn order_cost_stop(&self, order: &Order, acc: &Account) -> (f64, f64) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_acc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `acc` [INFO] [stdout] --> src/validator.rs:490:13 [INFO] [stdout] | [INFO] [stdout] 490 | let acc = Account::new(1.0, 1.0, FuturesType::Inverse); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_acc` [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: variable does not need to be mutable [INFO] [stdout] --> src/validator.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | let mut acc = Account::new(leverage, 1.0, FuturesType::Inverse); [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: 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: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 20.50s [INFO] running `Command { std: "docker" "inspect" "3a8b0fd5c8e7c14a7e1a560b7482214a8a4ce455f2e06eccd9fd323080106f6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a8b0fd5c8e7c14a7e1a560b7482214a8a4ce455f2e06eccd9fd323080106f6d", kill_on_drop: false }` [INFO] [stdout] 3a8b0fd5c8e7c14a7e1a560b7482214a8a4ce455f2e06eccd9fd323080106f6d