[INFO] cloning repository https://github.com/philipwilk/rust-merge-sort [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/philipwilk/rust-merge-sort" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphilipwilk%2Frust-merge-sort", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphilipwilk%2Frust-merge-sort'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 54c6bf0e7ad941d432c88b5ddb2bee3ef3582e40 [INFO] checking philipwilk/rust-merge-sort against try#d8be25549d5418405531341b4be6d8538fc3c42e for pr-156160-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphilipwilk%2Frust-merge-sort" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/philipwilk/rust-merge-sort [INFO] finished tweaking git repo https://github.com/philipwilk/rust-merge-sort [INFO] tweaked toml for git repo https://github.com/philipwilk/rust-merge-sort written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/philipwilk/rust-merge-sort on toolchain d8be25549d5418405531341b4be6d8538fc3c42e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8be25549d5418405531341b4be6d8538fc3c42e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/philipwilk/rust-merge-sort 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" "+d8be25549d5418405531341b4be6d8538fc3c42e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:fd22e2154e7db748230f413534f3a6d034160c9d2b7c14b90fba4e9bfc1a36d4" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 7eb39eb713d49034d44b4f406e1f3fed4cf2f7f7b75d7fb5cf3cc8fd4d214464 [INFO] running `Command { std: "docker" "start" "7eb39eb713d49034d44b4f406e1f3fed4cf2f7f7b75d7fb5cf3cc8fd4d214464", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "7eb39eb713d49034d44b4f406e1f3fed4cf2f7f7b75d7fb5cf3cc8fd4d214464" "/opt/rustwide/cargo-home/bin/cargo" "+d8be25549d5418405531341b4be6d8538fc3c42e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7eb39eb713d49034d44b4f406e1f3fed4cf2f7f7b75d7fb5cf3cc8fd4d214464", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "7eb39eb713d49034d44b4f406e1f3fed4cf2f7f7b75d7fb5cf3cc8fd4d214464" "/opt/rustwide/cargo-home/bin/cargo" "+d8be25549d5418405531341b4be6d8538fc3c42e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.35.1 [INFO] [stderr] Checking rust-merge-sort v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0283]: type annotations needed: cannot satisfy `impl Future>: Send` [INFO] [stdout] --> src/main.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | taskSet.spawn(mergeSort(left)); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `impl Future>: Send` [INFO] [stdout] note: required by a bound in `JoinSet::::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.35.1/src/task/join_set.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn spawn(&mut self, task: F) -> AbortHandle [INFO] [stdout] | ----- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 136 | F: Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `JoinSet::::spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed: cannot satisfy `impl Future>: Send` [INFO] [stdout] --> src/main.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | taskSet.spawn(mergeSort(left)); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `impl Future>: Send` [INFO] [stdout] note: required by a bound in `JoinSet::::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.35.1/src/task/join_set.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn spawn(&mut self, task: F) -> AbortHandle [INFO] [stdout] | ----- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 136 | F: Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `JoinSet::::spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `left` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 5 | for (i, x) in left.iter().enumerate() { [INFO] [stdout] | ----------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 6 | if x < &right[i] { [INFO] [stdout] 7 | left.insert(i, right[i]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `left` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 5 | for (i, x) in left.iter().enumerate() { [INFO] [stdout] | ----------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 6 | if x < &right[i] { [INFO] [stdout] 7 | left.insert(i, right[i]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-merge-sort` (bin "rust-merge-sort") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-merge-sort` (bin "rust-merge-sort" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "7eb39eb713d49034d44b4f406e1f3fed4cf2f7f7b75d7fb5cf3cc8fd4d214464", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7eb39eb713d49034d44b4f406e1f3fed4cf2f7f7b75d7fb5cf3cc8fd4d214464", kill_on_drop: false }` [INFO] [stdout] 7eb39eb713d49034d44b4f406e1f3fed4cf2f7f7b75d7fb5cf3cc8fd4d214464