[INFO] cloning repository https://github.com/BLANKatGITHUB/minigrep
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BLANKatGITHUB/minigrep" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBLANKatGITHUB%2Fminigrep", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBLANKatGITHUB%2Fminigrep'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b7944d08b9ad0aa2f14dc2653d53191199db14e7
[INFO] checking BLANKatGITHUB/minigrep against try#f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 for pr-147834
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBLANKatGITHUB%2Fminigrep" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/BLANKatGITHUB/minigrep
[INFO] finished tweaking git repo https://github.com/BLANKatGITHUB/minigrep
[INFO] tweaked toml for git repo https://github.com/BLANKatGITHUB/minigrep written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/BLANKatGITHUB/minigrep on toolchain f77b5bc6c7c84df104f86b0dd01d9490e3923fa8
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/BLANKatGITHUB/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" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c2918aef382ead483daf460a6e13de4273fda15bee74c00a3d14f3796ec8bd05
[INFO] running `Command { std: "docker" "start" "-a" "c2918aef382ead483daf460a6e13de4273fda15bee74c00a3d14f3796ec8bd05", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c2918aef382ead483daf460a6e13de4273fda15bee74c00a3d14f3796ec8bd05", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c2918aef382ead483daf460a6e13de4273fda15bee74c00a3d14f3796ec8bd05", kill_on_drop: false }`
[INFO] [stdout] c2918aef382ead483daf460a6e13de4273fda15bee74c00a3d14f3796ec8bd05
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5fb92f1520c459c45437589910b9c1ffc5e4b27ec9f4833698bb520aece842f5
[INFO] running `Command { std: "docker" "start" "-a" "5fb92f1520c459c45437589910b9c1ffc5e4b27ec9f4833698bb520aece842f5", kill_on_drop: false }`
[INFO] [stderr]     Checking minigrep v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: expected one of `>`, a const expression, lifetime, or type, found keyword `type`
[INFO] [stdout]   --> src/lib.rs:10:40
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn build( mut args: impl Iterator <type = String> ) -> Result<Config,&str> {
[INFO] [stdout]    |                                        ^^^^ expected one of `>`, a const expression, lifetime, or type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/lib.rs:10:74
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn build( mut args: impl Iterator <type = String> ) -> Result<Config,&str> {
[INFO] [stdout]    |                                                                          ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout]    = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
[INFO] [stdout] help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn build( mut args: impl Iterator <type = String> ) -> Result<Config,&'static str> {
[INFO] [stdout]    |                                                                           +++++++
[INFO] [stdout] help: instead, you are more likely to want to change the argument to be borrowed...
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn build( mut args: impl Iterator &<type = String> ) -> Result<Config,&str> {
[INFO] [stdout]    |                                       +
[INFO] [stdout] help: ...or alternatively, you might want to return an owned value
[INFO] [stdout]    |
[INFO] [stdout] 10 - pub fn build( mut args: impl Iterator <type = String> ) -> Result<Config,&str> {
[INFO] [stdout] 10 + pub fn build( mut args: impl Iterator <type = String> ) -> Result<Config,String> {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `args` in this scope
[INFO] [stdout]   --> src/lib.rs:11:6
[INFO] [stdout]    |
[INFO] [stdout] 11 |      args.next();
[INFO] [stdout]    |      ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these functions
[INFO] [stdout]    |
[INFO] [stdout]  1 + use crate::env::args;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::env::args;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `args` in this scope
[INFO] [stdout]   --> src/lib.rs:12:23
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let query = match args.next(){
[INFO] [stdout]    |                       ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these functions
[INFO] [stdout]    |
[INFO] [stdout]  1 + use crate::env::args;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::env::args;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `args` in this scope
[INFO] [stdout]   --> src/lib.rs:17:27
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let file_path = match args.next(){
[INFO] [stdout]    |                           ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these functions
[INFO] [stdout]    |
[INFO] [stdout]  1 + use crate::env::args;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::env::args;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `contents` in this scope
[INFO] [stdout]   --> src/lib.rs:50:5
[INFO] [stdout]    |
[INFO] [stdout] 50 |     contents
[INFO] [stdout]    |     ^^^^^^^^ help: a local variable with a similar name exists: `content`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `contents` in this scope
[INFO] [stdout]   --> src/lib.rs:60:19
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let results = contents
[INFO] [stdout]    |                   ^^^^^^^^ help: a local variable with a similar name exists: `content`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/lib.rs:52:18
[INFO] [stdout]    |
[INFO] [stdout] 52 |         .filter(|line| line.contains(query))
[INFO] [stdout]    |                  ^^^^  ---- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]    |
[INFO] [stdout] 52 |         .filter(|line: /* Type */| line.contains(query))
[INFO] [stdout]    |                      ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/lib.rs:62:18
[INFO] [stdout]    |
[INFO] [stdout] 62 |         .filter(|line| line.to_lowercase().contains(&query))
[INFO] [stdout]    |                  ^^^^  ---- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]    |
[INFO] [stdout] 62 |         .filter(|line: /* Type */| line.to_lowercase().contains(&query))
[INFO] [stdout]    |                      ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:57:64
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub fn search_insensitive<'a>(query:&str, content: &'a str) -> Vec<&'a str>{
[INFO] [stdout]    |        ------------------                                      ^^^^^^^^^^^^ expected `Vec<&str>`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<&'a str>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0106, E0282, E0308, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0106`.
[INFO] [stdout] 
[INFO] [stdout] error: expected one of `>`, a const expression, lifetime, or type, found keyword `type`
[INFO] [stdout]   --> src/lib.rs:10:40
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn build( mut args: impl Iterator <type = String> ) -> Result<Config,&str> {
[INFO] [stdout]    |                                        ^^^^ expected one of `>`, a const expression, lifetime, or type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/lib.rs:10:74
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn build( mut args: impl Iterator <type = String> ) -> Result<Config,&str> {
[INFO] [stdout]    |                                                                          ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout]    = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
[INFO] [stdout] help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn build( mut args: impl Iterator <type = String> ) -> Result<Config,&'static str> {
[INFO] [stdout]    |                                                                           +++++++
[INFO] [stdout] help: instead, you are more likely to want to change the argument to be borrowed...
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn build( mut args: impl Iterator &<type = String> ) -> Result<Config,&str> {
[INFO] [stdout]    |                                       +
[INFO] [stdout] help: ...or alternatively, you might want to return an owned value
[INFO] [stdout]    |
[INFO] [stdout] 10 - pub fn build( mut args: impl Iterator <type = String> ) -> Result<Config,&str> {
[INFO] [stdout] 10 + pub fn build( mut args: impl Iterator <type = String> ) -> Result<Config,String> {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `minigrep` (lib) due to 10 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0425]: cannot find value `args` in this scope
[INFO] [stdout]   --> src/lib.rs:11:6
[INFO] [stdout]    |
[INFO] [stdout] 11 |      args.next();
[INFO] [stdout]    |      ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these functions
[INFO] [stdout]    |
[INFO] [stdout]  1 + use crate::env::args;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::env::args;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `args` in this scope
[INFO] [stdout]   --> src/lib.rs:12:23
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let query = match args.next(){
[INFO] [stdout]    |                       ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these functions
[INFO] [stdout]    |
[INFO] [stdout]  1 + use crate::env::args;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::env::args;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `args` in this scope
[INFO] [stdout]   --> src/lib.rs:17:27
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let file_path = match args.next(){
[INFO] [stdout]    |                           ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these functions
[INFO] [stdout]    |
[INFO] [stdout]  1 + use crate::env::args;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::env::args;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `contents` in this scope
[INFO] [stdout]   --> src/lib.rs:50:5
[INFO] [stdout]    |
[INFO] [stdout] 50 |     contents
[INFO] [stdout]    |     ^^^^^^^^ help: a local variable with a similar name exists: `content`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `contents` in this scope
[INFO] [stdout]   --> src/lib.rs:60:19
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let results = contents
[INFO] [stdout]    |                   ^^^^^^^^ help: a local variable with a similar name exists: `content`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/lib.rs:52:18
[INFO] [stdout]    |
[INFO] [stdout] 52 |         .filter(|line| line.contains(query))
[INFO] [stdout]    |                  ^^^^  ---- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]    |
[INFO] [stdout] 52 |         .filter(|line: /* Type */| line.contains(query))
[INFO] [stdout]    |                      ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/lib.rs:62:18
[INFO] [stdout]    |
[INFO] [stdout] 62 |         .filter(|line| line.to_lowercase().contains(&query))
[INFO] [stdout]    |                  ^^^^  ---- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]    |
[INFO] [stdout] 62 |         .filter(|line: /* Type */| line.to_lowercase().contains(&query))
[INFO] [stdout]    |                      ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:57:64
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub fn search_insensitive<'a>(query:&str, content: &'a str) -> Vec<&'a str>{
[INFO] [stdout]    |        ------------------                                      ^^^^^^^^^^^^ expected `Vec<&str>`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<&'a str>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0106, E0282, E0308, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0106`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `minigrep` (lib test) due to 10 previous errors
[INFO] running `Command { std: "docker" "inspect" "5fb92f1520c459c45437589910b9c1ffc5e4b27ec9f4833698bb520aece842f5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5fb92f1520c459c45437589910b9c1ffc5e4b27ec9f4833698bb520aece842f5", kill_on_drop: false }`
[INFO] [stdout] 5fb92f1520c459c45437589910b9c1ffc5e4b27ec9f4833698bb520aece842f5
