[INFO] cloning repository https://github.com/AlexJuca/grepru
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlexJuca/grepru" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexJuca%2Fgrepru", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexJuca%2Fgrepru'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 2502e964e5768fa9614f222665df5a5ab517f988
[INFO] testing AlexJuca/grepru against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexJuca%2Fgrepru" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/AlexJuca/grepru
[INFO] finished tweaking git repo https://github.com/AlexJuca/grepru
[INFO] tweaked toml for git repo https://github.com/AlexJuca/grepru written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AlexJuca/grepru on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AlexJuca/grepru 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e9e60ec3f4245ece267c36bbf409a519f1aa9b223ea272c2c6cb61b593440baa
[INFO] running `Command { std: "docker" "start" "-a" "e9e60ec3f4245ece267c36bbf409a519f1aa9b223ea272c2c6cb61b593440baa", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e9e60ec3f4245ece267c36bbf409a519f1aa9b223ea272c2c6cb61b593440baa", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e9e60ec3f4245ece267c36bbf409a519f1aa9b223ea272c2c6cb61b593440baa", kill_on_drop: false }`
[INFO] [stdout] e9e60ec3f4245ece267c36bbf409a519f1aa9b223ea272c2c6cb61b593440baa
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 8231868548ede5b5d96bd587755f3baa7eeef93026465854d6ba2f1ce85d5c66
[INFO] running `Command { std: "docker" "start" "-a" "8231868548ede5b5d96bd587755f3baa7eeef93026465854d6ba2f1ce85d5c66", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.19
[INFO] [stderr]    Compiling syn v1.0.39
[INFO] [stderr]    Compiling libc v0.2.76
[INFO] [stderr]    Compiling unicode-segmentation v1.6.0
[INFO] [stderr]    Compiling yansi v0.5.0
[INFO] [stderr]    Compiling heck v0.3.1
[INFO] [stderr]    Compiling quote v1.0.7
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling clap v2.33.3
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling structopt-derive v0.4.10
[INFO] [stderr]    Compiling structopt v0.3.17
[INFO] [stderr]    Compiling grepru v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: value assigned to `count` is never read
[INFO] [stdout]   --> src/text/text.rs:11:17
[INFO] [stdout]    |
[INFO] [stdout] 11 |         let mut count: u32 = 0;
[INFO] [stdout]    |                 ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over a `Result`. This is more readably written as an `if let` statement
[INFO] [stdout]   --> src/text/text.rs:12:18
[INFO] [stdout]    |
[INFO] [stdout] 12 |         for _ in reader.read_to_string(&mut text) {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]    |
[INFO] [stdout] 12 -         for _ in reader.read_to_string(&mut text) {
[INFO] [stdout] 12 +         while let Ok(_) = reader.read_to_string(&mut text) {
[INFO] [stdout]    |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]    |
[INFO] [stdout] 12 -         for _ in reader.read_to_string(&mut text) {
[INFO] [stdout] 12 +         if let Ok(_) = reader.read_to_string(&mut text) {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 48.07s
[INFO] running `Command { std: "docker" "inspect" "8231868548ede5b5d96bd587755f3baa7eeef93026465854d6ba2f1ce85d5c66", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8231868548ede5b5d96bd587755f3baa7eeef93026465854d6ba2f1ce85d5c66", kill_on_drop: false }`
[INFO] [stdout] 8231868548ede5b5d96bd587755f3baa7eeef93026465854d6ba2f1ce85d5c66
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6f2955a38ca9e4850a5054a169814cbd4d8df7be6932553db06a68bab8846991
[INFO] running `Command { std: "docker" "start" "-a" "6f2955a38ca9e4850a5054a169814cbd4d8df7be6932553db06a68bab8846991", kill_on_drop: false }`
[INFO] [stderr]    Compiling memchr v2.3.3
[INFO] [stderr]    Compiling getrandom v0.1.14
[INFO] [stderr]    Compiling serde_json v1.0.57
[INFO] [stderr]    Compiling num-traits v0.2.12
[INFO] [stderr]    Compiling thread_local v1.0.1
[INFO] [stderr]    Compiling ppv-lite86 v0.2.9
[INFO] [stderr]    Compiling escargot v0.3.1
[INFO] [stderr]    Compiling regex-syntax v0.6.18
[INFO] [stderr]    Compiling predicates-core v1.0.0
[INFO] [stderr]    Compiling difference v2.0.0
[INFO] [stderr]    Compiling normalize-line-endings v0.3.0
[INFO] [stderr]    Compiling serde_derive v1.0.115
[INFO] [stderr]    Compiling treeline v0.1.0
[INFO] [stdout] warning: value assigned to `count` is never read
[INFO] [stdout]   --> src/text/text.rs:11:17
[INFO] [stdout]    |
[INFO] [stdout] 11 |         let mut count: u32 = 0;
[INFO] [stdout]    |                 ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over a `Result`. This is more readably written as an `if let` statement
[INFO] [stdout]   --> src/text/text.rs:12:18
[INFO] [stdout]    |
[INFO] [stdout] 12 |         for _ in reader.read_to_string(&mut text) {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]    |
[INFO] [stdout] 12 -         for _ in reader.read_to_string(&mut text) {
[INFO] [stdout] 12 +         while let Ok(_) = reader.read_to_string(&mut text) {
[INFO] [stdout]    |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]    |
[INFO] [stdout] 12 -         for _ in reader.read_to_string(&mut text) {
[INFO] [stdout] 12 +         if let Ok(_) = reader.read_to_string(&mut text) {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling predicates-tree v1.0.0
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling aho-corasick v0.7.13
[INFO] [stderr]    Compiling float-cmp v0.8.0
[INFO] [stderr]    Compiling tempfile v3.1.0
[INFO] [stderr]    Compiling regex v1.3.9
[INFO] [stderr]    Compiling predicates v1.0.5
[INFO] [stderr]    Compiling serde v1.0.115
[INFO] [stderr]    Compiling assert_cmd v0.10.2
[INFO] [stderr]    Compiling grepru v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: value assigned to `count` is never read
[INFO] [stdout]   --> src/text/text.rs:11:17
[INFO] [stdout]    |
[INFO] [stdout] 11 |         let mut count: u32 = 0;
[INFO] [stdout]    |                 ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over a `Result`. This is more readably written as an `if let` statement
[INFO] [stdout]   --> src/text/text.rs:12:18
[INFO] [stdout]    |
[INFO] [stdout] 12 |         for _ in reader.read_to_string(&mut text) {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]    |
[INFO] [stdout] 12 -         for _ in reader.read_to_string(&mut text) {
[INFO] [stdout] 12 +         while let Ok(_) = reader.read_to_string(&mut text) {
[INFO] [stdout]    |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]    |
[INFO] [stdout] 12 -         for _ in reader.read_to_string(&mut text) {
[INFO] [stdout] 12 +         if let Ok(_) = reader.read_to_string(&mut text) {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> tests/cli.rs:4:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::io::{self, Write};
[INFO] [stdout]   |               ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 57.35s
[INFO] running `Command { std: "docker" "inspect" "6f2955a38ca9e4850a5054a169814cbd4d8df7be6932553db06a68bab8846991", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6f2955a38ca9e4850a5054a169814cbd4d8df7be6932553db06a68bab8846991", kill_on_drop: false }`
[INFO] [stdout] 6f2955a38ca9e4850a5054a169814cbd4d8df7be6932553db06a68bab8846991
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 4752f93a87e9994269a4d549d57aa7bd2a86c3c5dd8c13c7e62e6cf803afbefb
[INFO] running `Command { std: "docker" "start" "-a" "4752f93a87e9994269a4d549d57aa7bd2a86c3c5dd8c13c7e62e6cf803afbefb", kill_on_drop: false }`
[INFO] [stderr] warning: value assigned to `count` is never read
[INFO] [stderr]   --> src/text/text.rs:11:17
[INFO] [stderr]    |
[INFO] [stderr] 11 |         let mut count: u32 = 0;
[INFO] [stderr]    |                 ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = help: maybe it is overwritten before being read?
[INFO] [stderr]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: for loop over a `Result`. This is more readably written as an `if let` statement
[INFO] [stderr]   --> src/text/text.rs:12:18
[INFO] [stderr]    |
[INFO] [stderr] 12 |         for _ in reader.read_to_string(&mut text) {
[INFO] [stderr]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stderr] help: to check pattern in a loop use `while let`
[INFO] [stderr]    |
[INFO] [stderr] 12 -         for _ in reader.read_to_string(&mut text) {
[INFO] [stderr] 12 +         while let Ok(_) = reader.read_to_string(&mut text) {
[INFO] [stderr]    |
[INFO] [stderr] help: consider using `if let` to clear intent
[INFO] [stderr]    |
[INFO] [stderr] 12 -         for _ in reader.read_to_string(&mut text) {
[INFO] [stderr] 12 +         if let Ok(_) = reader.read_to_string(&mut text) {
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: `grepru` (bin "grepru") generated 2 warnings
[INFO] [stderr] warning: unused import: `self`
[INFO] [stderr]  --> tests/cli.rs:4:15
[INFO] [stderr]   |
[INFO] [stderr] 4 | use std::io::{self, Write};
[INFO] [stderr]   |               ^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `grepru` (test "cli") generated 1 warning (run `cargo fix --test "cli"` to apply 1 suggestion)
[INFO] [stderr] warning: `grepru` (bin "grepru" test) generated 2 warnings (2 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/grepru-b5ba11ce076d8106)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running tests/cli.rs (/opt/rustwide/target/debug/deps/cli-9672080cb4464289)
[INFO] [stdout] 
[INFO] [stdout] running 5 tests
[INFO] [stdout] test print_version ... ok
[INFO] [stdout] test print_line_count ... ok
[INFO] [stdout] test file_not_found ... ok
[INFO] [stdout] test should_print_line_number ... ok
[INFO] [stdout] test should_print_line_count_for_single_char_search ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 18.92s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "4752f93a87e9994269a4d549d57aa7bd2a86c3c5dd8c13c7e62e6cf803afbefb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4752f93a87e9994269a4d549d57aa7bd2a86c3c5dd8c13c7e62e6cf803afbefb", kill_on_drop: false }`
[INFO] [stdout] 4752f93a87e9994269a4d549d57aa7bd2a86c3c5dd8c13c7e62e6cf803afbefb
