[INFO] cloning repository https://github.com/JDrit/boyer_moore [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JDrit/boyer_moore" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJDrit%2Fboyer_moore", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJDrit%2Fboyer_moore'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d85f68df902e17bf1843b7db626d9e06c7851249 [INFO] checking JDrit/boyer_moore/d85f68df902e17bf1843b7db626d9e06c7851249 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJDrit%2Fboyer_moore" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JDrit/boyer_moore on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JDrit/boyer_moore [INFO] finished tweaking git repo https://github.com/JDrit/boyer_moore [INFO] tweaked toml for git repo https://github.com/JDrit/boyer_moore written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/JDrit/boyer_moore 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 26c95a8bcf0c5e1aa2f31083a0000e324f80a8298812548cd3c4944b28db076d [INFO] running `Command { std: "docker" "start" "-a" "26c95a8bcf0c5e1aa2f31083a0000e324f80a8298812548cd3c4944b28db076d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "26c95a8bcf0c5e1aa2f31083a0000e324f80a8298812548cd3c4944b28db076d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26c95a8bcf0c5e1aa2f31083a0000e324f80a8298812548cd3c4944b28db076d", kill_on_drop: false }` [INFO] [stdout] 26c95a8bcf0c5e1aa2f31083a0000e324f80a8298812548cd3c4944b28db076d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d93b9ef078240869107a6c01dd5e7787269d933fc3b9209b0eefc0d38a53643 [INFO] running `Command { std: "docker" "start" "-a" "3d93b9ef078240869107a6c01dd5e7787269d933fc3b9209b0eefc0d38a53643", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking ansi_term v0.9.0 [INFO] [stderr] Checking boyer_moore v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `std::io::Chars` [INFO] [stdout] --> src/search/search.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Chars; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `Chars` in `io` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 6 | use std::str::Chars; [INFO] [stdout] | ~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Peekable` [INFO] [stdout] --> src/search/search.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::iter::Peekable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/search/search.rs:19:56 [INFO] [stdout] | [INFO] [stdout] 19 | let mut array: [$ty; $len] = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | init_array!(Vec, ALPHABET_SIZE, Vec::with_capacity(pattern.len())); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `init_array` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `io` [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(io)] [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/search/search.rs:237:52 [INFO] [stdout] | [INFO] [stdout] 237 | fn search_buffer(pattern_input: &str, buffer: &mut BufRead) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 237 | fn search_buffer(pattern_input: &str, buffer: &mut dyn BufRead) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::Chars` [INFO] [stdout] --> src/search/search.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Chars; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `Chars` in `io` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 6 | use std::str::Chars; [INFO] [stdout] | ~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Peekable` [INFO] [stdout] --> src/search/search.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::iter::Peekable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/search/search.rs:19:56 [INFO] [stdout] | [INFO] [stdout] 19 | let mut array: [$ty; $len] = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | init_array!(Vec, ALPHABET_SIZE, Vec::with_capacity(pattern.len())); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `init_array` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `io` [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(io)] [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/search/search.rs:237:52 [INFO] [stdout] | [INFO] [stdout] 237 | fn search_buffer(pattern_input: &str, buffer: &mut BufRead) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 237 | fn search_buffer(pattern_input: &str, buffer: &mut dyn BufRead) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chars` found for mutable reference `&mut dyn BufRead` in the current scope [INFO] [stdout] --> src/search/search.rs:240:28 [INFO] [stdout] | [INFO] [stdout] 240 | let mut input = buffer.chars().map(|c| c.expect("decode failed")); [INFO] [stdout] | ^^^^^ method not found in `&mut dyn BufRead` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/search/search.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 250 | / loop { [INFO] [stdout] 251 | | // pulls off enough elements from the input into the internal buffer [INFO] [stdout] 252 | | let size_to_add = pattern.len() - buffer.len(); [INFO] [stdout] 253 | | for _ in 0..size_to_add { [INFO] [stdout] ... | [INFO] [stdout] 297 | | } [INFO] [stdout] 298 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 299 | return results; [INFO] [stdout] | ^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chars` found for mutable reference `&mut dyn BufRead` in the current scope [INFO] [stdout] --> src/search/search.rs:240:28 [INFO] [stdout] | [INFO] [stdout] 240 | let mut input = buffer.chars().map(|c| c.expect("decode failed")); [INFO] [stdout] | ^^^^^ method not found in `&mut dyn BufRead` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/search/search.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 250 | / loop { [INFO] [stdout] 251 | | // pulls off enough elements from the input into the internal buffer [INFO] [stdout] 252 | | let size_to_add = pattern.len() - buffer.len(); [INFO] [stdout] 253 | | for _ in 0..size_to_add { [INFO] [stdout] ... | [INFO] [stdout] 297 | | } [INFO] [stdout] 298 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 299 | return results; [INFO] [stdout] | ^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `boyer_moore` (lib) due to 4 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `boyer_moore` (lib test) due to 4 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3d93b9ef078240869107a6c01dd5e7787269d933fc3b9209b0eefc0d38a53643", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d93b9ef078240869107a6c01dd5e7787269d933fc3b9209b0eefc0d38a53643", kill_on_drop: false }` [INFO] [stdout] 3d93b9ef078240869107a6c01dd5e7787269d933fc3b9209b0eefc0d38a53643