[INFO] cloning repository https://github.com/frhanjav/learn-rust-cli
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/frhanjav/learn-rust-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrhanjav%2Flearn-rust-cli", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrhanjav%2Flearn-rust-cli'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a88b49a13bf38db103455e504eb872fcf6f10fce
[INFO] testing frhanjav/learn-rust-cli against 1.100.0-beta.1+cargoflags=--release for beta-release-1.100-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrhanjav%2Flearn-rust-cli" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/frhanjav/learn-rust-cli
[INFO] finished tweaking git repo https://github.com/frhanjav/learn-rust-cli
[INFO] tweaked toml for git repo https://github.com/frhanjav/learn-rust-cli written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/frhanjav/learn-rust-cli on toolchain 1.100.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/frhanjav/learn-rust-cli 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" "+1.100.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] abf19e53bba1a5af72d2eea092de136e7b634b1714eaaaaed7319e7851ff8c5d
[INFO] running `Command { std: "docker" "start" "abf19e53bba1a5af72d2eea092de136e7b634b1714eaaaaed7319e7851ff8c5d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "abf19e53bba1a5af72d2eea092de136e7b634b1714eaaaaed7319e7851ff8c5d", 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" "abf19e53bba1a5af72d2eea092de136e7b634b1714eaaaaed7319e7851ff8c5d" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "abf19e53bba1a5af72d2eea092de136e7b634b1714eaaaaed7319e7851ff8c5d", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "abf19e53bba1a5af72d2eea092de136e7b634b1714eaaaaed7319e7851ff8c5d" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling minigrep v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `contents` in this scope
[INFO] [stdout]   --> src/lib.rs:31:32
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub fn search<'a>(query: &str, contents{}: &'a str) -> Vec<&'a str> {
[INFO] [stdout]    |                                ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: the binding `contents` is available in a different scope in the same function
[INFO] [stdout]   --> src/lib.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let contents = fs::read_to_string(config.file_path)?;
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `contents` in this scope
[INFO] [stdout]   --> src/lib.rs:32:17
[INFO] [stdout]    |
[INFO] [stdout] 32 |     for line in contents.lines() {
[INFO] [stdout]    |                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 31 |   pub fn search<'a>(query: &str, contents{}: &'a str) -> Vec<&'a str> {
[INFO] [stdout]    |                                                          ------------ expected `Vec<&'a str>` because of return type
[INFO] [stdout] 32 | /     for line in contents.lines() {
[INFO] [stdout] 33 | |
[INFO] [stdout] 34 | |     }
[INFO] [stdout]    | |_____^ expected `Vec<&str>`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<&'a str>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout]    = note: `for` loops evaluate to unit type `()`
[INFO] [stdout] help: consider returning a value here
[INFO] [stdout]    |
[INFO] [stdout] 34 ~     }
[INFO] [stdout] 35 +     /* `Vec<&'a str>` value */
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0422, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `minigrep` (lib) due to 3 previous errors
[INFO] running `Command { std: "docker" "inspect" "abf19e53bba1a5af72d2eea092de136e7b634b1714eaaaaed7319e7851ff8c5d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "abf19e53bba1a5af72d2eea092de136e7b634b1714eaaaaed7319e7851ff8c5d", kill_on_drop: false }`
[INFO] [stdout] abf19e53bba1a5af72d2eea092de136e7b634b1714eaaaaed7319e7851ff8c5d
