[INFO] cloning repository https://github.com/mikemiller35/my_order_book [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mikemiller35/my_order_book" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmikemiller35%2Fmy_order_book", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmikemiller35%2Fmy_order_book'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dd25f05b9786ac21b984d2fd5bd4fcb81dddfbb8 [INFO] testing mikemiller35/my_order_book against master#e9385f9eea0221ef295a188d49d16f8f5189abf1 for pr-146098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmikemiller35%2Fmy_order_book" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mikemiller35/my_order_book [INFO] finished tweaking git repo https://github.com/mikemiller35/my_order_book [INFO] tweaked toml for git repo https://github.com/mikemiller35/my_order_book written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mikemiller35/my_order_book on toolchain e9385f9eea0221ef295a188d49d16f8f5189abf1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mikemiller35/my_order_book 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" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed7b2ce449d4a854c5c5f068ac89e917250dbceedfd325bf71373def441a089b [INFO] running `Command { std: "docker" "start" "-a" "ed7b2ce449d4a854c5c5f068ac89e917250dbceedfd325bf71373def441a089b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed7b2ce449d4a854c5c5f068ac89e917250dbceedfd325bf71373def441a089b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed7b2ce449d4a854c5c5f068ac89e917250dbceedfd325bf71373def441a089b", kill_on_drop: false }` [INFO] [stdout] ed7b2ce449d4a854c5c5f068ac89e917250dbceedfd325bf71373def441a089b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb9bb4e3bb225f2eaec8af21804323011a846cbfc0877174fb6cd21b97d42905 [INFO] running `Command { std: "docker" "start" "-a" "eb9bb4e3bb225f2eaec8af21804323011a846cbfc0877174fb6cd21b97d42905", kill_on_drop: false }` [INFO] [stderr] Compiling my_order_book v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/main.rs:12:67 [INFO] [stdout] | [INFO] [stdout] 12 | if result1.trades.is_empty() { "No trades" } else { &format!("{} trades", result1.trades.len()) }); [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | || | [INFO] [stdout] | || temporary value is freed at the end of this statement [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/main.rs:14:67 [INFO] [stdout] | [INFO] [stdout] 14 | if result2.trades.is_empty() { "No trades" } else { &format!("{} trades", result2.trades.len()) }); [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | || | [INFO] [stdout] | || temporary value is freed at the end of this statement [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/main.rs:21:67 [INFO] [stdout] | [INFO] [stdout] 21 | if result3.trades.is_empty() { "No trades" } else { &format!("{} trades", result3.trades.len()) }); [INFO] [stdout] | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | || | [INFO] [stdout] | || temporary value is freed at the end of this statement [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `my_order_book` (bin "my_order_book") due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "eb9bb4e3bb225f2eaec8af21804323011a846cbfc0877174fb6cd21b97d42905", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb9bb4e3bb225f2eaec8af21804323011a846cbfc0877174fb6cd21b97d42905", kill_on_drop: false }` [INFO] [stdout] eb9bb4e3bb225f2eaec8af21804323011a846cbfc0877174fb6cd21b97d42905