[INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 2) [INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 3) [INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 4) [INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 5) [INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 6) [INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 7) [INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 8) [INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 9) [INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 10) [INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 11) [INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 12) [INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 13) [INFO] cloning repository https://github.com/TTedy/Rust-Verkefni-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TTedy/Rust-Verkefni-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e00266b0e632c944fd58451db0430e0e9946a31a [INFO] checking TTedy/Rust-Verkefni-1 against try#8c500c7cefd54fd11d57295f3771d576be9ee415 for pr-145113 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1" "/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/TTedy/Rust-Verkefni-1 [INFO] finished tweaking git repo https://github.com/TTedy/Rust-Verkefni-1 [INFO] tweaked toml for git repo https://github.com/TTedy/Rust-Verkefni-1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/TTedy/Rust-Verkefni-1 on toolchain 8c500c7cefd54fd11d57295f3771d576be9ee415 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/TTedy/Rust-Verkefni-1 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" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] Error response from daemon: mkdir /var/lib/docker/overlay2/1db43f46fa5b29660fc5310f40fef92a8c9b303c81a5cb54b04d25c4bf68f8fa-init/diff: no space left on device [INFO] checking TTedy/Rust-Verkefni-1 against try#8c500c7cefd54fd11d57295f3771d576be9ee415 for pr-145113 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTTedy%2FRust-Verkefni-1" "/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/TTedy/Rust-Verkefni-1 [INFO] finished tweaking git repo https://github.com/TTedy/Rust-Verkefni-1 [INFO] tweaked toml for git repo https://github.com/TTedy/Rust-Verkefni-1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/TTedy/Rust-Verkefni-1 on toolchain 8c500c7cefd54fd11d57295f3771d576be9ee415 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/TTedy/Rust-Verkefni-1 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" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 717c62a372d75be0f17cb8d62d84b156284f8dab57b5cbb79d8c53816d9314f1 [INFO] running `Command { std: "docker" "start" "-a" "717c62a372d75be0f17cb8d62d84b156284f8dab57b5cbb79d8c53816d9314f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "717c62a372d75be0f17cb8d62d84b156284f8dab57b5cbb79d8c53816d9314f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "717c62a372d75be0f17cb8d62d84b156284f8dab57b5cbb79d8c53816d9314f1", kill_on_drop: false }` [INFO] [stdout] 717c62a372d75be0f17cb8d62d84b156284f8dab57b5cbb79d8c53816d9314f1 [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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+8c500c7cefd54fd11d57295f3771d576be9ee415" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9d7614a3834acd22b484a70b4e7cdb46987e9b0c305cafd3b9539f2eddebe3df [INFO] running `Command { std: "docker" "start" "-a" "9d7614a3834acd22b484a70b4e7cdb46987e9b0c305cafd3b9539f2eddebe3df", kill_on_drop: false }` [INFO] [stderr] Checking arrays v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `half` in this scope [INFO] [stdout] --> src/main.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | let mut current = arr[half]; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `half` in this scope [INFO] [stdout] --> src/main.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | let mut current = arr[half]; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `half` in this scope [INFO] [stdout] --> src/main.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | return Some(half) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `half` in this scope [INFO] [stdout] --> src/main.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | return Some(half) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `lind` in this scope [INFO] [stdout] --> src/main.rs:19:33 [INFO] [stdout] | [INFO] [stdout] 19 | else if current < find{ lind = half + 1; } else if current > find { [INFO] [stdout] | ^^^^ help: a local variable with a similar name exists: `find` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `lind` in this scope [INFO] [stdout] --> src/main.rs:19:33 [INFO] [stdout] | [INFO] [stdout] 19 | else if current < find{ lind = half + 1; } else if current > find { [INFO] [stdout] | ^^^^ help: a local variable with a similar name exists: `find` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `half` in this scope [INFO] [stdout] --> src/main.rs:19:40 [INFO] [stdout] | [INFO] [stdout] 19 | else if current < find{ lind = half + 1; } else if current > find { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `half` in this scope [INFO] [stdout] --> src/main.rs:19:40 [INFO] [stdout] | [INFO] [stdout] 19 | else if current < find{ lind = half + 1; } else if current > find { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for enum `Option` [INFO] [stdout] --> src/main.rs:8:47 [INFO] [stdout] | [INFO] [stdout] 8 | fn binary_search(arr: &[usize],find:usize) -> Option { [INFO] [stdout] | ^^^^^^ expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 8 | fn binary_search(arr: &[usize],find:usize) -> Option { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for enum `Option` [INFO] [stdout] --> src/main.rs:8:47 [INFO] [stdout] | [INFO] [stdout] 8 | fn binary_search(arr: &[usize],find:usize) -> Option { [INFO] [stdout] | ^^^^^^ expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 8 | fn binary_search(arr: &[usize],find:usize) -> Option { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | binary_search(&mut arr); [INFO] [stdout] | ^^^^^^^^^^^^^---------- [INFO] [stdout] | || [INFO] [stdout] | |expected `&[usize]`, found `&mut [i32; 5]` [INFO] [stdout] | argument #2 of type `usize` is missing [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[usize]` [INFO] [stdout] found mutable reference `&mut [i32; 5]` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn binary_search(arr: &[usize],find:usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ ------------- ---------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 32 - binary_search(&mut arr); [INFO] [stdout] 32 + binary_search(/* &[usize] */, /* usize */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | binary_search(&mut arr); [INFO] [stdout] | ^^^^^^^^^^^^^---------- [INFO] [stdout] | || [INFO] [stdout] | |expected `&[usize]`, found `&mut [i32; 5]` [INFO] [stdout] | argument #2 of type `usize` is missing [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[usize]` [INFO] [stdout] found mutable reference `&mut [i32; 5]` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn binary_search(arr: &[usize],find:usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ ------------- ---------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 32 - binary_search(&mut arr); [INFO] [stdout] 32 + binary_search(/* &[usize] */, /* usize */); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0107, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0107, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `arrays` (bin "arrays") due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `arrays` (bin "arrays" test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "9d7614a3834acd22b484a70b4e7cdb46987e9b0c305cafd3b9539f2eddebe3df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d7614a3834acd22b484a70b4e7cdb46987e9b0c305cafd3b9539f2eddebe3df", kill_on_drop: false }` [INFO] [stdout] 9d7614a3834acd22b484a70b4e7cdb46987e9b0c305cafd3b9539f2eddebe3df