[INFO] cloning repository https://github.com/dgoetsch/dnd-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dgoetsch/dnd-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdgoetsch%2Fdnd-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdgoetsch%2Fdnd-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1fe114b2762ef3249739c9433bf191341093dfa1 [INFO] building dgoetsch/dnd-cli against master#ce36a966c79e109dabeef7a47fe68e5294c6d71e for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdgoetsch%2Fdnd-cli" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dgoetsch/dnd-cli on toolchain ce36a966c79e109dabeef7a47fe68e5294c6d71e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dgoetsch/dnd-cli [INFO] finished tweaking git repo https://github.com/dgoetsch/dnd-cli [INFO] tweaked toml for git repo https://github.com/dgoetsch/dnd-cli written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dgoetsch/dnd-cli 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" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_derive v1.0.136 [INFO] [stderr] Downloaded unicode-xid v0.2.2 [INFO] [stderr] Downloaded itoa v1.0.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.36 [INFO] [stderr] Downloaded quote v1.0.15 [INFO] [stderr] Downloaded ryu v1.0.9 [INFO] [stderr] Downloaded serde v1.0.136 [INFO] [stderr] Downloaded syn v1.0.86 [INFO] [stderr] Downloaded clap_derive v3.1.4 [INFO] [stderr] Downloaded version_check v0.9.4 [INFO] [stderr] Downloaded atty v0.2.14 [INFO] [stderr] Downloaded os_str_bytes v6.0.0 [INFO] [stderr] Downloaded anyhow v1.0.55 [INFO] [stderr] Downloaded heck v0.4.0 [INFO] [stderr] Downloaded indexmap v1.8.0 [INFO] [stderr] Downloaded itertools v0.10.3 [INFO] [stderr] Downloaded wasi v0.10.2+wasi-snapshot-preview1 [INFO] [stderr] Downloaded getrandom v0.2.5 [INFO] [stderr] Downloaded redox_syscall v0.2.11 [INFO] [stderr] Downloaded clap v3.1.5 [INFO] [stderr] Downloaded ppv-lite86 v0.2.16 [INFO] [stderr] Downloaded rand_core v0.6.3 [INFO] [stderr] Downloaded rand v0.8.5 [INFO] [stderr] Downloaded proc-macro-error-attr v1.0.4 [INFO] [stderr] Downloaded proc-macro-error v1.0.4 [INFO] [stderr] Downloaded autocfg v1.1.0 [INFO] [stderr] Downloaded dirs-sys v0.3.6 [INFO] [stderr] Downloaded rand_chacha v0.3.1 [INFO] [stderr] Downloaded hermit-abi v0.1.19 [INFO] [stderr] Downloaded textwrap v0.15.0 [INFO] [stderr] Downloaded clap_complete v3.1.1 [INFO] [stderr] Downloaded bitflags v1.3.2 [INFO] [stderr] Downloaded winapi-util v0.1.5 [INFO] [stderr] Downloaded hashbrown v0.11.2 [INFO] [stderr] Downloaded libc v0.2.119 [INFO] [stderr] Downloaded termcolor v1.1.3 [INFO] [stderr] Downloaded strsim v0.10.0 [INFO] [stderr] Downloaded redox_users v0.4.0 [INFO] [stderr] Downloaded cfg-if v1.0.0 [INFO] [stderr] Downloaded lazy_static v1.4.0 [INFO] [stderr] Downloaded memchr v2.4.1 [INFO] [stderr] Downloaded dirs v3.0.2 [INFO] [stderr] Downloaded either v1.6.1 [INFO] [stderr] Downloaded serde_json v1.0.79 [INFO] [stderr] Downloaded winapi v0.3.9 [INFO] [stderr] Downloaded winapi-x86_64-pc-windows-gnu v0.4.0 [INFO] [stderr] Downloaded winapi-i686-pc-windows-gnu v0.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c10a0b3e1a08873bba0163e13046563e9cd3bbc2886c697b5c03d36a9cf1b586 [INFO] running `Command { std: "docker" "start" "-a" "c10a0b3e1a08873bba0163e13046563e9cd3bbc2886c697b5c03d36a9cf1b586", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c10a0b3e1a08873bba0163e13046563e9cd3bbc2886c697b5c03d36a9cf1b586", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c10a0b3e1a08873bba0163e13046563e9cd3bbc2886c697b5c03d36a9cf1b586", kill_on_drop: false }` [INFO] [stdout] c10a0b3e1a08873bba0163e13046563e9cd3bbc2886c697b5c03d36a9cf1b586 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 069533606fc6458e8efea09caadf9a39fb8805e5696c78328043191bd189b325 [INFO] running `Command { std: "docker" "start" "-a" "069533606fc6458e8efea09caadf9a39fb8805e5696c78328043191bd189b325", kill_on_drop: false }` [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling clap_complete v3.1.1 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling dirs v3.0.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling dnd-cli v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/domain/inventory.rs:314:24 [INFO] [stdout] | [INFO] [stdout] 314 | if (child_path.clone().is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 314 - if (child_path.clone().is_empty()) { [INFO] [stdout] 314 + if child_path.clone().is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/domain/inventory.rs:351:20 [INFO] [stdout] | [INFO] [stdout] 351 | if(child_path.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 351 - if(child_path.is_empty()) { [INFO] [stdout] 351 + if child_path.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/domain/inventory.rs:359:23 [INFO] [stdout] | [INFO] [stdout] 359 | if(child_path.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 359 - if(child_path.is_empty()) { [INFO] [stdout] 359 + if child_path.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/domain/inventory.rs:402:32 [INFO] [stdout] | [INFO] [stdout] 402 | ... if (child_path.clone().is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 402 - if (child_path.clone().is_empty()) { [INFO] [stdout] 402 + if child_path.clone().is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/domain/inventory.rs:463:23 [INFO] [stdout] | [INFO] [stdout] 463 | if(child_path.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 463 - if(child_path.is_empty()) { [INFO] [stdout] 463 + if child_path.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/domain/roll.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | if (scope.matches(path)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - if (scope.matches(path)) { [INFO] [stdout] 23 + if scope.matches(path) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::FileType` [INFO] [stdout] --> src/store.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use std::fs::FileType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:164:24 [INFO] [stdout] | [INFO] [stdout] 164 | fn render(renderable: &Render) -> Result<()> { [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 164 | fn render(renderable: &dyn Render) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/render.rs:4:47 [INFO] [stdout] | [INFO] [stdout] 4 | fn render(&self, indent: usize, out: &mut std::io::Write) -> Result<()>; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 4 | fn render(&self, indent: usize, out: &mut dyn std::io::Write) -> Result<()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:56:47 [INFO] [stdout] | [INFO] [stdout] 56 | fn render(&self, indent: usize, out: &mut Write) -> Result<()> { [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 | fn render(&self, indent: usize, out: &mut dyn Write) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/roll.rs:123:47 [INFO] [stdout] | [INFO] [stdout] 123 | fn render(&self, indent: usize, out: &mut Write) -> Result<()> { [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 123 | fn render(&self, indent: usize, out: &mut dyn Write) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/render.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl Render { [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | impl dyn Render { [INFO] [stdout] | +++ [INFO] [stdout] help: you might have intended to implement this trait for a given type [INFO] [stdout] | [INFO] [stdout] 7 | impl Render for /* Type */ { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 40 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:46:55 [INFO] [stdout] | [INFO] [stdout] 46 | out.write_fmt(format_args!("{}{}:\n", Render::tab(indent), name))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 | out.write_fmt(format_args!("{}{}:\n", ::tab(indent), name))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:57:53 [INFO] [stdout] | [INFO] [stdout] 57 | out.write_fmt(format_args!("{}Inventory\n", Render::tab(indent)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | out.write_fmt(format_args!("{}Inventory\n", ::tab(indent)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 80 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 86 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:101:25 [INFO] [stdout] | [INFO] [stdout] 101 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 109 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 109 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 119 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 126 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:133:21 [INFO] [stdout] | [INFO] [stdout] 133 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 133 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:140:21 [INFO] [stdout] | [INFO] [stdout] 140 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 140 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:145:128 [INFO] [stdout] | [INFO] [stdout] 145 | ... out.write_fmt(format_args!("{}{}: The specified container does not exist, there was an object at a subpath\n", Render::tab(indent),... [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 145 | out.write_fmt(format_args!("{}{}: The specified container does not exist, there was an object at a subpath\n", ::tab(indent), path_string(path)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:240:82 [INFO] [stdout] | [INFO] [stdout] 240 | out.write_fmt(format_args!("{}{}: Found an object in subpath\n", Render::tab(indent), path_string(path)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 240 | out.write_fmt(format_args!("{}{}: Found an object in subpath\n", ::tab(indent), path_string(path)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:244:86 [INFO] [stdout] | [INFO] [stdout] 244 | out.write_fmt(format_args!("{}{}: Successfully created container\n", Render::tab(indent), path_string(path)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 244 | out.write_fmt(format_args!("{}{}: Successfully created container\n", ::tab(indent), path_string(path)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:248:97 [INFO] [stdout] | [INFO] [stdout] 248 | out.write_fmt(format_args!("{}{}: Cannot create an item that already exists\n", Render::tab(indent), path_string(path)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 248 | out.write_fmt(format_args!("{}{}: Cannot create an item that already exists\n", ::tab(indent), path_string(path)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:252:98 [INFO] [stdout] | [INFO] [stdout] 252 | out.write_fmt(format_args!("{}{}: The container to put this in doesn't exist\n", Render::tab(indent), path_string(path)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 252 | out.write_fmt(format_args!("{}{}: The container to put this in doesn't exist\n", ::tab(indent), path_string(path)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:256:76 [INFO] [stdout] | [INFO] [stdout] 256 | out.write_fmt(format_args!("{}{}: No path was provided\n", Render::tab(indent), path_string(path)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 256 | out.write_fmt(format_args!("{}{}: No path was provided\n", ::tab(indent), path_string(path)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/hit_points.rs:52:55 [INFO] [stdout] | [INFO] [stdout] 52 | out.write_fmt(format_args!("{}Hit Points:\n", Render::tab(indent)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | out.write_fmt(format_args!("{}Hit Points:\n", ::tab(indent)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/hit_points.rs:54:56 [INFO] [stdout] | [INFO] [stdout] 54 | out.write_fmt(format_args!("{} {} / {}\n", Render::tab(indent + 1), self.current, self.get_modified_max()))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | out.write_fmt(format_args!("{} {} / {}\n", ::tab(indent + 1), self.current, self.get_modified_max()))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/hit_points.rs:57:69 [INFO] [stdout] | [INFO] [stdout] 57 | ... out.write_fmt(format_args!("{} {} / {} [ {} {} {} ]\n", Render::tab(indent + 1), self.current, self.get_modified_max(), self.max, d... [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | out.write_fmt(format_args!("{} {} / {} [ {} {} {} ]\n", ::tab(indent + 1), self.current, self.get_modified_max(), self.max, diff_char, self.temporary.abs()))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/domain/inventory.rs:47:66 [INFO] [stdout] | [INFO] [stdout] 47 | for name_item in items.iter().sorted_by_key(|(n, i)| n.clone()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/domain/inventory.rs:58:64 [INFO] [stdout] | [INFO] [stdout] 58 | for named_item in self.items.iter().sorted_by_key(|(n, i)| n.clone()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available` [INFO] [stdout] --> src/domain/inventory.rs:328:45 [INFO] [stdout] | [INFO] [stdout] 328 | Ok(AddItemResult::Success { available, .. }) => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `available: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requested` [INFO] [stdout] --> src/domain/inventory.rs:418:29 [INFO] [stdout] | [INFO] [stdout] 418 | ... requested, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `requested: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available` [INFO] [stdout] --> src/domain/inventory.rs:419:29 [INFO] [stdout] | [INFO] [stdout] 419 | ... available, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `available: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/domain/roll.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | .filter(|(path, bonus)| match bonus { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/store.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let mut character: Character = serde_json::from_str(content.as_str())?; [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: unused variable: `count` [INFO] [stdout] --> src/store.rs:120:21 [INFO] [stdout] | [INFO] [stdout] 120 | count [INFO] [stdout] | ^^^^^ help: try ignoring the field: `count: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/main.rs:155:49 [INFO] [stdout] | [INFO] [stdout] 155 | InventoryContainerCmd::Remove { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&std::string::String` instead of cloning the inner type [INFO] [stdout] --> src/domain/inventory.rs:47:71 [INFO] [stdout] | [INFO] [stdout] 47 | for name_item in items.iter().sorted_by_key(|(n, i)| n.clone()) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&std::string::String` instead of cloning the inner type [INFO] [stdout] --> src/domain/inventory.rs:58:69 [INFO] [stdout] | [INFO] [stdout] 58 | for named_item in self.items.iter().sorted_by_key(|(n, i)| n.clone()) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/domain/inventory.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | out.flush(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = out.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.66s [INFO] running `Command { std: "docker" "inspect" "069533606fc6458e8efea09caadf9a39fb8805e5696c78328043191bd189b325", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "069533606fc6458e8efea09caadf9a39fb8805e5696c78328043191bd189b325", kill_on_drop: false }` [INFO] [stdout] 069533606fc6458e8efea09caadf9a39fb8805e5696c78328043191bd189b325 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ce36a966c79e109dabeef7a47fe68e5294c6d71e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 83a5569e7c1ab7a37d6eb4738bcb5b1e7ccf2b7c2c09f27698d67e460cdf9428 [INFO] running `Command { std: "docker" "start" "-a" "83a5569e7c1ab7a37d6eb4738bcb5b1e7ccf2b7c2c09f27698d67e460cdf9428", kill_on_drop: false }` [INFO] [stderr] Compiling dnd-cli v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/domain/inventory.rs:314:24 [INFO] [stdout] | [INFO] [stdout] 314 | if (child_path.clone().is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 314 - if (child_path.clone().is_empty()) { [INFO] [stdout] 314 + if child_path.clone().is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/domain/inventory.rs:351:20 [INFO] [stdout] | [INFO] [stdout] 351 | if(child_path.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 351 - if(child_path.is_empty()) { [INFO] [stdout] 351 + if child_path.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/domain/inventory.rs:359:23 [INFO] [stdout] | [INFO] [stdout] 359 | if(child_path.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 359 - if(child_path.is_empty()) { [INFO] [stdout] 359 + if child_path.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/domain/inventory.rs:402:32 [INFO] [stdout] | [INFO] [stdout] 402 | ... if (child_path.clone().is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 402 - if (child_path.clone().is_empty()) { [INFO] [stdout] 402 + if child_path.clone().is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/domain/inventory.rs:463:23 [INFO] [stdout] | [INFO] [stdout] 463 | if(child_path.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 463 - if(child_path.is_empty()) { [INFO] [stdout] 463 + if child_path.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/domain/roll.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | if (scope.matches(path)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - if (scope.matches(path)) { [INFO] [stdout] 23 + if scope.matches(path) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::FileType` [INFO] [stdout] --> src/store.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use std::fs::FileType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:164:24 [INFO] [stdout] | [INFO] [stdout] 164 | fn render(renderable: &Render) -> Result<()> { [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 164 | fn render(renderable: &dyn Render) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/render.rs:4:47 [INFO] [stdout] | [INFO] [stdout] 4 | fn render(&self, indent: usize, out: &mut std::io::Write) -> Result<()>; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 4 | fn render(&self, indent: usize, out: &mut dyn std::io::Write) -> Result<()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:56:47 [INFO] [stdout] | [INFO] [stdout] 56 | fn render(&self, indent: usize, out: &mut Write) -> Result<()> { [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 | fn render(&self, indent: usize, out: &mut dyn Write) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/roll.rs:123:47 [INFO] [stdout] | [INFO] [stdout] 123 | fn render(&self, indent: usize, out: &mut Write) -> Result<()> { [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 123 | fn render(&self, indent: usize, out: &mut dyn Write) -> Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/render.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl Render { [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | impl dyn Render { [INFO] [stdout] | +++ [INFO] [stdout] help: you might have intended to implement this trait for a given type [INFO] [stdout] | [INFO] [stdout] 7 | impl Render for /* Type */ { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 40 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:46:55 [INFO] [stdout] | [INFO] [stdout] 46 | out.write_fmt(format_args!("{}{}:\n", Render::tab(indent), name))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 | out.write_fmt(format_args!("{}{}:\n", ::tab(indent), name))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:57:53 [INFO] [stdout] | [INFO] [stdout] 57 | out.write_fmt(format_args!("{}Inventory\n", Render::tab(indent)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | out.write_fmt(format_args!("{}Inventory\n", ::tab(indent)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 80 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 86 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:101:25 [INFO] [stdout] | [INFO] [stdout] 101 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 109 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 109 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 119 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 126 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:133:21 [INFO] [stdout] | [INFO] [stdout] 133 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 133 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:140:21 [INFO] [stdout] | [INFO] [stdout] 140 | Render::tab(indent), [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 140 | ::tab(indent), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:145:128 [INFO] [stdout] | [INFO] [stdout] 145 | ... out.write_fmt(format_args!("{}{}: The specified container does not exist, there was an object at a subpath\n", Render::tab(indent),... [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 145 | out.write_fmt(format_args!("{}{}: The specified container does not exist, there was an object at a subpath\n", ::tab(indent), path_string(path)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:240:82 [INFO] [stdout] | [INFO] [stdout] 240 | out.write_fmt(format_args!("{}{}: Found an object in subpath\n", Render::tab(indent), path_string(path)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 240 | out.write_fmt(format_args!("{}{}: Found an object in subpath\n", ::tab(indent), path_string(path)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:244:86 [INFO] [stdout] | [INFO] [stdout] 244 | out.write_fmt(format_args!("{}{}: Successfully created container\n", Render::tab(indent), path_string(path)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 244 | out.write_fmt(format_args!("{}{}: Successfully created container\n", ::tab(indent), path_string(path)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:248:97 [INFO] [stdout] | [INFO] [stdout] 248 | out.write_fmt(format_args!("{}{}: Cannot create an item that already exists\n", Render::tab(indent), path_string(path)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 248 | out.write_fmt(format_args!("{}{}: Cannot create an item that already exists\n", ::tab(indent), path_string(path)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:252:98 [INFO] [stdout] | [INFO] [stdout] 252 | out.write_fmt(format_args!("{}{}: The container to put this in doesn't exist\n", Render::tab(indent), path_string(path)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 252 | out.write_fmt(format_args!("{}{}: The container to put this in doesn't exist\n", ::tab(indent), path_string(path)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/inventory.rs:256:76 [INFO] [stdout] | [INFO] [stdout] 256 | out.write_fmt(format_args!("{}{}: No path was provided\n", Render::tab(indent), path_string(path)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 256 | out.write_fmt(format_args!("{}{}: No path was provided\n", ::tab(indent), path_string(path)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/hit_points.rs:52:55 [INFO] [stdout] | [INFO] [stdout] 52 | out.write_fmt(format_args!("{}Hit Points:\n", Render::tab(indent)))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | out.write_fmt(format_args!("{}Hit Points:\n", ::tab(indent)))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/hit_points.rs:54:56 [INFO] [stdout] | [INFO] [stdout] 54 | out.write_fmt(format_args!("{} {} / {}\n", Render::tab(indent + 1), self.current, self.get_modified_max()))?; [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | out.write_fmt(format_args!("{} {} / {}\n", ::tab(indent + 1), self.current, self.get_modified_max()))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/domain/hit_points.rs:57:69 [INFO] [stdout] | [INFO] [stdout] 57 | ... out.write_fmt(format_args!("{} {} / {} [ {} {} {} ]\n", Render::tab(indent + 1), self.current, self.get_modified_max(), self.max, d... [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | out.write_fmt(format_args!("{} {} / {} [ {} {} {} ]\n", ::tab(indent + 1), self.current, self.get_modified_max(), self.max, diff_char, self.temporary.abs()))?; [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/domain/inventory.rs:47:66 [INFO] [stdout] | [INFO] [stdout] 47 | for name_item in items.iter().sorted_by_key(|(n, i)| n.clone()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/domain/inventory.rs:58:64 [INFO] [stdout] | [INFO] [stdout] 58 | for named_item in self.items.iter().sorted_by_key(|(n, i)| n.clone()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available` [INFO] [stdout] --> src/domain/inventory.rs:328:45 [INFO] [stdout] | [INFO] [stdout] 328 | Ok(AddItemResult::Success { available, .. }) => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `available: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requested` [INFO] [stdout] --> src/domain/inventory.rs:418:29 [INFO] [stdout] | [INFO] [stdout] 418 | ... requested, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `requested: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available` [INFO] [stdout] --> src/domain/inventory.rs:419:29 [INFO] [stdout] | [INFO] [stdout] 419 | ... available, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `available: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/domain/roll.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | .filter(|(path, bonus)| match bonus { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/store.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let mut character: Character = serde_json::from_str(content.as_str())?; [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: unused variable: `count` [INFO] [stdout] --> src/store.rs:120:21 [INFO] [stdout] | [INFO] [stdout] 120 | count [INFO] [stdout] | ^^^^^ help: try ignoring the field: `count: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/main.rs:155:49 [INFO] [stdout] | [INFO] [stdout] 155 | InventoryContainerCmd::Remove { name } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&std::string::String` instead of cloning the inner type [INFO] [stdout] --> src/domain/inventory.rs:47:71 [INFO] [stdout] | [INFO] [stdout] 47 | for name_item in items.iter().sorted_by_key(|(n, i)| n.clone()) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&std::string::String` instead of cloning the inner type [INFO] [stdout] --> src/domain/inventory.rs:58:69 [INFO] [stdout] | [INFO] [stdout] 58 | for named_item in self.items.iter().sorted_by_key(|(n, i)| n.clone()) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/domain/inventory.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | out.flush(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = out.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.80s [INFO] running `Command { std: "docker" "inspect" "83a5569e7c1ab7a37d6eb4738bcb5b1e7ccf2b7c2c09f27698d67e460cdf9428", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83a5569e7c1ab7a37d6eb4738bcb5b1e7ccf2b7c2c09f27698d67e460cdf9428", kill_on_drop: false }` [INFO] [stdout] 83a5569e7c1ab7a37d6eb4738bcb5b1e7ccf2b7c2c09f27698d67e460cdf9428