[INFO] cloning repository https://github.com/ylloc/Toy-Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ylloc/Toy-Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/ylloc/Toy-Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ylloc/Toy-Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange/objects/pack: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 2) [INFO] cloning repository https://github.com/ylloc/Toy-Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ylloc/Toy-Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange'... [INFO] [stderr] error: copy-fd: write returned: No space left on device [INFO] [stderr] fatal: cannot copy '/usr/share/git-core/templates/hooks/applypatch-msg.sample' to '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange/hooks/applypatch-msg.sample': No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 3) [INFO] cloning repository https://github.com/ylloc/Toy-Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ylloc/Toy-Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 4) [INFO] cloning repository https://github.com/ylloc/Toy-Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ylloc/Toy-Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 5) [INFO] cloning repository https://github.com/ylloc/Toy-Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ylloc/Toy-Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 6) [INFO] cloning repository https://github.com/ylloc/Toy-Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ylloc/Toy-Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 7) [INFO] cloning repository https://github.com/ylloc/Toy-Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ylloc/Toy-Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 8) [INFO] cloning repository https://github.com/ylloc/Toy-Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ylloc/Toy-Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 9) [INFO] cloning repository https://github.com/ylloc/Toy-Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ylloc/Toy-Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 10) [INFO] cloning repository https://github.com/ylloc/Toy-Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ylloc/Toy-Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 11) [INFO] cloning repository https://github.com/ylloc/Toy-Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ylloc/Toy-Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 12) [INFO] cloning repository https://github.com/ylloc/Toy-Exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ylloc/Toy-Exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 244d7c0b0b906f4e793a13c70b1e84404dd7fcbf [INFO] checking ylloc/Toy-Exchange against try#fafe42c59556a4233f03dd0d900b575a9afeece8 for pr-143764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: unable to write file .idea/modules.xml [INFO] [stderr] error: unable to write file .idea/vcs.xml [INFO] [stderr] error: unable to write file Cargo.lock [INFO] [stderr] error: unable to write file Cargo.toml [INFO] [stderr] error: unable to write file README.md [INFO] [stderr] fatal: cannot create directory at 'src': No space left on device [INFO] [stderr] warning: Clone succeeded, but checkout failed. [INFO] [stderr] You can inspect what was checked out with 'git status' [INFO] [stderr] and retry with 'git restore --source=HEAD :/' [INFO] [stderr] [INFO] checking ylloc/Toy-Exchange against try#fafe42c59556a4233f03dd0d900b575a9afeece8 for pr-143764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: unable to write file .idea/Toy-Exchange.iml [INFO] [stderr] error: unable to write file .idea/modules.xml [INFO] [stderr] error: unable to write file .idea/vcs.xml [INFO] [stderr] error: unable to write file Cargo.lock [INFO] [stderr] error: unable to write file Cargo.toml [INFO] [stderr] error: unable to write file README.md [INFO] [stderr] fatal: cannot create directory at 'src': No space left on device [INFO] [stderr] warning: Clone succeeded, but checkout failed. [INFO] [stderr] You can inspect what was checked out with 'git status' [INFO] [stderr] and retry with 'git restore --source=HEAD :/' [INFO] [stderr] [INFO] checking ylloc/Toy-Exchange against try#fafe42c59556a4233f03dd0d900b575a9afeece8 for pr-143764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] error: failed to write new configuration file /workspace/builds/worker-3-tc2/source/.git/config.lock [INFO] [stderr] fatal: could not set 'remote.origin.fetch' to '+refs/heads/*:refs/remotes/origin/*' [INFO] checking ylloc/Toy-Exchange against try#fafe42c59556a4233f03dd0d900b575a9afeece8 for pr-143764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fylloc%2FToy-Exchange" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ylloc/Toy-Exchange [INFO] finished tweaking git repo https://github.com/ylloc/Toy-Exchange [INFO] tweaked toml for git repo https://github.com/ylloc/Toy-Exchange written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ylloc/Toy-Exchange on toolchain fafe42c59556a4233f03dd0d900b575a9afeece8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ylloc/Toy-Exchange 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" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rb_tree v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7899541ad4cb7500c8298a02384b980081f0ff0ff807ba0d285770344c989570 [INFO] running `Command { std: "docker" "start" "-a" "7899541ad4cb7500c8298a02384b980081f0ff0ff807ba0d285770344c989570", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7899541ad4cb7500c8298a02384b980081f0ff0ff807ba0d285770344c989570", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7899541ad4cb7500c8298a02384b980081f0ff0ff807ba0d285770344c989570", kill_on_drop: false }` [INFO] [stdout] 7899541ad4cb7500c8298a02384b980081f0ff0ff807ba0d285770344c989570 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8a8ab4ef6c23f296cede919c16e58de591b368d190f77687e02a94b45a222bc0 [INFO] running `Command { std: "docker" "start" "-a" "8a8ab4ef6c23f296cede919c16e58de591b368d190f77687e02a94b45a222bc0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking rb_tree v0.5.0 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rust-exchange v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/engine.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeMap` and `Bound` [INFO] [stdout] --> src/order.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{Bound, BTreeMap}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/engine.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeMap` and `Bound` [INFO] [stdout] --> src/order.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{Bound, BTreeMap}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | /// 0.01 < 0.1, so there will be no active orders! [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | let mut engine = create_engine(); [INFO] [stdout] | --------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `key` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | if cursor.key().is_none() { [INFO] [stdout] | ^^^ method not found in `std::collections::btree_map::CursorMut<'_, order::Order, i64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `key` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:105:34 [INFO] [stdout] | [INFO] [stdout] 105 | while need > EPS && cursor.key().is_some() { [INFO] [stdout] | ^^^ method not found in `std::collections::btree_map::CursorMut<'_, order::Order, i64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:106:28 [INFO] [stdout] | [INFO] [stdout] 106 | let value = cursor.value().unwrap().clone(); [INFO] [stdout] | ^^^^^ method not found in `std::collections::btree_map::CursorMut<'_, order::Order, i64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `key` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | if cursor.key().is_none() { [INFO] [stdout] | ^^^ method not found in `std::collections::btree_map::CursorMut<'_, order::Order, i64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `key` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 107 | if cursor.key().unwrap().quantity >= need { [INFO] [stdout] | ^^^ method not found in `std::collections::btree_map::CursorMut<'_, order::Order, i64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `key` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:105:34 [INFO] [stdout] | [INFO] [stdout] 105 | while need > EPS && cursor.key().is_some() { [INFO] [stdout] | ^^^ method not found in `std::collections::btree_map::CursorMut<'_, order::Order, i64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remove_current` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:108:45 [INFO] [stdout] | [INFO] [stdout] 108 | let mut incomplete_order = cursor.remove_current().unwrap().0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `remove_next` with a similar name [INFO] [stdout] | [INFO] [stdout] 108 - let mut incomplete_order = cursor.remove_current().unwrap().0; [INFO] [stdout] 108 + let mut incomplete_order = cursor.remove_next().unwrap().0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:106:28 [INFO] [stdout] | [INFO] [stdout] 106 | let value = cursor.value().unwrap().clone(); [INFO] [stdout] | ^^^^^ method not found in `std::collections::btree_map::CursorMut<'_, order::Order, i64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `key` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 107 | if cursor.key().unwrap().quantity >= need { [INFO] [stdout] | ^^^ method not found in `std::collections::btree_map::CursorMut<'_, order::Order, i64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remove_current_and_move_back` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:119:42 [INFO] [stdout] | [INFO] [stdout] 119 | let part_filled_order = cursor.remove_current_and_move_back().unwrap().0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `std::collections::btree_map::CursorMut<'_, order::Order, i64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remove_current` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:108:45 [INFO] [stdout] | [INFO] [stdout] 108 | let mut incomplete_order = cursor.remove_current().unwrap().0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `remove_next` with a similar name [INFO] [stdout] | [INFO] [stdout] 108 - let mut incomplete_order = cursor.remove_current().unwrap().0; [INFO] [stdout] 108 + let mut incomplete_order = cursor.remove_next().unwrap().0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `move_next` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:122:20 [INFO] [stdout] | [INFO] [stdout] 122 | cursor.move_next(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `remove_next` with a similar name [INFO] [stdout] | [INFO] [stdout] 122 | cursor.remove_next(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remove_current_and_move_back` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:119:42 [INFO] [stdout] | [INFO] [stdout] 119 | let part_filled_order = cursor.remove_current_and_move_back().unwrap().0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `std::collections::btree_map::CursorMut<'_, order::Order, i64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `move_next` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/engine.rs:122:20 [INFO] [stdout] | [INFO] [stdout] 122 | cursor.move_next(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `remove_next` with a similar name [INFO] [stdout] | [INFO] [stdout] 122 | cursor.remove_next(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-exchange` (lib) due to 7 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `key` found for struct `std::collections::btree_map::CursorMut` in the current scope [INFO] [stdout] --> src/lib.rs:85:47 [INFO] [stdout] | [INFO] [stdout] 85 | let x = orderbook.lower_bound(j as f64).key().unwrap().clone().hash; [INFO] [stdout] | ^^^ method not found in `std::collections::btree_map::CursorMut<'_, order::Order, i64>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-exchange` (lib test) due to 8 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8a8ab4ef6c23f296cede919c16e58de591b368d190f77687e02a94b45a222bc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a8ab4ef6c23f296cede919c16e58de591b368d190f77687e02a94b45a222bc0", kill_on_drop: false }` [INFO] [stdout] 8a8ab4ef6c23f296cede919c16e58de591b368d190f77687e02a94b45a222bc0