[INFO] updating cached repository mthom26/minigrep [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/mthom26/minigrep [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/mthom26/minigrep" "work/ex/pr-62181/sources/master#6ea4036cd20a4b1ab1d56e555108c21735ff6946/gh/mthom26/minigrep"` [INFO] [stderr] Cloning into 'work/ex/pr-62181/sources/master#6ea4036cd20a4b1ab1d56e555108c21735ff6946/gh/mthom26/minigrep'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/mthom26/minigrep" "work/ex/pr-62181/sources/try#003a7b6b5753e8509fdfe7949d4f0873ba71e4fc/gh/mthom26/minigrep"` [INFO] [stderr] Cloning into 'work/ex/pr-62181/sources/try#003a7b6b5753e8509fdfe7949d4f0873ba71e4fc/gh/mthom26/minigrep'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 23f2adfb4b30b299c56b2e30465c4eae277b114e [INFO] sha for GitHub repo mthom26/minigrep: 23f2adfb4b30b299c56b2e30465c4eae277b114e [INFO] validating manifest of mthom26/minigrep on toolchain master#6ea4036cd20a4b1ab1d56e555108c21735ff6946 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+6ea4036cd20a4b1ab1d56e555108c21735ff6946-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of mthom26/minigrep on toolchain try#003a7b6b5753e8509fdfe7949d4f0873ba71e4fc [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+003a7b6b5753e8509fdfe7949d4f0873ba71e4fc-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing mthom26/minigrep [INFO] finished frobbing mthom26/minigrep [INFO] frobbed toml for mthom26/minigrep written to work/ex/pr-62181/sources/master#6ea4036cd20a4b1ab1d56e555108c21735ff6946/gh/mthom26/minigrep/Cargo.toml [INFO] started frobbing mthom26/minigrep [INFO] finished frobbing mthom26/minigrep [INFO] frobbed toml for mthom26/minigrep written to work/ex/pr-62181/sources/try#003a7b6b5753e8509fdfe7949d4f0873ba71e4fc/gh/mthom26/minigrep/Cargo.toml [INFO] crate mthom26/minigrep already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+6ea4036cd20a4b1ab1d56e555108c21735ff6946-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+003a7b6b5753e8509fdfe7949d4f0873ba71e4fc-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking mthom26/minigrep against try#003a7b6b5753e8509fdfe7949d4f0873ba71e4fc for pr-62181 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-62181/worker-4/try#003a7b6b5753e8509fdfe7949d4f0873ba71e4fc:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-62181/sources/try#003a7b6b5753e8509fdfe7949d4f0873ba71e4fc/gh/mthom26/minigrep:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+003a7b6b5753e8509fdfe7949d4f0873ba71e4fc-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 7c2481ace0d0369000f3672f439dfccf9ff6f2f619036f373b6c54aee7f306fe [INFO] running `"docker" "start" "-a" "7c2481ace0d0369000f3672f439dfccf9ff6f2f619036f373b6c54aee7f306fe"` [INFO] [stderr] Checking minigrep v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: unused import: `std::env` [INFO] [stderr] --> src/lib.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::env; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::env` [INFO] [stderr] --> src/lib.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::env; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/lib.rs:78:27 [INFO] [stderr] | [INFO] [stderr] 78 | .filter(|(index, line)| { [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_index` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_variables)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/lib.rs:87:27 [INFO] [stderr] | [INFO] [stderr] 87 | .filter(|(index, line)| { [INFO] [stderr] | ^^^^^ help: consider prefixing with an underscore: `_index` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied [INFO] [stderr] --> src/lib.rs:121:13 [INFO] [stderr] | [INFO] [stderr] 74 | fn search<'a>(query: &str, contents: &'a str, case_sensitive: bool) -> Vec<(usize, &'a str)> { [INFO] [stderr] | -------------------------------------------------------------------------------------------- defined here [INFO] [stderr] ... [INFO] [stderr] 121 | search(query, contents) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0277]: can't compare `&str` with `(usize, &str)` [INFO] [stderr] --> src/lib.rs:119:9 [INFO] [stderr] | [INFO] [stderr] 119 | / assert_eq!( [INFO] [stderr] 120 | | vec!["safe, fast, productive."], [INFO] [stderr] 121 | | search(query, contents) [INFO] [stderr] 122 | | ) [INFO] [stderr] | |_________^ no implementation for `&str == (usize, &str)` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::cmp::PartialEq<(usize, &str)>` is not implemented for `&str` [INFO] [stderr] = note: required because of the requirements on the impl of `std::cmp::PartialEq>` for `std::vec::Vec<&str>` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0277. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: Could not compile `minigrep`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "7c2481ace0d0369000f3672f439dfccf9ff6f2f619036f373b6c54aee7f306fe"` [INFO] running `"docker" "rm" "-f" "7c2481ace0d0369000f3672f439dfccf9ff6f2f619036f373b6c54aee7f306fe"` [INFO] [stdout] 7c2481ace0d0369000f3672f439dfccf9ff6f2f619036f373b6c54aee7f306fe