[INFO] cloning repository https://github.com/dxganta/matching-engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dxganta/matching-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdxganta%2Fmatching-engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdxganta%2Fmatching-engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a0654574d070c4cd0ad1a5024e5ca320b613397b [INFO] testing dxganta/matching-engine against master#b03b3a7ec92682be2917540b679478d41c95a30c for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdxganta%2Fmatching-engine" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dxganta/matching-engine [INFO] finished tweaking git repo https://github.com/dxganta/matching-engine [INFO] tweaked toml for git repo https://github.com/dxganta/matching-engine written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dxganta/matching-engine on toolchain b03b3a7ec92682be2917540b679478d41c95a30c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dxganta/matching-engine already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3a9c6c227f3f3139a4aa79c90ccbce693c51fe836b8fe65a0b6310e22a444ddc [INFO] running `Command { std: "docker" "start" "-a" "3a9c6c227f3f3139a4aa79c90ccbce693c51fe836b8fe65a0b6310e22a444ddc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a9c6c227f3f3139a4aa79c90ccbce693c51fe836b8fe65a0b6310e22a444ddc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a9c6c227f3f3139a4aa79c90ccbce693c51fe836b8fe65a0b6310e22a444ddc", kill_on_drop: false }` [INFO] [stdout] 3a9c6c227f3f3139a4aa79c90ccbce693c51fe836b8fe65a0b6310e22a444ddc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] df7324cd618e1390f4c20517dd4083e155075d035014a527747a794478885fe8 [INFO] running `Command { std: "docker" "start" "-a" "df7324cd618e1390f4c20517dd4083e155075d035014a527747a794478885fe8", kill_on_drop: false }` [INFO] [stderr] Compiling matching-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `order` [INFO] [stdout] --> src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let order = Order::default(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_order` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderBook` is never constructed [INFO] [stdout] --> src/order_book.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct OrderBook { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_buy_order`, `add_sell_order`, `remove_buy_order`, `remove_sell_order`, and `process_limit_buy` are never used [INFO] [stdout] --> src/order_book.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl OrderBook { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 13 | // add a buy order to the order book [INFO] [stdout] 14 | fn add_buy_order(&mut self, order:Order) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn add_sell_order(&mut self, order:Order) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn remove_buy_order(&mut self, ind:usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn remove_sell_order(&mut self, ind:usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn process_limit_buy(&mut self, mut order:Order) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `amount`, `price`, `id`, and `side` are never read [INFO] [stdout] --> src/order_book/order.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Order { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | pub amount: u64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | pub price: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | pub id : String, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | pub side : i8 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Order` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Trade` is never constructed [INFO] [stdout] --> src/order_book/trade.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Trade { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/order_book/trade.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Trade { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(taker_order_id:String, maker_order_id:String, amount:u64, price:u64) -> Trade { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustcjTEZ6m/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcjTEZ6m/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,-znostart-stop-gc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/matching_engine-741d46ce666a41c4" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: collect2: fatal error: ld terminated with signal 7 [Bus error], core dumped [INFO] [stdout] compilation terminated. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `matching-engine` (bin "matching-engine") due to 1 previous error; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "df7324cd618e1390f4c20517dd4083e155075d035014a527747a794478885fe8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df7324cd618e1390f4c20517dd4083e155075d035014a527747a794478885fe8", kill_on_drop: false }` [INFO] [stdout] df7324cd618e1390f4c20517dd4083e155075d035014a527747a794478885fe8