[INFO] cloning repository https://github.com/wuminzhe/matching-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wuminzhe/matching-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwuminzhe%2Fmatching-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwuminzhe%2Fmatching-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c74254d0e4d972c8b6735cd068d5f349e92683c5 [INFO] checking wuminzhe/matching-rs against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwuminzhe%2Fmatching-rs" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wuminzhe/matching-rs on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/wuminzhe/matching-rs [INFO] finished tweaking git repo https://github.com/wuminzhe/matching-rs [INFO] tweaked toml for git repo https://github.com/wuminzhe/matching-rs written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/wuminzhe/matching-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c931744018ce526bd9b16dbbf344da0f6564a9912c14a2531d31bb83d41418c5 [INFO] running `Command { std: "docker" "start" "-a" "c931744018ce526bd9b16dbbf344da0f6564a9912c14a2531d31bb83d41418c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c931744018ce526bd9b16dbbf344da0f6564a9912c14a2531d31bb83d41418c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c931744018ce526bd9b16dbbf344da0f6564a9912c14a2531d31bb83d41418c5", kill_on_drop: false }` [INFO] [stdout] c931744018ce526bd9b16dbbf344da0f6564a9912c14a2531d31bb83d41418c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 667f7a07a4c4d90cf70065d5d55cdc361fe03b3de677e25587ce17911ce58ab0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "667f7a07a4c4d90cf70065d5d55cdc361fe03b3de677e25587ce17911ce58ab0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling cc v1.0.37 [INFO] [stderr] Compiling syn v0.15.39 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Compiling serde v1.0.94 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling log v0.4.7 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling regex v1.1.7 [INFO] [stderr] Checking spin v0.5.0 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling ucd-trie v0.1.1 [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling maplit v1.0.1 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling smallvec v0.6.10 [INFO] [stderr] Checking utf8-ranges v1.0.3 [INFO] [stderr] Compiling ucd-util v0.1.3 [INFO] [stderr] Compiling same-file v1.0.5 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling cookie-factory v0.2.4 [INFO] [stderr] Compiling ryu v0.2.8 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Compiling num-bigint v0.2.2 [INFO] [stderr] Compiling openssl v0.10.23 [INFO] [stderr] Checking static_assertions v0.2.5 [INFO] [stderr] Compiling nix v0.13.1 [INFO] [stderr] Checking opaque-debug v0.2.2 [INFO] [stderr] Checking rustc-demangle v0.1.15 [INFO] [stderr] Compiling native-tls v0.2.3 [INFO] [stderr] Checking uuid v0.7.4 [INFO] [stderr] Checking bit-vec v0.5.1 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Compiling mysql v16.0.2 [INFO] [stderr] Checking bufstream v0.1.4 [INFO] [stderr] Checking termcolor v1.0.5 [INFO] [stderr] Checking intrusive-collections v0.6.8 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking regex-syntax v0.6.7 [INFO] [stderr] Compiling pest v2.1.1 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Compiling walkdir v2.2.8 [INFO] [stderr] Checking humantime v1.2.0 [INFO] [stderr] Checking block-padding v0.1.4 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking crossbeam-utils v0.6.5 [INFO] [stderr] Checking crc32fast v1.2.0 [INFO] [stderr] Compiling stackvector v1.0.6 [INFO] [stderr] Compiling lexical-core v0.4.2 [INFO] [stderr] Compiling lexical v2.2.1 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking crossbeam-channel v0.3.8 [INFO] [stderr] Compiling pest_meta v2.1.1 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling libgit2-sys v0.8.1 [INFO] [stderr] Compiling openssl-sys v0.9.47 [INFO] [stderr] Compiling backtrace-sys v0.1.30 [INFO] [stderr] Compiling miniz-sys v0.1.12 [INFO] [stderr] Compiling aho-corasick v0.7.4 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking mio v0.6.19 [INFO] [stderr] Checking sha2 v0.8.0 [INFO] [stderr] Compiling chrono v0.4.7 [INFO] [stderr] Checking input_buffer v0.2.0 [INFO] [stderr] Checking flate2 v1.0.9 [INFO] [stderr] Checking mio-extras v2.0.5 [INFO] [stderr] Checking twox-hash v1.4.2 [INFO] [stderr] Checking backtrace v0.3.32 [INFO] [stderr] Checking bigdecimal v0.1.0 [INFO] [stderr] Checking env_logger v0.6.2 [INFO] [stderr] Compiling pest_generator v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.95 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling snafu-derive v0.4.1 [INFO] [stderr] Checking snafu v0.4.1 [INFO] [stderr] Checking serde_json v1.0.40 [INFO] [stderr] Checking handlebars v1.1.0 [INFO] [stderr] Checking amq-protocol-types v1.2.0 [INFO] [stderr] Checking mysql_common v0.17.1 [INFO] [stderr] Compiling toml v0.5.1 [INFO] [stderr] Compiling git2 v0.9.1 [INFO] [stderr] Checking amq-protocol-codegen v1.4.0 [INFO] [stderr] Compiling built v0.3.1 [INFO] [stderr] Compiling amiquip v0.3.0 [INFO] [stderr] Compiling amq-protocol v1.4.0 [INFO] [stderr] Checking matching-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> src/main.rs:2:132 [INFO] [stdout] | [INFO] [stdout] 2 | use amiquip::{FieldTable, ExchangeType, ExchangeDeclareOptions, Connection, ConsumerMessage, ConsumerOptions, QueueDeclareOptions, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/managers.rs:39:102 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn submit(&mut self, price: f64, volume: f64, side: u8, created_by: &str) -> Result>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> src/main.rs:2:132 [INFO] [stdout] | [INFO] [stdout] 2 | use amiquip::{FieldTable, ExchangeType, ExchangeDeclareOptions, Connection, ConsumerMessage, ConsumerOptions, QueueDeclareOptions, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/managers.rs:39:102 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn submit(&mut self, price: f64, volume: f64, side: u8, created_by: &str) -> Result>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 57 | for (i, message) in consumer.receiver().iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | let id = order_manager.submit(price, volume, side, user_id).unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `counter_book` [INFO] [stdout] --> src/engine/engine.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | let (book, counter_book) = self.order_book_pair.get_books_mut(order.side); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_counter_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `created_by` [INFO] [stdout] --> src/managers.rs:65:74 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn cancel(&mut self, id: u64, price: f64, volume: f64, side: u8, created_by: &str) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_created_by` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/engine/engine.rs:122:26 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn new<'b>(on_trade: &'b dyn Fn(TradeEvent), on_cancel: &'b dyn Fn(u64)) -> Engine<'b> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ defined here [INFO] [stdout] ... [INFO] [stdout] 122 | let mut engine = Engine::new(on_trade); [INFO] [stdout] | ^^^^^^^^^^^ -------- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top` [INFO] [stdout] --> src/engine/order_book.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn top(&self) -> Option<&LimitOrder> { [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: `is_empty` [INFO] [stdout] --> src/engine/order_book.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/engine/order_book.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_books` [INFO] [stdout] --> src/engine/order_book_pair.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn get_books(&self, side: Side) -> (&OrderBook, &OrderBook) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `on_cancel` [INFO] [stdout] --> src/engine/engine.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | on_cancel: &'a dyn Fn(u64), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cancel` [INFO] [stdout] --> src/engine/engine.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn cancel(&mut self, order: LimitOrder) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_volume` [INFO] [stdout] --> src/models/order.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn add_volume(conn: &mut T, id: u64, delta_volume: f64, filled: bool) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find` [INFO] [stdout] --> src/models/order.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn find(pool: &mysql::Pool) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cancel` [INFO] [stdout] --> src/managers.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn cancel(&mut self, id: u64, price: f64, volume: f64, side: u8, created_by: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_orderbook` [INFO] [stdout] --> src/managers.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn print_orderbook(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `matching-rs` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | consumer.ack(delivery); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | connection.close(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/models/order.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | / stmt.execute(( [INFO] [stdout] 45 | | CANCEL, [INFO] [stdout] 46 | | id, [INFO] [stdout] 47 | | )); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/models/order.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | / stmt.execute(( [INFO] [stdout] 56 | | delta_volume, [INFO] [stdout] 57 | | state, [INFO] [stdout] 58 | | id, [INFO] [stdout] 59 | | )); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/models/order.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | / stmt.execute(( [INFO] [stdout] 68 | | delta_volume, [INFO] [stdout] 69 | | state, [INFO] [stdout] 70 | | id, [INFO] [stdout] 71 | | )); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "667f7a07a4c4d90cf70065d5d55cdc361fe03b3de677e25587ce17911ce58ab0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "667f7a07a4c4d90cf70065d5d55cdc361fe03b3de677e25587ce17911ce58ab0", kill_on_drop: false }` [INFO] [stdout] 667f7a07a4c4d90cf70065d5d55cdc361fe03b3de677e25587ce17911ce58ab0