[INFO] cloning repository https://github.com/mthom26/minigrep [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mthom26/minigrep" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmthom26%2Fminigrep", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmthom26%2Fminigrep'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 23f2adfb4b30b299c56b2e30465c4eae277b114e [INFO] checking mthom26/minigrep against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmthom26%2Fminigrep" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mthom26/minigrep on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mthom26/minigrep [INFO] finished tweaking git repo https://github.com/mthom26/minigrep [INFO] tweaked toml for git repo https://github.com/mthom26/minigrep written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mthom26/minigrep 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6f66de34b4d061e52d83ed8da58af60a314fc975f486bc64d8478cd4133651fc [INFO] running `Command { std: "docker" "start" "-a" "6f66de34b4d061e52d83ed8da58af60a314fc975f486bc64d8478cd4133651fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6f66de34b4d061e52d83ed8da58af60a314fc975f486bc64d8478cd4133651fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f66de34b4d061e52d83ed8da58af60a314fc975f486bc64d8478cd4133651fc", kill_on_drop: false }` [INFO] [stdout] 6f66de34b4d061e52d83ed8da58af60a314fc975f486bc64d8478cd4133651fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 302b4e5adb60761a18b52e3d338173f813bb2d803703cba2a4d4d4cad03acf19 [INFO] running `Command { std: "docker" "start" "-a" "302b4e5adb60761a18b52e3d338173f813bb2d803703cba2a4d4d4cad03acf19", kill_on_drop: false }` [INFO] [stderr] Checking minigrep v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | search(query, contents) [INFO] [stdout] | ^^^^^^----------------- an argument of type `bool` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn search<'a>(query: &str, contents: &'a str, case_sensitive: bool) -> Vec<(usize, &'a str)> { [INFO] [stdout] | ^^^^^^ ----------- ----------------- -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 121 | search(query, contents, /* bool */) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lib.rs:78:27 [INFO] [stdout] | [INFO] [stdout] 78 | .filter(|(index, line)| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lib.rs:87:27 [INFO] [stdout] | [INFO] [stdout] 87 | .filter(|(index, line)| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `&str` with `(usize, &str)` [INFO] [stdout] --> src/lib.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | / assert_eq!( [INFO] [stdout] 120 | | vec!["safe, fast, productive."], [INFO] [stdout] 121 | | search(query, contents) [INFO] [stdout] 122 | | ) [INFO] [stdout] | |_________^ no implementation for `&str == (usize, &str)` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<(usize, &str)>` is not implemented for `&str`, which is required by `Vec<&str>: PartialEq>` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] <&'a str as PartialEq> [INFO] [stdout] <&'a str as PartialEq> [INFO] [stdout] <&'b str as PartialEq>> [INFO] [stdout] >> [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] = note: required for `Vec<&str>` to implement `PartialEq>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lib.rs:78:27 [INFO] [stdout] | [INFO] [stdout] 78 | .filter(|(index, line)| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/lib.rs:87:27 [INFO] [stdout] | [INFO] [stdout] 87 | .filter(|(index, line)| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `minigrep` (lib test) due to 3 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "302b4e5adb60761a18b52e3d338173f813bb2d803703cba2a4d4d4cad03acf19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "302b4e5adb60761a18b52e3d338173f813bb2d803703cba2a4d4d4cad03acf19", kill_on_drop: false }` [INFO] [stdout] 302b4e5adb60761a18b52e3d338173f813bb2d803703cba2a4d4d4cad03acf19