[INFO] cloning repository https://github.com/aaronschif/prompt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aaronschif/prompt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faaronschif%2Fprompt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faaronschif%2Fprompt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cd5370d2633c2e147c2e9d24d1f56485d4d704be [INFO] testing aaronschif/prompt against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faaronschif%2Fprompt" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aaronschif/prompt on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aaronschif/prompt [INFO] finished tweaking git repo https://github.com/aaronschif/prompt [INFO] tweaked toml for git repo https://github.com/aaronschif/prompt written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/aaronschif/prompt already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] bd9b82dd08cb6d97ef6056323f5666969c6e5f5e33a96eee101f16d79372f5cd [INFO] running `Command { std: "docker" "start" "-a" "bd9b82dd08cb6d97ef6056323f5666969c6e5f5e33a96eee101f16d79372f5cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bd9b82dd08cb6d97ef6056323f5666969c6e5f5e33a96eee101f16d79372f5cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd9b82dd08cb6d97ef6056323f5666969c6e5f5e33a96eee101f16d79372f5cd", kill_on_drop: false }` [INFO] [stdout] bd9b82dd08cb6d97ef6056323f5666969c6e5f5e33a96eee101f16d79372f5cd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 192db9bfeb2878440d91c6658f7608df548cf7762b231a6c0c65550f759eaadd [INFO] running `Command { std: "docker" "start" "-a" "192db9bfeb2878440d91c6658f7608df548cf7762b231a6c0c65550f759eaadd", kill_on_drop: false }` [INFO] [stderr] Compiling utf8-ranges v1.0.1 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling openssl-sys v0.9.39 [INFO] [stderr] Compiling curl-sys v0.4.13 [INFO] [stderr] Compiling libssh2-sys v0.2.11 [INFO] [stderr] Compiling memchr v2.1.0 [INFO] [stderr] Compiling libgit2-sys v0.7.10 [INFO] [stderr] Compiling hostname v0.1.5 [INFO] [stderr] Compiling termion v1.5.1 [INFO] [stderr] Compiling log v0.4.5 [INFO] [stderr] Compiling url v1.7.1 [INFO] [stderr] Compiling aho-corasick v0.6.8 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling git2 v0.7.5 [INFO] [stderr] Compiling prompt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `termion::color::Color` [INFO] [stdout] --> src/shells/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use termion::color::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/main.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | use self::formatter::{Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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 - pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] 30 + pub struct Style<'a> (pub &'a dyn Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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 - pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] 30 + pub struct Style<'a> (pub &'a Shell,pub &'a dyn fmt::Display,pub &'a fmt::Display); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:30:66 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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 - pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] 30 + pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a dyn fmt::Display); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | fn sc_prompt(shell: &Shell, app: &ArgMatches) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 53 - fn sc_prompt(shell: &Shell, app: &ArgMatches) { [INFO] [stdout] 53 + fn sc_prompt(shell: &dyn Shell, app: &ArgMatches) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:9:54 [INFO] [stdout] | [INFO] [stdout] 9 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display); [INFO] [stdout] 9 + fn escape(&self, f: &mut fmt::Formatter, thing: &dyn fmt::Display, thing2: &fmt::Display); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:9:77 [INFO] [stdout] | [INFO] [stdout] 9 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display); [INFO] [stdout] 9 + fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &dyn fmt::Display); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:13:54 [INFO] [stdout] | [INFO] [stdout] 13 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] 13 + fn escape(&self, f: &mut fmt::Formatter, thing: &dyn fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:13:77 [INFO] [stdout] | [INFO] [stdout] 13 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] 13 + fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &dyn fmt::Display) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:19:54 [INFO] [stdout] | [INFO] [stdout] 19 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 19 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] 19 + fn escape(&self, f: &mut fmt::Formatter, thing: &dyn fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:19:77 [INFO] [stdout] | [INFO] [stdout] 19 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 19 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] 19 + fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &dyn fmt::Display) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:25:54 [INFO] [stdout] | [INFO] [stdout] 25 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] 25 + fn escape(&self, f: &mut fmt::Formatter, thing: &dyn fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:25:77 [INFO] [stdout] | [INFO] [stdout] 25 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] 25 + fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &dyn fmt::Display) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:148:20 [INFO] [stdout] | [INFO] [stdout] 148 | let shell: Box = match value_t!(app, "shell", SupportedShells).unwrap() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 148 - let shell: Box = match value_t!(app, "shell", SupportedShells).unwrap() { [INFO] [stdout] 148 + let shell: Box = match value_t!(app, "shell", SupportedShells).unwrap() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/formatter.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn fg(mut self) -> Self { [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: variable does not need to be mutable [INFO] [stdout] --> src/formatter.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn bg(mut self) -> Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/formatter.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn reset(mut self) -> Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `parts` [INFO] [stdout] --> src/formatter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | parts: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Formatter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/formatter.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/formatter.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn to_string() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/formatter.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn add(mut self, part: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fg` [INFO] [stdout] --> src/formatter.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn fg(mut self) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bg` [INFO] [stdout] --> src/formatter.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn bg(mut self) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset` [INFO] [stdout] --> src/formatter.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn reset(mut self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/git/mod.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | repo.stash_foreach(|_, _, _| {stash_count += 1; true}).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/shells/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | write!(f, "\033[31m{}{}\033[m", thing, thing2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/shells/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | write!(f, "%{{{}{}%}}", thing, thing2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/shells/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | write!(f, "{}{}", thing, thing2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 25s [INFO] running `Command { std: "docker" "inspect" "192db9bfeb2878440d91c6658f7608df548cf7762b231a6c0c65550f759eaadd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "192db9bfeb2878440d91c6658f7608df548cf7762b231a6c0c65550f759eaadd", kill_on_drop: false }` [INFO] [stdout] 192db9bfeb2878440d91c6658f7608df548cf7762b231a6c0c65550f759eaadd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b6c96cff42ebf4ff269e2f094d71ab52edbd3ca0dff691159e356afc422ab938 [INFO] running `Command { std: "docker" "start" "-a" "b6c96cff42ebf4ff269e2f094d71ab52edbd3ca0dff691159e356afc422ab938", kill_on_drop: false }` [INFO] [stderr] Compiling prompt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `termion::color::Color` [INFO] [stdout] --> src/shells/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use termion::color::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/main.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | use self::formatter::{Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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 - pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] 30 + pub struct Style<'a> (pub &'a dyn Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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 - pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] 30 + pub struct Style<'a> (pub &'a Shell,pub &'a dyn fmt::Display,pub &'a fmt::Display); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:30:66 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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 - pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stdout] 30 + pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a dyn fmt::Display); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | fn sc_prompt(shell: &Shell, app: &ArgMatches) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 53 - fn sc_prompt(shell: &Shell, app: &ArgMatches) { [INFO] [stdout] 53 + fn sc_prompt(shell: &dyn Shell, app: &ArgMatches) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:9:54 [INFO] [stdout] | [INFO] [stdout] 9 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display); [INFO] [stdout] 9 + fn escape(&self, f: &mut fmt::Formatter, thing: &dyn fmt::Display, thing2: &fmt::Display); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:9:77 [INFO] [stdout] | [INFO] [stdout] 9 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display); [INFO] [stdout] 9 + fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &dyn fmt::Display); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:13:54 [INFO] [stdout] | [INFO] [stdout] 13 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] 13 + fn escape(&self, f: &mut fmt::Formatter, thing: &dyn fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:13:77 [INFO] [stdout] | [INFO] [stdout] 13 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] 13 + fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &dyn fmt::Display) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:19:54 [INFO] [stdout] | [INFO] [stdout] 19 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 19 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] 19 + fn escape(&self, f: &mut fmt::Formatter, thing: &dyn fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:19:77 [INFO] [stdout] | [INFO] [stdout] 19 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 19 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] 19 + fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &dyn fmt::Display) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:25:54 [INFO] [stdout] | [INFO] [stdout] 25 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] 25 + fn escape(&self, f: &mut fmt::Formatter, thing: &dyn fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/shells/mod.rs:25:77 [INFO] [stdout] | [INFO] [stdout] 25 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stdout] 25 + fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &dyn fmt::Display) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:148:20 [INFO] [stdout] | [INFO] [stdout] 148 | let shell: Box = match value_t!(app, "shell", SupportedShells).unwrap() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 148 - let shell: Box = match value_t!(app, "shell", SupportedShells).unwrap() { [INFO] [stdout] 148 + let shell: Box = match value_t!(app, "shell", SupportedShells).unwrap() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/formatter.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn fg(mut self) -> Self { [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: variable does not need to be mutable [INFO] [stdout] --> src/formatter.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn bg(mut self) -> Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/formatter.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn reset(mut self) -> Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `parts` [INFO] [stdout] --> src/formatter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | parts: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Formatter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/formatter.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/formatter.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn to_string() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/formatter.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn add(mut self, part: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fg` [INFO] [stdout] --> src/formatter.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn fg(mut self) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bg` [INFO] [stdout] --> src/formatter.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn bg(mut self) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset` [INFO] [stdout] --> src/formatter.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn reset(mut self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/git/mod.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | repo.stash_foreach(|_, _, _| {stash_count += 1; true}).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/shells/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | write!(f, "\033[31m{}{}\033[m", thing, thing2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/shells/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | write!(f, "%{{{}{}%}}", thing, thing2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/shells/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | write!(f, "{}{}", thing, thing2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.46s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/prompt-ef9e5e87cc1f912f) [INFO] running `Command { std: "docker" "inspect" "b6c96cff42ebf4ff269e2f094d71ab52edbd3ca0dff691159e356afc422ab938", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6c96cff42ebf4ff269e2f094d71ab52edbd3ca0dff691159e356afc422ab938", kill_on_drop: false }` [INFO] [stdout] b6c96cff42ebf4ff269e2f094d71ab52edbd3ca0dff691159e356afc422ab938 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4970e1336534f98fbecd914f079edcd5a1bf1cbec384c0814018460d65b1ce38 [INFO] running `Command { std: "docker" "start" "-a" "4970e1336534f98fbecd914f079edcd5a1bf1cbec384c0814018460d65b1ce38", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `termion::color::Color` [INFO] [stderr] --> src/shells/mod.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use termion::color::Color; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Formatter` [INFO] [stderr] --> src/main.rs:15:23 [INFO] [stderr] | [INFO] [stderr] 15 | use self::formatter::{Formatter}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/shells/mod.rs:30:31 [INFO] [stderr] | [INFO] [stderr] 30 | pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 30 - pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stderr] 30 + pub struct Style<'a> (pub &'a dyn Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/shells/mod.rs:30:45 [INFO] [stderr] | [INFO] [stderr] 30 | pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 30 - pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stderr] 30 + pub struct Style<'a> (pub &'a Shell,pub &'a dyn fmt::Display,pub &'a fmt::Display); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/shells/mod.rs:30:66 [INFO] [stderr] | [INFO] [stderr] 30 | pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 30 - pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a fmt::Display); [INFO] [stderr] 30 + pub struct Style<'a> (pub &'a Shell,pub &'a fmt::Display,pub &'a dyn fmt::Display); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:53:22 [INFO] [stderr] | [INFO] [stderr] 53 | fn sc_prompt(shell: &Shell, app: &ArgMatches) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 53 - fn sc_prompt(shell: &Shell, app: &ArgMatches) { [INFO] [stderr] 53 + fn sc_prompt(shell: &dyn Shell, app: &ArgMatches) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/shells/mod.rs:9:54 [INFO] [stderr] | [INFO] [stderr] 9 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display); [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 9 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display); [INFO] [stderr] 9 + fn escape(&self, f: &mut fmt::Formatter, thing: &dyn fmt::Display, thing2: &fmt::Display); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/shells/mod.rs:9:77 [INFO] [stderr] | [INFO] [stderr] 9 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display); [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 9 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display); [INFO] [stderr] 9 + fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &dyn fmt::Display); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/shells/mod.rs:13:54 [INFO] [stderr] | [INFO] [stderr] 13 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 13 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] 13 + fn escape(&self, f: &mut fmt::Formatter, thing: &dyn fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/shells/mod.rs:13:77 [INFO] [stderr] | [INFO] [stderr] 13 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 13 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] 13 + fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &dyn fmt::Display) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/shells/mod.rs:19:54 [INFO] [stderr] | [INFO] [stderr] 19 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 19 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] 19 + fn escape(&self, f: &mut fmt::Formatter, thing: &dyn fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/shells/mod.rs:19:77 [INFO] [stderr] | [INFO] [stderr] 19 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 19 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] 19 + fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &dyn fmt::Display) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/shells/mod.rs:25:54 [INFO] [stderr] | [INFO] [stderr] 25 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 25 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] 25 + fn escape(&self, f: &mut fmt::Formatter, thing: &dyn fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/shells/mod.rs:25:77 [INFO] [stderr] | [INFO] [stderr] 25 | fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 25 - fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &fmt::Display) { [INFO] [stderr] 25 + fn escape(&self, f: &mut fmt::Formatter, thing: &fmt::Display, thing2: &dyn fmt::Display) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:148:20 [INFO] [stderr] | [INFO] [stderr] 148 | let shell: Box = match value_t!(app, "shell", SupportedShells).unwrap() { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 148 - let shell: Box = match value_t!(app, "shell", SupportedShells).unwrap() { [INFO] [stderr] 148 + let shell: Box = match value_t!(app, "shell", SupportedShells).unwrap() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/formatter.rs:16:15 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn fg(mut self) -> Self { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/formatter.rs:20:15 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn bg(mut self) -> Self { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/formatter.rs:24:18 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn reset(mut self) -> Self { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: field is never read: `parts` [INFO] [stderr] --> src/formatter.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | parts: String, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Formatter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/formatter.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_string` [INFO] [stderr] --> src/formatter.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub fn to_string() -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add` [INFO] [stderr] --> src/formatter.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn add(mut self, part: &str) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `fg` [INFO] [stderr] --> src/formatter.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn fg(mut self) -> Self { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `bg` [INFO] [stderr] --> src/formatter.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn bg(mut self) -> Self { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `reset` [INFO] [stderr] --> src/formatter.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn reset(mut self) -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stderr] --> src/git/mod.rs:85:9 [INFO] [stderr] | [INFO] [stderr] 85 | repo.stash_foreach(|_, _, _| {stash_count += 1; true}).is_ok(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/shells/mod.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | write!(f, "\033[31m{}{}\033[m", thing, thing2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/shells/mod.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | write!(f, "%{{{}{}%}}", thing, thing2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/shells/mod.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | write!(f, "{}{}", thing, thing2); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `prompt` (bin "prompt" test) generated 28 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.67s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/prompt-ef9e5e87cc1f912f) [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] running `Command { std: "docker" "inspect" "4970e1336534f98fbecd914f079edcd5a1bf1cbec384c0814018460d65b1ce38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4970e1336534f98fbecd914f079edcd5a1bf1cbec384c0814018460d65b1ce38", kill_on_drop: false }` [INFO] [stdout] 4970e1336534f98fbecd914f079edcd5a1bf1cbec384c0814018460d65b1ce38