[INFO] fetching crate alpaca-client 0.1.4... [INFO] building alpaca-client-0.1.4 against master#9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19 for pr-117684 [INFO] extracting crate alpaca-client 0.1.4 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate alpaca-client 0.1.4 on toolchain 9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate alpaca-client 0.1.4 [INFO] finished tweaking crates.io crate alpaca-client 0.1.4 [INFO] tweaked toml for crates.io crate alpaca-client 0.1.4 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded simdutf8 v0.1.4 [INFO] [stderr] Downloaded funty v2.0.0 [INFO] [stderr] Downloaded ptr_meta_derive v0.1.4 [INFO] [stderr] Downloaded rkyv_derive v0.7.42 [INFO] [stderr] Downloaded proc-macro-crate v0.1.5 [INFO] [stderr] Downloaded uuid v0.8.2 [INFO] [stderr] Downloaded borsh-derive v0.10.3 [INFO] [stderr] Downloaded bytecheck v0.6.11 [INFO] [stderr] Downloaded http-body v0.3.1 [INFO] [stderr] Downloaded borsh-derive-internal v0.10.3 [INFO] [stderr] Downloaded httpdate v0.3.2 [INFO] [stderr] Downloaded borsh-schema-derive-internal v0.10.3 [INFO] [stderr] Downloaded tokio-macros v0.2.6 [INFO] [stderr] Downloaded tap v1.0.1 [INFO] [stderr] Downloaded radium v0.7.0 [INFO] [stderr] Downloaded borsh v0.10.3 [INFO] [stderr] Downloaded seahash v4.1.0 [INFO] [stderr] Downloaded wyz v0.5.1 [INFO] [stderr] Downloaded reqwest v0.10.10 [INFO] [stderr] Downloaded rkyv v0.7.42 [INFO] [stderr] Downloaded hashbrown v0.13.2 [INFO] [stderr] Downloaded hyper v0.13.10 [INFO] [stderr] Downloaded rust_decimal v1.32.0 [INFO] [stderr] Downloaded bitvec v1.0.1 [INFO] [stderr] Downloaded hyper-tls v0.4.3 [INFO] [stderr] Downloaded tokio-tls v0.3.1 [INFO] [stderr] Downloaded ahash v0.7.7 [INFO] [stderr] Downloaded winreg v0.7.0 [INFO] [stderr] Downloaded ptr_meta v0.1.4 [INFO] [stderr] Downloaded miow v0.3.7 [INFO] [stderr] Downloaded mio-named-pipes v0.1.7 [INFO] [stderr] Downloaded bytecheck_derive v0.6.11 [INFO] [stderr] Downloaded rend v0.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9fcebb5eeef9b115e5bad2c8eb1cbb9f53a0ae15f9f59dc284714d0aee2158f5 [INFO] running `Command { std: "docker" "start" "-a" "9fcebb5eeef9b115e5bad2c8eb1cbb9f53a0ae15f9f59dc284714d0aee2158f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9fcebb5eeef9b115e5bad2c8eb1cbb9f53a0ae15f9f59dc284714d0aee2158f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fcebb5eeef9b115e5bad2c8eb1cbb9f53a0ae15f9f59dc284714d0aee2158f5", kill_on_drop: false }` [INFO] [stdout] 9fcebb5eeef9b115e5bad2c8eb1cbb9f53a0ae15f9f59dc284714d0aee2158f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9923f8a7bf43fdcf45282815ae705e1c11682bb9c3e9db28712e1280dd43495e [INFO] running `Command { std: "docker" "start" "-a" "9923f8a7bf43fdcf45282815ae705e1c11682bb9c3e9db28712e1280dd43495e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling rust_decimal v1.32.0 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling iana-time-zone v0.1.58 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling openssl-sys v0.9.95 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling openssl v0.10.59 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling serde_derive v1.0.192 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling pin-project v1.1.3 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling hyper v0.13.10 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.10 [INFO] [stderr] Compiling alpaca-client v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_trade.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | size: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | exchange: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | cond1: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | cond2: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | cond3: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | cond4: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_quote.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | askprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | asksize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | askexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | bidprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | bidsize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | bidexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 23.20s [INFO] running `Command { std: "docker" "inspect" "9923f8a7bf43fdcf45282815ae705e1c11682bb9c3e9db28712e1280dd43495e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9923f8a7bf43fdcf45282815ae705e1c11682bb9c3e9db28712e1280dd43495e", kill_on_drop: false }` [INFO] [stdout] 9923f8a7bf43fdcf45282815ae705e1c11682bb9c3e9db28712e1280dd43495e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9f66fc78a5f34f5ac8e14872f73e1acff521265bc95274369365cf24e20a6ba6 [INFO] running `Command { std: "docker" "start" "-a" "9f66fc78a5f34f5ac8e14872f73e1acff521265bc95274369365cf24e20a6ba6", kill_on_drop: false }` [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_trade.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | size: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | exchange: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | cond1: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | cond2: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | cond3: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | cond4: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_quote.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | askprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | asksize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | askexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | bidprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | bidsize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | bidexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling alpaca-client v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `positions` [INFO] [stdout] --> tests/client_position.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let positions:Vec = client.get_open_positions(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_positions` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_open_position` is never used [INFO] [stdout] --> tests/client_position.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn get_open_position() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close_all_positions` is never used [INFO] [stdout] --> tests/client_position.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn close_all_positions() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close_position` is never used [INFO] [stdout] --> tests/client_position.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn close_position() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> tests/client_position.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | &client.place_order(new_order.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = &client.place_order(new_order.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> tests/client_position.rs:54:56 [INFO] [stdout] | [INFO] [stdout] 54 | .any(|x : Position | x.symbol.eq(&new_order.borrow().symbol)); [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `Order` does not implement `Borrow`, so calling `borrow` on `&Order` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/client_position.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | assert!(result, true) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 55 | assert!(result, "{}", true) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> tests/client_position.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | &client.place_order(new_order.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 88 | let _ = &client.place_order(new_order.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> tests/client_position.rs:93:44 [INFO] [stdout] | [INFO] [stdout] 93 | .any(|x| x.symbol.eq(&new_order.borrow().symbol)); [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `Order` does not implement `Borrow`, so calling `borrow` on `&Order` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/client_position.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | assert!(result, false); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 94 | assert!(result, "{}", false); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> tests/client_position.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | &client.place_order(new_order.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 130 | let _ = &client.place_order(new_order.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> tests/client_position.rs:135:44 [INFO] [stdout] | [INFO] [stdout] 135 | .any(|x| x.symbol.eq(&new_order.borrow().symbol)); [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `Order` does not implement `Borrow`, so calling `borrow` on `&Order` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/client_position.rs:136:25 [INFO] [stdout] | [INFO] [stdout] 136 | assert!(result, false) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 136 | assert!(result, "{}", false) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> tests/client_orders.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | &_client.cancel_order(placed_order.id.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 100 | let _ = &_client.cancel_order(placed_order.id.unwrap()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_trade.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | size: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | exchange: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | cond1: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | cond2: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | cond3: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | cond4: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_quote.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | askprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | asksize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | askexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | bidprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | bidsize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | bidexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: LC_ALL="C" PATH="/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/cargo-home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcQTWHpV/symbols.o" "/opt/rustwide/target/debug/deps/market_data-9ba4d9a233f2626e.market_data.992b7f5c03176d78-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/market_data-9ba4d9a233f2626e.3d82ozgftsaqofxp.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-40fb39bc6de2de31.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-d3b13af4a27f1794.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-f05fc41f6f30a0d4.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-4e8b330a7c921459.rlib" "/opt/rustwide/target/debug/deps/libalpaca_client-e3555a04e63a58a0.rlib" "/opt/rustwide/target/debug/deps/libreqwest-25a13bf39cd8cc21.rlib" "/opt/rustwide/target/debug/deps/libhyper_tls-81885e36987efe6f.rlib" "/opt/rustwide/target/debug/deps/libipnet-e48bd8e2986d8365.rlib" "/opt/rustwide/target/debug/deps/libtokio_tls-f3f30eb1f7b7c897.rlib" "/opt/rustwide/target/debug/deps/libserde_urlencoded-e21780658185198f.rlib" "/opt/rustwide/target/debug/deps/libencoding_rs-4e3a503b562f9b7b.rlib" "/opt/rustwide/target/debug/deps/libbase64-f062755f48da8a6d.rlib" "/opt/rustwide/target/debug/deps/libmime_guess-a00bdd910142afe7.rlib" "/opt/rustwide/target/debug/deps/libunicase-af4f682184b6084c.rlib" "/opt/rustwide/target/debug/deps/libmime-34c62d26cca01717.rlib" "/opt/rustwide/target/debug/deps/libnative_tls-c4e2a563cebc488b.rlib" "/opt/rustwide/target/debug/deps/libopenssl_probe-4ef163abf36661c4.rlib" "/opt/rustwide/target/debug/deps/libopenssl-8e275fefa1619259.rlib" "/opt/rustwide/target/debug/deps/libbitflags-a6d0f7d4ff4836bf.rlib" "/opt/rustwide/target/debug/deps/libforeign_types-dc2dc66b96dc6009.rlib" "/opt/rustwide/target/debug/deps/libforeign_types_shared-a723f4363bfbfab5.rlib" "/opt/rustwide/target/debug/deps/libopenssl_sys-40eb6baffdeb1bf8.rlib" "/opt/rustwide/target/debug/deps/libhyper-ce6d09276b072335.rlib" "/opt/rustwide/target/debug/deps/libitoa-a396ee382b80f434.rlib" "/opt/rustwide/target/debug/deps/libhttparse-a8aa5312b7759355.rlib" "/opt/rustwide/target/debug/deps/libwant-d9fcf97a2608bf5a.rlib" "/opt/rustwide/target/debug/deps/libtry_lock-fb35d45ee787f9bf.rlib" "/opt/rustwide/target/debug/deps/libh2-4c1ce776bda12c9f.rlib" "/opt/rustwide/target/debug/deps/libtracing_futures-7a58e1a037871c89.rlib" "/opt/rustwide/target/debug/deps/libindexmap-0b273f9e4b0c9e6b.rlib" "/opt/rustwide/target/debug/deps/libhashbrown-b50da1c079e7685f.rlib" "/opt/rustwide/target/debug/deps/libtokio_util-8b1953e32de43118.rlib" "/opt/rustwide/target/debug/deps/libfutures_sink-b156fc9fd12afa4b.rlib" "/opt/rustwide/target/debug/deps/libhttpdate-0d223fdb006c247a.rlib" "/opt/rustwide/target/debug/deps/libsocket2-acc28705ddccfb4f.rlib" "/opt/rustwide/target/debug/deps/libtower_service-c1df9daf28a2db95.rlib" "/opt/rustwide/target/debug/deps/libfutures_channel-78b8c7387d6038d3.rlib" "/opt/rustwide/target/debug/deps/libpin_project-da6bf28791f8c744.rlib" "/opt/rustwide/target/debug/deps/libtracing-696469179a5f7a76.rlib" "/opt/rustwide/target/debug/deps/libtracing_core-51aab342ecde7319.rlib" "/opt/rustwide/target/debug/deps/libonce_cell-fe848ebb2f78f957.rlib" "/opt/rustwide/target/debug/deps/libtokio-0c368760adc767e2.rlib" "/opt/rustwide/target/debug/deps/libsignal_hook_registry-c50b3cacefadf576.rlib" "/opt/rustwide/target/debug/deps/libnum_cpus-0e3b6d5c7fed957b.rlib" "/opt/rustwide/target/debug/deps/libmio_uds-0784a319eadc3155.rlib" "/opt/rustwide/target/debug/deps/libmio-c6b6aa0b2ff9b9e2.rlib" "/opt/rustwide/target/debug/deps/libiovec-d3bdd3ebe57720f2.rlib" "/opt/rustwide/target/debug/deps/libnet2-9d33e9b0d6cca6ee.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-c6e6d9912bc66f08.rlib" "/opt/rustwide/target/debug/deps/libpin_project_lite-225e1682d3a1dc59.rlib" "/opt/rustwide/target/debug/deps/libhttp_body-d8733a8c40a38d2b.rlib" "/opt/rustwide/target/debug/deps/libbytes-79969d889c342fe2.rlib" "/opt/rustwide/target/debug/deps/liblog-66ffedbc93ece379.rlib" "/opt/rustwide/target/debug/deps/libfutures_util-dbaf0fa1f252bf7a.rlib" "/opt/rustwide/target/debug/deps/libmemchr-926d55368685478f.rlib" "/opt/rustwide/target/debug/deps/libfutures_io-c6f9a7ca30d562a6.rlib" "/opt/rustwide/target/debug/deps/libslab-21558d3888ef8234.rlib" "/opt/rustwide/target/debug/deps/libpin_project_lite-e7704e5c7ccfd1ec.rlib" "/opt/rustwide/target/debug/deps/libfutures_task-bc4cb287ef6673eb.rlib" "/opt/rustwide/target/debug/deps/libpin_utils-339fc95f834a67dc.rlib" "/opt/rustwide/target/debug/deps/libfutures_core-983e792123578a50.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-b82c15677deef9e2.rlib" "/opt/rustwide/target/debug/deps/liburl-a72ac3822d0b02fd.rlib" "/opt/rustwide/target/debug/deps/libidna-247294d2551a784b.rlib" "/opt/rustwide/target/debug/deps/libunicode_normalization-bba00db3dc5ef545.rlib" "/opt/rustwide/target/debug/deps/libtinyvec-a28cafa3c8699823.rlib" "/opt/rustwide/target/debug/deps/libtinyvec_macros-66661c55905090ec.rlib" "/opt/rustwide/target/debug/deps/libunicode_bidi-55d6c07d30fc1c56.rlib" "/opt/rustwide/target/debug/deps/libform_urlencoded-0c0caf6cd3f5adc0.rlib" "/opt/rustwide/target/debug/deps/libpercent_encoding-081a4ba89aade102.rlib" "/opt/rustwide/target/debug/deps/libhttp-f55a5c9c441ecf57.rlib" "/opt/rustwide/target/debug/deps/libbytes-9a0875bf2af5b73e.rlib" "/opt/rustwide/target/debug/deps/libfnv-574dedeaa4c89e1d.rlib" "/opt/rustwide/target/debug/deps/libserde_json-0057f818f35a19ba.rlib" "/opt/rustwide/target/debug/deps/libryu-37cdbfb4f28a09f8.rlib" "/opt/rustwide/target/debug/deps/libitoa-5ba6d8ba689e035b.rlib" "/opt/rustwide/target/debug/deps/libuuid-e311e4e41fd6384e.rlib" "/opt/rustwide/target/debug/deps/libgetrandom-878965b61655a003.rlib" "/opt/rustwide/target/debug/deps/liblibc-e8508648985cb80e.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-0128a598f57c42f0.rlib" "/opt/rustwide/target/debug/deps/librust_decimal-b8d29437368dff29.rlib" "/opt/rustwide/target/debug/deps/libarrayvec-ce4eb8ec16154857.rlib" "/opt/rustwide/target/debug/deps/libchrono-70181890db40b110.rlib" "/opt/rustwide/target/debug/deps/libnum_traits-7daa7c8eddbade7e.rlib" "/opt/rustwide/target/debug/deps/libiana_time_zone-6d5d614fe3b73f91.rlib" "/opt/rustwide/target/debug/deps/libserde-9431d1ffbb20dde2.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-72b35984a787fb54.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-0fdedff926cd8b5a.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-fe0525e327a5464a.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-795b2243f06bd098.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-86ce554ff6ad08cd.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-1be635a4727d8e5e.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-1e55d89766af9c5f.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-02605c7065574d0d.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-0d17ba1067febc2c.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-2408fbe38b247900.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-b3c63e8997fdca47.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-bfa7a39ebb77d49a.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-4b955078cf51c0a1.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-1a6fbee0083900be.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-2b93db426c5a26c2.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-b30975e2b876cf32.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-cd2f2bc505f56f50.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-ec02dd343723da85.rlib" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-408115ade0360d2a.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/market_data-9ba4d9a233f2626e" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: collect2: fatal error: ld terminated with signal 9 [Killed] [INFO] [stdout] compilation terminated. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `alpaca-client` (test "market_data") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "9f66fc78a5f34f5ac8e14872f73e1acff521265bc95274369365cf24e20a6ba6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f66fc78a5f34f5ac8e14872f73e1acff521265bc95274369365cf24e20a6ba6", kill_on_drop: false }` [INFO] [stdout] 9f66fc78a5f34f5ac8e14872f73e1acff521265bc95274369365cf24e20a6ba6 [INFO] building alpaca-client-0.1.4 against try#53e03135c36e913ff664ce8329041b7e3c2fd358 for pr-117684 [INFO] extracting crate alpaca-client 0.1.4 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate alpaca-client 0.1.4 on toolchain 53e03135c36e913ff664ce8329041b7e3c2fd358 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate alpaca-client 0.1.4 [INFO] finished tweaking crates.io crate alpaca-client 0.1.4 [INFO] tweaked toml for crates.io crate alpaca-client 0.1.4 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b8ec81b3aa4bea24dbfe0a1b22cf02c4c1876fc942548eefad289027f0e8ef4 [INFO] running `Command { std: "docker" "start" "-a" "4b8ec81b3aa4bea24dbfe0a1b22cf02c4c1876fc942548eefad289027f0e8ef4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b8ec81b3aa4bea24dbfe0a1b22cf02c4c1876fc942548eefad289027f0e8ef4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b8ec81b3aa4bea24dbfe0a1b22cf02c4c1876fc942548eefad289027f0e8ef4", kill_on_drop: false }` [INFO] [stdout] 4b8ec81b3aa4bea24dbfe0a1b22cf02c4c1876fc942548eefad289027f0e8ef4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 45a7c93a9b51838d0aa3479f21890eca6fd20686e7108bae6e07e3e0f64b4f9e [INFO] running `Command { std: "docker" "start" "-a" "45a7c93a9b51838d0aa3479f21890eca6fd20686e7108bae6e07e3e0f64b4f9e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling rust_decimal v1.32.0 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling iana-time-zone v0.1.58 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling openssl-sys v0.9.95 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling openssl v0.10.59 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling serde_derive v1.0.192 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling pin-project v1.1.3 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling hyper v0.13.10 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.10 [INFO] [stderr] Compiling alpaca-client v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_trade.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | size: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | exchange: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | cond1: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | cond2: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | cond3: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | cond4: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_quote.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | askprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | asksize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | askexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | bidprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | bidsize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | bidexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 37.39s [INFO] running `Command { std: "docker" "inspect" "45a7c93a9b51838d0aa3479f21890eca6fd20686e7108bae6e07e3e0f64b4f9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45a7c93a9b51838d0aa3479f21890eca6fd20686e7108bae6e07e3e0f64b4f9e", kill_on_drop: false }` [INFO] [stdout] 45a7c93a9b51838d0aa3479f21890eca6fd20686e7108bae6e07e3e0f64b4f9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7446b64001084486e7cd6ce8e0543bb4ec1b0431bacd9f2341214648e5d6e516 [INFO] running `Command { std: "docker" "start" "-a" "7446b64001084486e7cd6ce8e0543bb4ec1b0431bacd9f2341214648e5d6e516", kill_on_drop: false }` [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_trade.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | size: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | exchange: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | cond1: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | cond2: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | cond3: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | cond4: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_quote.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | askprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | asksize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | askexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | bidprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | bidsize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | bidexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling alpaca-client v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `positions` [INFO] [stdout] --> tests/client_position.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let positions:Vec = client.get_open_positions(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_positions` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_open_position` is never used [INFO] [stdout] --> tests/client_position.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn get_open_position() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close_all_positions` is never used [INFO] [stdout] --> tests/client_position.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn close_all_positions() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close_position` is never used [INFO] [stdout] --> tests/client_position.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn close_position() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> tests/client_position.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | &client.place_order(new_order.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = &client.place_order(new_order.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> tests/client_orders.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | &_client.cancel_order(placed_order.id.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 100 | let _ = &_client.cancel_order(placed_order.id.unwrap()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> tests/client_position.rs:54:56 [INFO] [stdout] | [INFO] [stdout] 54 | .any(|x : Position | x.symbol.eq(&new_order.borrow().symbol)); [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `Order` does not implement `Borrow`, so calling `borrow` on `&Order` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/client_position.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | assert!(result, true) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 55 | assert!(result, "{}", true) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> tests/client_position.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | &client.place_order(new_order.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 88 | let _ = &client.place_order(new_order.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> tests/client_position.rs:93:44 [INFO] [stdout] | [INFO] [stdout] 93 | .any(|x| x.symbol.eq(&new_order.borrow().symbol)); [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `Order` does not implement `Borrow`, so calling `borrow` on `&Order` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/client_position.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | assert!(result, false); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 94 | assert!(result, "{}", false); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> tests/client_position.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | &client.place_order(new_order.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 130 | let _ = &client.place_order(new_order.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> tests/client_position.rs:135:44 [INFO] [stdout] | [INFO] [stdout] 135 | .any(|x| x.symbol.eq(&new_order.borrow().symbol)); [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `Order` does not implement `Borrow`, so calling `borrow` on `&Order` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/client_position.rs:136:25 [INFO] [stdout] | [INFO] [stdout] 136 | assert!(result, false) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 136 | assert!(result, "{}", false) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_trade.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | size: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | exchange: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | cond1: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | cond2: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | cond3: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | cond4: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_quote.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | askprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | asksize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | askexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | bidprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | bidsize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | bidexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.52s [INFO] running `Command { std: "docker" "inspect" "7446b64001084486e7cd6ce8e0543bb4ec1b0431bacd9f2341214648e5d6e516", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7446b64001084486e7cd6ce8e0543bb4ec1b0431bacd9f2341214648e5d6e516", kill_on_drop: false }` [INFO] [stdout] 7446b64001084486e7cd6ce8e0543bb4ec1b0431bacd9f2341214648e5d6e516