[INFO] cloning repository https://github.com/angeldev7/bat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/angeldev7/bat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fangeldev7%2Fbat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fangeldev7%2Fbat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cd501edcbded4dc344e0a0478472b0a4819c2251 [INFO] building angeldev7/bat against master#9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19 for pr-117684 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fangeldev7%2Fbat" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/angeldev7/bat on toolchain 9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/angeldev7/bat [INFO] finished tweaking git repo https://github.com/angeldev7/bat [INFO] tweaked toml for git repo https://github.com/angeldev7/bat written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/angeldev7/bat 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" "+9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lock_api v0.1.4 [INFO] [stderr] Downloaded serde_json v1.0.32 [INFO] [stderr] Downloaded directories v1.0.2 [INFO] [stderr] Downloaded console v0.6.2 [INFO] [stderr] Downloaded wild v2.0.1 [INFO] [stderr] Downloaded assert_cmd v0.10.1 [INFO] [stderr] Downloaded content_inspector v0.2.3 [INFO] [stderr] Downloaded plist v0.3.0 [INFO] [stderr] Downloaded serde_derive v1.0.79 [INFO] [stderr] Downloaded predicates v1.0.0 [INFO] [stderr] Downloaded onig v4.2.0 [INFO] [stderr] Downloaded serde v1.0.79 [INFO] [stderr] Downloaded syn v0.15.9 [INFO] [stderr] Downloaded onig_sys v69.0.0 [INFO] [stderr] Downloaded libz-sys v1.0.23 [INFO] [stderr] Downloaded syntect v3.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8a79a8c32429b7937b6bf9c0cb395787fb8db861f7a4cbc91af1105e89b8276a [INFO] running `Command { std: "docker" "start" "-a" "8a79a8c32429b7937b6bf9c0cb395787fb8db861f7a4cbc91af1105e89b8276a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8a79a8c32429b7937b6bf9c0cb395787fb8db861f7a4cbc91af1105e89b8276a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a79a8c32429b7937b6bf9c0cb395787fb8db861f7a4cbc91af1105e89b8276a", kill_on_drop: false }` [INFO] [stdout] 8a79a8c32429b7937b6bf9c0cb395787fb8db861f7a4cbc91af1105e89b8276a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 16d3ee21689b6f518a9a3271cd7b3c5f786d0b9dbb75a3e9615996c216048d16 [INFO] running `Command { std: "docker" "start" "-a" "16d3ee21689b6f518a9a3271cd7b3c5f786d0b9dbb75a3e9615996c216048d16", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling cc v1.0.25 [INFO] [stderr] Compiling proc-macro2 v0.4.20 [INFO] [stderr] Compiling cfg-if v0.1.5 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling serde v1.0.79 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling memchr v2.1.0 [INFO] [stderr] Compiling byteorder v1.2.6 [INFO] [stderr] Compiling ryu v0.2.6 [INFO] [stderr] Compiling ucd-util v0.1.1 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling smallvec v0.6.5 [INFO] [stderr] Compiling regex-syntax v0.6.2 [INFO] [stderr] Compiling plist v0.3.0 [INFO] [stderr] Compiling unicode-normalization v0.1.7 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling safemem v0.3.0 [INFO] [stderr] Compiling regex v1.0.5 [INFO] [stderr] Compiling lock_api v0.1.4 [INFO] [stderr] Compiling humantime v1.1.1 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling utf8-ranges v1.0.1 [INFO] [stderr] Compiling linked-hash-map v0.5.1 [INFO] [stderr] Compiling same-file v1.0.3 [INFO] [stderr] Compiling term_size v0.3.1 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling yaml-rust v0.4.2 [INFO] [stderr] Compiling walkdir v2.2.5 [INFO] [stderr] Compiling termios v0.3.1 [INFO] [stderr] Compiling clicolors-control v0.2.0 [INFO] [stderr] Compiling log v0.4.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling quote v0.6.8 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling aho-corasick v0.6.8 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling lazycell v1.2.0 [INFO] [stderr] Compiling syn v0.15.9 [INFO] [stderr] Compiling content_inspector v0.2.3 [INFO] [stderr] Compiling libz-sys v1.0.23 [INFO] [stderr] Compiling miniz-sys v0.1.10 [INFO] [stderr] Compiling onig_sys v69.0.0 [INFO] [stderr] Compiling libgit2-sys v0.7.10 [INFO] [stderr] Compiling ansi_colours v1.0.1 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling directories v1.0.2 [INFO] [stderr] Compiling wild v2.0.1 [INFO] [stderr] Compiling error-chain v0.12.0 [INFO] [stderr] Compiling shell-words v0.1.0 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling url v1.7.1 [INFO] [stderr] Compiling flate2 v1.0.3 [INFO] [stderr] Compiling console v0.6.2 [INFO] [stderr] Compiling serde_derive v1.0.79 [INFO] [stderr] Compiling bat v0.8.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling onig v4.2.0 [INFO] [stderr] Compiling bincode v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.32 [INFO] [stderr] Compiling syntect v3.0.1 [INFO] [stderr] Compiling git2 v0.7.5 [INFO] [stdout] warning: the item `Path` is imported redundantly [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 45 | use std::path::Path; [INFO] [stdout] | --------------- the item `Path` is already imported here [INFO] [stdout] ... [INFO] [stdout] 87 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / error_chain! { [INFO] [stdout] 60 | | foreign_links { [INFO] [stdout] 61 | | Clap(::clap::Error); [INFO] [stdout] 62 | | Io(::std::io::Error); [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/controller.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | writer: &mut Write, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | writer: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/controller.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | writer: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 76 | writer: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/output.rs:72:45 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn handle(&mut self) -> Result<&mut Write> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 72 | pub fn handle(&mut self) -> Result<&mut dyn Write> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | fn print_header(&mut self, handle: &mut Write, file: InputFile) -> Result<()>; [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 | fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:31:45 [INFO] [stdout] | [INFO] [stdout] 31 | fn print_footer(&mut self, handle: &mut Write) -> Result<()>; [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 | fn print_footer(&mut self, handle: &mut dyn Write) -> Result<()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | handle: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | handle: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:50:46 [INFO] [stdout] | [INFO] [stdout] 50 | fn print_header(&mut self, _handle: &mut Write, _file: InputFile) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 | fn print_header(&mut self, _handle: &mut dyn Write, _file: InputFile) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:54:46 [INFO] [stdout] | [INFO] [stdout] 54 | fn print_footer(&mut self, _handle: &mut Write) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | fn print_footer(&mut self, _handle: &mut dyn Write) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | handle: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 61 | handle: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:162:54 [INFO] [stdout] | [INFO] [stdout] 162 | fn print_horizontal_line(&mut self, handle: &mut Write, grid_char: char) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 162 | fn print_horizontal_line(&mut self, handle: &mut dyn Write, grid_char: char) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:188:45 [INFO] [stdout] | [INFO] [stdout] 188 | fn print_header(&mut self, handle: &mut Write, file: InputFile) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 188 | fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:239:45 [INFO] [stdout] | [INFO] [stdout] 239 | fn print_footer(&mut self, handle: &mut Write) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 239 | fn print_footer(&mut self, handle: &mut dyn Write) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:250:22 [INFO] [stdout] | [INFO] [stdout] 250 | handle: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 250 | handle: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/printer.rs:339:38 [INFO] [stdout] | [INFO] [stdout] 339 | ... text.trim_right_matches(|c| c == '\r' || c == '\n'), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 339 | text.trim_end_matches(|c| c == '\r' || c == '\n'), [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/main.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / error_chain! { [INFO] [stdout] 60 | | foreign_links { [INFO] [stdout] 61 | | Clap(::clap::Error); [INFO] [stdout] 62 | | Io(::std::io::Error); [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/printer.rs:318:21 [INFO] [stdout] | [INFO] [stdout] 318 | let mut ansi_iterator = AnsiCodeIterator::new(region); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 21.09s [INFO] running `Command { std: "docker" "inspect" "16d3ee21689b6f518a9a3271cd7b3c5f786d0b9dbb75a3e9615996c216048d16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16d3ee21689b6f518a9a3271cd7b3c5f786d0b9dbb75a3e9615996c216048d16", kill_on_drop: false }` [INFO] [stdout] 16d3ee21689b6f518a9a3271cd7b3c5f786d0b9dbb75a3e9615996c216048d16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1be13122a17a46e928d1222c47725bf1ba3c04b742eccf9ee1602ea91f30ac1c [INFO] running `Command { std: "docker" "start" "-a" "1be13122a17a46e928d1222c47725bf1ba3c04b742eccf9ee1602ea91f30ac1c", kill_on_drop: false }` [INFO] [stderr] Compiling predicates-core v1.0.0 [INFO] [stderr] Compiling escargot v0.3.1 [INFO] [stderr] Compiling treeline v0.1.0 [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stderr] Compiling rand v0.4.3 [INFO] [stderr] Compiling remove_dir_all v0.5.1 [INFO] [stdout] warning: the item `Path` is imported redundantly [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 45 | use std::path::Path; [INFO] [stdout] | --------------- the item `Path` is already imported here [INFO] [stdout] ... [INFO] [stdout] 87 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / error_chain! { [INFO] [stdout] 60 | | foreign_links { [INFO] [stdout] 61 | | Clap(::clap::Error); [INFO] [stdout] 62 | | Io(::std::io::Error); [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/controller.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | writer: &mut Write, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | writer: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/controller.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | writer: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 76 | writer: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/output.rs:72:45 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn handle(&mut self) -> Result<&mut Write> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 72 | pub fn handle(&mut self) -> Result<&mut dyn Write> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | fn print_header(&mut self, handle: &mut Write, file: InputFile) -> Result<()>; [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 | fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:31:45 [INFO] [stdout] | [INFO] [stdout] 31 | fn print_footer(&mut self, handle: &mut Write) -> Result<()>; [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 | fn print_footer(&mut self, handle: &mut dyn Write) -> Result<()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | handle: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | handle: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:50:46 [INFO] [stdout] | [INFO] [stdout] 50 | fn print_header(&mut self, _handle: &mut Write, _file: InputFile) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 | fn print_header(&mut self, _handle: &mut dyn Write, _file: InputFile) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:54:46 [INFO] [stdout] | [INFO] [stdout] 54 | fn print_footer(&mut self, _handle: &mut Write) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | fn print_footer(&mut self, _handle: &mut dyn Write) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | handle: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 61 | handle: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:162:54 [INFO] [stdout] | [INFO] [stdout] 162 | fn print_horizontal_line(&mut self, handle: &mut Write, grid_char: char) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 162 | fn print_horizontal_line(&mut self, handle: &mut dyn Write, grid_char: char) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:188:45 [INFO] [stdout] | [INFO] [stdout] 188 | fn print_header(&mut self, handle: &mut Write, file: InputFile) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 188 | fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:239:45 [INFO] [stdout] | [INFO] [stdout] 239 | fn print_footer(&mut self, handle: &mut Write) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 239 | fn print_footer(&mut self, handle: &mut dyn Write) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:250:22 [INFO] [stdout] | [INFO] [stdout] 250 | handle: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 250 | handle: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/printer.rs:339:38 [INFO] [stdout] | [INFO] [stdout] 339 | ... text.trim_right_matches(|c| c == '\r' || c == '\n'), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 339 | text.trim_end_matches(|c| c == '\r' || c == '\n'), [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/main.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / error_chain! { [INFO] [stdout] 60 | | foreign_links { [INFO] [stdout] 61 | | Clap(::clap::Error); [INFO] [stdout] 62 | | Io(::std::io::Error); [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/printer.rs:318:21 [INFO] [stdout] | [INFO] [stdout] 318 | let mut ansi_iterator = AnsiCodeIterator::new(region); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling predicates-tree v1.0.0 [INFO] [stderr] Compiling predicates v1.0.0 [INFO] [stderr] Compiling assert_cmd v0.10.1 [INFO] [stderr] Compiling tempdir v0.3.7 [INFO] [stderr] Compiling bat v0.8.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Path` is imported redundantly [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 45 | use std::path::Path; [INFO] [stdout] | --------------- the item `Path` is already imported here [INFO] [stdout] ... [INFO] [stdout] 87 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / error_chain! { [INFO] [stdout] 60 | | foreign_links { [INFO] [stdout] 61 | | Clap(::clap::Error); [INFO] [stdout] 62 | | Io(::std::io::Error); [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/controller.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | writer: &mut Write, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | writer: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/controller.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | writer: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 76 | writer: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/output.rs:72:45 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn handle(&mut self) -> Result<&mut Write> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 72 | pub fn handle(&mut self) -> Result<&mut dyn Write> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | fn print_header(&mut self, handle: &mut Write, file: InputFile) -> Result<()>; [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 | fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:31:45 [INFO] [stdout] | [INFO] [stdout] 31 | fn print_footer(&mut self, handle: &mut Write) -> Result<()>; [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 | fn print_footer(&mut self, handle: &mut dyn Write) -> Result<()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | handle: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | handle: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:50:46 [INFO] [stdout] | [INFO] [stdout] 50 | fn print_header(&mut self, _handle: &mut Write, _file: InputFile) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 | fn print_header(&mut self, _handle: &mut dyn Write, _file: InputFile) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:54:46 [INFO] [stdout] | [INFO] [stdout] 54 | fn print_footer(&mut self, _handle: &mut Write) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | fn print_footer(&mut self, _handle: &mut dyn Write) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | handle: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 61 | handle: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:162:54 [INFO] [stdout] | [INFO] [stdout] 162 | fn print_horizontal_line(&mut self, handle: &mut Write, grid_char: char) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 162 | fn print_horizontal_line(&mut self, handle: &mut dyn Write, grid_char: char) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:188:45 [INFO] [stdout] | [INFO] [stdout] 188 | fn print_header(&mut self, handle: &mut Write, file: InputFile) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 188 | fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:239:45 [INFO] [stdout] | [INFO] [stdout] 239 | fn print_footer(&mut self, handle: &mut Write) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 239 | fn print_footer(&mut self, handle: &mut dyn Write) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:250:22 [INFO] [stdout] | [INFO] [stdout] 250 | handle: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 250 | handle: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/printer.rs:339:38 [INFO] [stdout] | [INFO] [stdout] 339 | ... text.trim_right_matches(|c| c == '\r' || c == '\n'), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 339 | text.trim_end_matches(|c| c == '\r' || c == '\n'), [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/main.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / error_chain! { [INFO] [stdout] 60 | | foreign_links { [INFO] [stdout] 61 | | Clap(::clap::Error); [INFO] [stdout] 62 | | Io(::std::io::Error); [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/printer.rs:318:21 [INFO] [stdout] | [INFO] [stdout] 318 | let mut ansi_iterator = AnsiCodeIterator::new(region); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.22s [INFO] running `Command { std: "docker" "inspect" "1be13122a17a46e928d1222c47725bf1ba3c04b742eccf9ee1602ea91f30ac1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1be13122a17a46e928d1222c47725bf1ba3c04b742eccf9ee1602ea91f30ac1c", kill_on_drop: false }` [INFO] [stdout] 1be13122a17a46e928d1222c47725bf1ba3c04b742eccf9ee1602ea91f30ac1c [INFO] building angeldev7/bat against try#53e03135c36e913ff664ce8329041b7e3c2fd358 for pr-117684 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fangeldev7%2Fbat" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/angeldev7/bat on toolchain 53e03135c36e913ff664ce8329041b7e3c2fd358 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/angeldev7/bat [INFO] finished tweaking git repo https://github.com/angeldev7/bat [INFO] tweaked toml for git repo https://github.com/angeldev7/bat written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/angeldev7/bat 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" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ccaa6faacf03e1ca4d2cb95fcebd8e6c4a58e789b1218c11aed855b917b1573 [INFO] running `Command { std: "docker" "start" "-a" "9ccaa6faacf03e1ca4d2cb95fcebd8e6c4a58e789b1218c11aed855b917b1573", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ccaa6faacf03e1ca4d2cb95fcebd8e6c4a58e789b1218c11aed855b917b1573", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ccaa6faacf03e1ca4d2cb95fcebd8e6c4a58e789b1218c11aed855b917b1573", kill_on_drop: false }` [INFO] [stdout] 9ccaa6faacf03e1ca4d2cb95fcebd8e6c4a58e789b1218c11aed855b917b1573 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a43f702c6a2bef4da9b0299d31873586e68ad909dbb692a52bb263164e8ddd6 [INFO] running `Command { std: "docker" "start" "-a" "9a43f702c6a2bef4da9b0299d31873586e68ad909dbb692a52bb263164e8ddd6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling cc v1.0.25 [INFO] [stderr] Compiling proc-macro2 v0.4.20 [INFO] [stderr] Compiling cfg-if v0.1.5 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling serde v1.0.79 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling ryu v0.2.6 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling memchr v2.1.0 [INFO] [stderr] Compiling ucd-util v0.1.1 [INFO] [stderr] Compiling byteorder v1.2.6 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling regex v1.0.5 [INFO] [stderr] Compiling regex-syntax v0.6.2 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling smallvec v0.6.5 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling unicode-normalization v0.1.7 [INFO] [stderr] Compiling plist v0.3.0 [INFO] [stderr] Compiling safemem v0.3.0 [INFO] [stderr] Compiling humantime v1.1.1 [INFO] [stderr] Compiling lock_api v0.1.4 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling linked-hash-map v0.5.1 [INFO] [stderr] Compiling utf8-ranges v1.0.1 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling term_size v0.3.1 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling same-file v1.0.3 [INFO] [stderr] Compiling yaml-rust v0.4.2 [INFO] [stderr] Compiling clicolors-control v0.2.0 [INFO] [stderr] Compiling walkdir v2.2.5 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling termios v0.3.1 [INFO] [stderr] Compiling aho-corasick v0.6.8 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling quote v0.6.8 [INFO] [stderr] Compiling log v0.4.5 [INFO] [stderr] Compiling lazycell v1.2.0 [INFO] [stderr] Compiling content_inspector v0.2.3 [INFO] [stderr] Compiling syn v0.15.9 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling directories v1.0.2 [INFO] [stderr] Compiling wild v2.0.1 [INFO] [stderr] Compiling shell-words v0.1.0 [INFO] [stderr] Compiling libz-sys v1.0.23 [INFO] [stderr] Compiling onig_sys v69.0.0 [INFO] [stderr] Compiling miniz-sys v0.1.10 [INFO] [stderr] Compiling libgit2-sys v0.7.10 [INFO] [stderr] Compiling ansi_colours v1.0.1 [INFO] [stderr] Compiling error-chain v0.12.0 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling flate2 v1.0.3 [INFO] [stderr] Compiling url v1.7.1 [INFO] [stderr] Compiling console v0.6.2 [INFO] [stderr] Compiling serde_derive v1.0.79 [INFO] [stderr] Compiling bat v0.8.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling onig v4.2.0 [INFO] [stderr] Compiling bincode v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.32 [INFO] [stderr] Compiling syntect v3.0.1 [INFO] [stderr] Compiling git2 v0.7.5 [INFO] [stdout] warning: the item `Path` is imported redundantly [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 45 | use std::path::Path; [INFO] [stdout] | --------------- the item `Path` is already imported here [INFO] [stdout] ... [INFO] [stdout] 87 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / error_chain! { [INFO] [stdout] 60 | | foreign_links { [INFO] [stdout] 61 | | Clap(::clap::Error); [INFO] [stdout] 62 | | Io(::std::io::Error); [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/controller.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | writer: &mut Write, [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | writer: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/controller.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | writer: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 76 | writer: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/output.rs:72:45 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn handle(&mut self) -> Result<&mut Write> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 72 | pub fn handle(&mut self) -> Result<&mut dyn Write> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | fn print_header(&mut self, handle: &mut Write, file: InputFile) -> Result<()>; [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 | fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:31:45 [INFO] [stdout] | [INFO] [stdout] 31 | fn print_footer(&mut self, handle: &mut Write) -> Result<()>; [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 | fn print_footer(&mut self, handle: &mut dyn Write) -> Result<()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | handle: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | handle: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:50:46 [INFO] [stdout] | [INFO] [stdout] 50 | fn print_header(&mut self, _handle: &mut Write, _file: InputFile) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 | fn print_header(&mut self, _handle: &mut dyn Write, _file: InputFile) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:54:46 [INFO] [stdout] | [INFO] [stdout] 54 | fn print_footer(&mut self, _handle: &mut Write) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | fn print_footer(&mut self, _handle: &mut dyn Write) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 61 | handle: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 61 | handle: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:162:54 [INFO] [stdout] | [INFO] [stdout] 162 | fn print_horizontal_line(&mut self, handle: &mut Write, grid_char: char) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 162 | fn print_horizontal_line(&mut self, handle: &mut dyn Write, grid_char: char) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:188:45 [INFO] [stdout] | [INFO] [stdout] 188 | fn print_header(&mut self, handle: &mut Write, file: InputFile) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 188 | fn print_header(&mut self, handle: &mut dyn Write, file: InputFile) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:239:45 [INFO] [stdout] | [INFO] [stdout] 239 | fn print_footer(&mut self, handle: &mut Write) -> Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 239 | fn print_footer(&mut self, handle: &mut dyn Write) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/printer.rs:250:22 [INFO] [stdout] | [INFO] [stdout] 250 | handle: &mut Write, [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 250 | handle: &mut dyn Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right_matches`: superseded by `trim_end_matches` [INFO] [stdout] --> src/printer.rs:339:38 [INFO] [stdout] | [INFO] [stdout] 339 | ... text.trim_right_matches(|c| c == '\r' || c == '\n'), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 339 | text.trim_end_matches(|c| c == '\r' || c == '\n'), [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/main.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / error_chain! { [INFO] [stdout] 60 | | foreign_links { [INFO] [stdout] 61 | | Clap(::clap::Error); [INFO] [stdout] 62 | | Io(::std::io::Error); [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_error_chain_processed` which comes from the expansion of the macro `error_chain` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/printer.rs:318:21 [INFO] [stdout] | [INFO] [stdout] 318 | let mut ansi_iterator = AnsiCodeIterator::new(region); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: LC_ALL="C" PATH="/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/opt/rustwide/cargo-home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcspBkVF/symbols.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.00.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.01.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.02.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.03.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.04.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.05.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.06.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.07.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.08.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.09.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.bat.d10305ce3b228473-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e.11jmjw6q7joqbu0k.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug/build/ansi_colours-4a6e1d95156f0a9f/out" "-L" "/opt/rustwide/target/debug/build/libgit2-sys-dd85db7762c0dfa2/out/build" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/opt/rustwide/target/debug/build/miniz-sys-35fe977e2b7dd7c9/out" "-L" "/opt/rustwide/target/debug/build/onig_sys-adf7cab69e56a978/out" "-L" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libansi_colours-3239f732a63f5492.rlib" "/opt/rustwide/target/debug/deps/libwild-ab6e8d3e0dea5010.rlib" "/opt/rustwide/target/debug/deps/libsyntect-90335461bb608c36.rlib" "/opt/rustwide/target/debug/deps/libserde_json-b178878fb071fa5a.rlib" "/opt/rustwide/target/debug/deps/libryu-d8df00ec51fb896c.rlib" "/opt/rustwide/target/debug/deps/libitoa-93eb953bd3b0b8a6.rlib" "/opt/rustwide/target/debug/deps/libfnv-3c814c2a55708c09.rlib" "/opt/rustwide/target/debug/deps/libflate2-36689af16ca59eeb.rlib" "/opt/rustwide/target/debug/deps/libminiz_sys-f51d95d7a8d484d8.rlib" "/opt/rustwide/target/debug/deps/libbincode-53aaa3cb75343865.rlib" "/opt/rustwide/target/debug/deps/libplist-e1a4251cc83ee48b.rlib" "/opt/rustwide/target/debug/deps/libserde-6fec110ad6df3037.rlib" "/opt/rustwide/target/debug/deps/libxml-d0d067fbcd16e1f2.rlib" "/opt/rustwide/target/debug/deps/libhumantime-433e4edad92d6f7f.rlib" "/opt/rustwide/target/debug/deps/libquick_error-86327f2f3253f83d.rlib" "/opt/rustwide/target/debug/deps/libbase64-e87ddff13bc7073a.rlib" "/opt/rustwide/target/debug/deps/libsafemem-c08a48528d8defc4.rlib" "/opt/rustwide/target/debug/deps/libbyteorder-5b3601431af488a2.rlib" "/opt/rustwide/target/debug/deps/liblazycell-73f4d41cb090ab78.rlib" "/opt/rustwide/target/debug/deps/libwalkdir-a4b81c97afc5439a.rlib" "/opt/rustwide/target/debug/deps/libsame_file-67dd306942401053.rlib" "/opt/rustwide/target/debug/deps/libonig-0d7982685a6238d4.rlib" "/opt/rustwide/target/debug/deps/libonig_sys-e3f0e36df31d8de7.rlib" "/opt/rustwide/target/debug/deps/libyaml_rust-4bcb4562f6150bc0.rlib" "/opt/rustwide/target/debug/deps/liblinked_hash_map-7a53ece36be7d126.rlib" "/opt/rustwide/target/debug/deps/libshell_words-4b5793173aa7fb94.rlib" "/opt/rustwide/target/debug/deps/libgit2-fce43767933d3188.rlib" "/opt/rustwide/target/debug/deps/liblog-1299dfa4cf51b6d5.rlib" "/opt/rustwide/target/debug/deps/liblibgit2_sys-e9010b2c607c511f.rlib" "/opt/rustwide/target/debug/deps/liblibz_sys-8223075079f6f54a.rlib" "/opt/rustwide/target/debug/deps/liburl-e974c0cff342b25d.rlib" "/opt/rustwide/target/debug/deps/libpercent_encoding-33525928c7429483.rlib" "/opt/rustwide/target/debug/deps/libidna-04f2ba8154fb3d77.rlib" "/opt/rustwide/target/debug/deps/libunicode_normalization-4d4283f5aa6cb008.rlib" "/opt/rustwide/target/debug/deps/libunicode_bidi-5550b4e7e33925b6.rlib" "/opt/rustwide/target/debug/deps/libmatches-359d126c5b4c8439.rlib" "/opt/rustwide/target/debug/deps/libencoding-6d6686abb4dc9228.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_tradchinese-8122fdcd3d372fc2.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_simpchinese-043d8a1e191b8613.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_japanese-5ca4b1a9fb68f991.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_korean-1fc97c1c1952d6ca.rlib" "/opt/rustwide/target/debug/deps/libencoding_index_singlebyte-61ec8ec951a241cb.rlib" "/opt/rustwide/target/debug/deps/libdirectories-ae75465edae19c91.rlib" "/opt/rustwide/target/debug/deps/libcontent_inspector-511f26bc4a0f4f5c.rlib" "/opt/rustwide/target/debug/deps/libconsole-ef86eaa4b3f117f2.rlib" "/opt/rustwide/target/debug/deps/libregex-d3326f32895b58f5.rlib" "/opt/rustwide/target/debug/deps/libutf8_ranges-e1bfc2844b151b63.rlib" "/opt/rustwide/target/debug/deps/libregex_syntax-03877bd1cb40e575.rlib" "/opt/rustwide/target/debug/deps/libucd_util-7e90e9215419b4b1.rlib" "/opt/rustwide/target/debug/deps/libthread_local-6c265a13093f6c94.rlib" "/opt/rustwide/target/debug/deps/libaho_corasick-def2eddf5a9b978e.rlib" "/opt/rustwide/target/debug/deps/libmemchr-e38d46396863e76e.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-985aaee028a8682e.rlib" "/opt/rustwide/target/debug/deps/libparking_lot-269eee5b69bc2ff6.rlib" "/opt/rustwide/target/debug/deps/libparking_lot_core-aace21379a2676a2.rlib" "/opt/rustwide/target/debug/deps/libsmallvec-4b0a1ac802dd5ec0.rlib" "/opt/rustwide/target/debug/deps/libunreachable-5f53566b053eb3c2.rlib" "/opt/rustwide/target/debug/deps/libvoid-9e681b028a877516.rlib" "/opt/rustwide/target/debug/deps/librand-f85285b8b8d6c72e.rlib" "/opt/rustwide/target/debug/deps/librand_core-468b07404e74285f.rlib" "/opt/rustwide/target/debug/deps/librand_core-1e7cdd0670166cd3.rlib" "/opt/rustwide/target/debug/deps/liblock_api-3357084d92010479.rlib" "/opt/rustwide/target/debug/deps/libowning_ref-405de7ac39dc374b.rlib" "/opt/rustwide/target/debug/deps/libstable_deref_trait-ff2d6f41169dcc19.rlib" "/opt/rustwide/target/debug/deps/libscopeguard-11280264ea39e0df.rlib" "/opt/rustwide/target/debug/deps/libclicolors_control-c63592aa603aabe2.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-db150a8b3ee87459.rlib" "/opt/rustwide/target/debug/deps/libtermios-370a6af9c7792c7b.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-9c102fdeafcb918e.rlib" "/opt/rustwide/target/debug/deps/libclap-13b46fdbdb0514a2.rlib" "/opt/rustwide/target/debug/deps/libvec_map-eac28ef77e7894f4.rlib" "/opt/rustwide/target/debug/deps/libtextwrap-92f7caf19c7ea05c.rlib" "/opt/rustwide/target/debug/deps/libunicode_width-dbf6a0df7b33a03c.rlib" "/opt/rustwide/target/debug/deps/libterm_size-8fba6640e9a86462.rlib" "/opt/rustwide/target/debug/deps/libstrsim-07930e1cd81ce9fd.rlib" "/opt/rustwide/target/debug/deps/libbitflags-6684b7fdeed469bb.rlib" "/opt/rustwide/target/debug/deps/libatty-ba193acd875448e6.rlib" "/opt/rustwide/target/debug/deps/liblibc-4f7b53ed0008d5dc.rlib" "/opt/rustwide/target/debug/deps/libansi_term-c5d639f3e545ec5b.rlib" "/opt/rustwide/target/debug/deps/liberror_chain-9a28cb325dff0f83.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-72b35984a787fb54.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-0fdedff926cd8b5a.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-fe0525e327a5464a.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-795b2243f06bd098.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-86ce554ff6ad08cd.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-1be635a4727d8e5e.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-1e55d89766af9c5f.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-02605c7065574d0d.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-0d17ba1067febc2c.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-2408fbe38b247900.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-b3c63e8997fdca47.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-bfa7a39ebb77d49a.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-4b955078cf51c0a1.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-1a6fbee0083900be.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-2b93db426c5a26c2.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-b30975e2b876cf32.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-cd2f2bc505f56f50.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-ec02dd343723da85.rlib" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-408115ade0360d2a.rlib" "-Wl,-Bdynamic" "-lz" "-lc" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/53e03135c36e913ff664ce8329041b7e3c2fd358/lib/rustlib/x86_64-unknown-linux-gnu/lib/self-contained" "-o" "/opt/rustwide/target/debug/deps/bat-5dab471550bc492e" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: rust-lld: error: duplicate symbol: regerror [INFO] [stdout] >>> defined at regposerr.c:88 (oniguruma/src/regposerr.c:88) [INFO] [stdout] >>> regposerr.o:(regerror) in archive /opt/rustwide/target/debug/deps/libonig_sys-e3f0e36df31d8de7.rlib [INFO] [stdout] >>> defined at regcomp.c:547 (libgit2/deps/regex/regcomp.c:547) [INFO] [stdout] >>> regex.o:(.text.regerror+0x0) in archive /opt/rustwide/target/debug/deps/liblibgit2_sys-e9010b2c607c511f.rlib [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bat` (bin "bat") due to 2 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9a43f702c6a2bef4da9b0299d31873586e68ad909dbb692a52bb263164e8ddd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a43f702c6a2bef4da9b0299d31873586e68ad909dbb692a52bb263164e8ddd6", kill_on_drop: false }` [INFO] [stdout] 9a43f702c6a2bef4da9b0299d31873586e68ad909dbb692a52bb263164e8ddd6