[INFO] cloning repository https://github.com/danielq987/minigrep
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/danielq987/minigrep" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanielq987%2Fminigrep", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanielq987%2Fminigrep'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c21b6b240e9e21dfed871e373b8e66f1e59926bb
[INFO] checking danielq987/minigrep against 49a6044d37d694890450f52ceaceb66277a36b1e for pr-161154
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdanielq987%2Fminigrep" "/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/danielq987/minigrep
[INFO] finished tweaking git repo https://github.com/danielq987/minigrep
[INFO] tweaked toml for git repo https://github.com/danielq987/minigrep written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/danielq987/minigrep on toolchain 49a6044d37d694890450f52ceaceb66277a36b1e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/danielq987/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" "+49a6044d37d694890450f52ceaceb66277a36b1e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[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:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] dfc2a3a77577756a75d47ec712cdc71107a967160b39da1112eefa82559bbab3
[INFO] running `Command { std: "docker" "start" "dfc2a3a77577756a75d47ec712cdc71107a967160b39da1112eefa82559bbab3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "dfc2a3a77577756a75d47ec712cdc71107a967160b39da1112eefa82559bbab3", 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" "dfc2a3a77577756a75d47ec712cdc71107a967160b39da1112eefa82559bbab3" "/opt/rustwide/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "dfc2a3a77577756a75d47ec712cdc71107a967160b39da1112eefa82559bbab3", 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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "dfc2a3a77577756a75d47ec712cdc71107a967160b39da1112eefa82559bbab3" "/opt/rustwide/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking minigrep v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/lib.rs:107:55
[INFO] [stdout]     |
[INFO] [stdout] 107 |         assert_eq!(vec!["duct three.", "Duct tape."], search(query, contents));
[INFO] [stdout]     |                                                       ^^^^^^----------------- argument #3 of type `bool` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/lib.rs:13:8
[INFO] [stdout]     |
[INFO] [stdout]  13 | pub fn search<'a>(query: &str, contents: &'a str, case_sensitive: bool) -> Vec<&'a str> {
[INFO] [stdout]     |        ^^^^^^                                     --------------------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout] 107 |         assert_eq!(vec!["duct three.", "Duct tape."], search(query, contents, /* bool */));
[INFO] [stdout]     |                                                                             ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing temporary value
[INFO] [stdout]   --> src/lib.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let c: &str = &contents.to_lowercase();
[INFO] [stdout]    |                    ----------------------- temporary value created here
[INFO] [stdout] ...
[INFO] [stdout] 32 |     matched_strings
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/lib.rs:117:53
[INFO] [stdout]     |
[INFO] [stdout] 117 |         assert_eq!(vec!["safe, fast, productive."], search(query, contents));
[INFO] [stdout]     |                                                     ^^^^^^----------------- argument #3 of type `bool` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/lib.rs:13:8
[INFO] [stdout]     |
[INFO] [stdout]  13 | pub fn search<'a>(query: &str, contents: &'a str, case_sensitive: bool) -> Vec<&'a str> {
[INFO] [stdout]     |        ^^^^^^                                     --------------------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout] 117 |         assert_eq!(vec!["safe, fast, productive."], search(query, contents, /* bool */));
[INFO] [stdout]     |                                                                           ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0515`.
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing temporary value
[INFO] [stdout]   --> src/lib.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let c: &str = &contents.to_lowercase();
[INFO] [stdout]    |                    ----------------------- temporary value created here
[INFO] [stdout] ...
[INFO] [stdout] 32 |     matched_strings
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `minigrep` (lib) due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] Some errors have detailed explanations: E0061, E0515.
[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
[INFO] running `Command { std: "docker" "inspect" "dfc2a3a77577756a75d47ec712cdc71107a967160b39da1112eefa82559bbab3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "dfc2a3a77577756a75d47ec712cdc71107a967160b39da1112eefa82559bbab3", kill_on_drop: false }`
[INFO] [stdout] dfc2a3a77577756a75d47ec712cdc71107a967160b39da1112eefa82559bbab3
