[INFO] fetching crate tshell 0.2.2... [INFO] testing tshell-0.2.2 against 1.60.0 for beta-1.61-1 [INFO] extracting crate tshell 0.2.2 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate tshell 0.2.2 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate tshell 0.2.2 [INFO] finished tweaking crates.io crate tshell 0.2.2 [INFO] tweaked toml for crates.io crate tshell 0.2.2 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitflags v0.4.0 [INFO] [stderr] Downloaded nix v0.5.1 [INFO] [stderr] Downloaded encode_unicode v0.1.3 [INFO] [stderr] Downloaded rustyline v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "+1.60.0" "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] 09588ca98dcd273f62cda725bbd27e681449a99bf66b8964809bcd645b605844 [INFO] running `Command { std: "docker" "start" "-a" "09588ca98dcd273f62cda725bbd27e681449a99bf66b8964809bcd645b605844", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "09588ca98dcd273f62cda725bbd27e681449a99bf66b8964809bcd645b605844", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09588ca98dcd273f62cda725bbd27e681449a99bf66b8964809bcd645b605844", kill_on_drop: false }` [INFO] [stdout] 09588ca98dcd273f62cda725bbd27e681449a99bf66b8964809bcd645b605844 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "+1.60.0" "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] 6720e11d908bf41e72c883c64377419f163cb674bcab03f5c4718249caa5626c [INFO] running `Command { std: "docker" "start" "-a" "6720e11d908bf41e72c883c64377419f163cb674bcab03f5c4718249caa5626c", kill_on_drop: false }` [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling bitflags v0.4.0 [INFO] [stderr] Compiling encode_unicode v0.1.3 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling nix v0.5.1 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling rustyline v1.0.0 [INFO] [stderr] Compiling env_logger v0.3.5 [INFO] [stderr] Compiling tshell v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/commands.rs:312:42 [INFO] [stdout] | [INFO] [stdout] 312 | context: Arc::new(Mutex::new((context))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 312 - context: Arc::new(Mutex::new((context))) [INFO] [stdout] 312 + context: Arc::new(Mutex::new(context)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/commands.rs:394:29 [INFO] [stdout] | [INFO] [stdout] 394 | let home_dir = env::home_dir() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/commands.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | pub type CallBack = Fn(HashMap, &mut Option, &HashMap) -> CommandResult>; [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 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 - pub type CallBack = Fn(HashMap, &mut Option, &HashMap) -> CommandResult>; [INFO] [stdout] 10 + pub type CallBack = dyn Fn(HashMap, &mut Option, &HashMap) -> CommandResult>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/commands.rs:321:42 [INFO] [stdout] | [INFO] [stdout] 321 | let mut levels: Vec<&str> = line.trim_left().split_whitespace().collect(); [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 17.33s [INFO] running `Command { std: "docker" "inspect" "6720e11d908bf41e72c883c64377419f163cb674bcab03f5c4718249caa5626c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6720e11d908bf41e72c883c64377419f163cb674bcab03f5c4718249caa5626c", kill_on_drop: false }` [INFO] [stdout] 6720e11d908bf41e72c883c64377419f163cb674bcab03f5c4718249caa5626c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40d7390e0ddd6fdf14f15a3e65efd789014ae3ce9601dd313e87e75489c2daa2 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "40d7390e0ddd6fdf14f15a3e65efd789014ae3ce9601dd313e87e75489c2daa2", kill_on_drop: false }` [INFO] [stderr] Compiling tshell v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/commands.rs:312:42 [INFO] [stdout] | [INFO] [stdout] 312 | context: Arc::new(Mutex::new((context))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 312 - context: Arc::new(Mutex::new((context))) [INFO] [stdout] 312 + context: Arc::new(Mutex::new(context)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/commands.rs:394:29 [INFO] [stdout] | [INFO] [stdout] 394 | let home_dir = env::home_dir() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/commands.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | pub type CallBack = Fn(HashMap, &mut Option, &HashMap) -> CommandResult>; [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 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 - pub type CallBack = Fn(HashMap, &mut Option, &HashMap) -> CommandResult>; [INFO] [stdout] 10 + pub type CallBack = dyn Fn(HashMap, &mut Option, &HashMap) -> CommandResult>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/commands.rs:321:42 [INFO] [stdout] | [INFO] [stdout] 321 | let mut levels: Vec<&str> = line.trim_left().split_whitespace().collect(); [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/commands.rs:312:42 [INFO] [stdout] | [INFO] [stdout] 312 | context: Arc::new(Mutex::new((context))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 312 - context: Arc::new(Mutex::new((context))) [INFO] [stdout] 312 + context: Arc::new(Mutex::new(context)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/commands.rs:394:29 [INFO] [stdout] | [INFO] [stdout] 394 | let home_dir = env::home_dir() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/commands.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | pub type CallBack = Fn(HashMap, &mut Option, &HashMap) -> CommandResult>; [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 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 - pub type CallBack = Fn(HashMap, &mut Option, &HashMap) -> CommandResult>; [INFO] [stdout] 10 + pub type CallBack = dyn Fn(HashMap, &mut Option, &HashMap) -> CommandResult>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> examples/example.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | fn world(args: HashMap, o_context: &mut Option, history: &HashMap) -> CommandResult> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o_context` [INFO] [stdout] --> examples/example.rs:12:39 [INFO] [stdout] | [INFO] [stdout] 12 | fn world(args: HashMap, o_context: &mut Option, history: &HashMap) -> CommandResult> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_o_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o_context` [INFO] [stdout] --> examples/example.rs:20:42 [INFO] [stdout] | [INFO] [stdout] 20 | fn darkness(args: HashMap, o_context: &mut Option, history: &HashMap) -> CommandResult examples/example.rs:20:75 [INFO] [stdout] | [INFO] [stdout] 20 | ...text: &mut Option, history: &HashMap) -> CommandResult> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o_context` [INFO] [stdout] --> examples/example.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | fn new_context(args: HashMap, o_context: &mut Option, history: &HashMap) -> CommandResult examples/example.rs:30:78 [INFO] [stdout] | [INFO] [stdout] 30 | ...text: &mut Option, history: &HashMap) -> CommandResult> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stdout] --> src/commands.rs:321:42 [INFO] [stdout] | [INFO] [stdout] 321 | let mut levels: Vec<&str> = line.trim_left().split_whitespace().collect(); [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/example.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let mut context = Context::default(); [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] --> examples/example.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut o_context = Some(context); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `memory` [INFO] [stdout] --> examples/example.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | memory: Option [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Context` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> examples/example.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Default)] [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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.84s [INFO] running `Command { std: "docker" "inspect" "40d7390e0ddd6fdf14f15a3e65efd789014ae3ce9601dd313e87e75489c2daa2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40d7390e0ddd6fdf14f15a3e65efd789014ae3ce9601dd313e87e75489c2daa2", kill_on_drop: false }` [INFO] [stdout] 40d7390e0ddd6fdf14f15a3e65efd789014ae3ce9601dd313e87e75489c2daa2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "+1.60.0" "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] 33d1f2a31b0a66820ccaa0c3e5da2bfaa24242224047b56e8fce9b68481fed19 [INFO] running `Command { std: "docker" "start" "-a" "33d1f2a31b0a66820ccaa0c3e5da2bfaa24242224047b56e8fce9b68481fed19", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/commands.rs:312:42 [INFO] [stderr] | [INFO] [stderr] 312 | context: Arc::new(Mutex::new((context))) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 312 - context: Arc::new(Mutex::new((context))) [INFO] [stderr] 312 + context: Arc::new(Mutex::new(context)) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stderr] --> src/commands.rs:394:29 [INFO] [stderr] | [INFO] [stderr] 394 | let home_dir = env::home_dir() [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/commands.rs:10:24 [INFO] [stderr] | [INFO] [stderr] 10 | pub type CallBack = Fn(HashMap, &mut Option, &HashMap) -> CommandResult>; [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 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 10 - pub type CallBack = Fn(HashMap, &mut Option, &HashMap) -> CommandResult>; [INFO] [stderr] 10 + pub type CallBack = dyn Fn(HashMap, &mut Option, &HashMap) -> CommandResult>; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [INFO] [stderr] --> src/commands.rs:321:42 [INFO] [stderr] | [INFO] [stderr] 321 | let mut levels: Vec<&str> = line.trim_left().split_whitespace().collect(); [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start` [INFO] [stderr] [INFO] [stderr] warning: `tshell` (lib) generated 4 warnings [INFO] [stderr] warning: `tshell` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> examples/example.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | fn world(args: HashMap, o_context: &mut Option, history: &HashMap) -> CommandResult> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `o_context` [INFO] [stderr] --> examples/example.rs:12:39 [INFO] [stderr] | [INFO] [stderr] 12 | fn world(args: HashMap, o_context: &mut Option, history: &HashMap) -> CommandResult> { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_o_context` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `o_context` [INFO] [stderr] --> examples/example.rs:20:42 [INFO] [stderr] | [INFO] [stderr] 20 | fn darkness(args: HashMap, o_context: &mut Option, history: &HashMap) -> CommandResult examples/example.rs:20:75 [INFO] [stderr] | [INFO] [stderr] 20 | ...text: &mut Option, history: &HashMap) -> CommandResult> { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `o_context` [INFO] [stderr] --> examples/example.rs:30:45 [INFO] [stderr] | [INFO] [stderr] 30 | fn new_context(args: HashMap, o_context: &mut Option, history: &HashMap) -> CommandResult examples/example.rs:30:78 [INFO] [stderr] | [INFO] [stderr] 30 | ...text: &mut Option, history: &HashMap) -> CommandResult> { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> examples/example.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 42 | let mut context = Context::default(); [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] --> examples/example.rs:43:9 [INFO] [stderr] | [INFO] [stderr] 43 | let mut o_context = Some(context); [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: field is never read: `memory` [INFO] [stderr] --> examples/example.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | memory: Option [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Context` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> examples/example.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | #[derive(Debug, Default)] [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: `tshell` (example "example") generated 9 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/tshell-044f88acc774200f) [INFO] [stderr] Doc-tests tshell [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> /opt/rustwide/workdir/src/commands.rs:312:42 [INFO] [stderr] | [INFO] [stderr] 312 | context: Arc::new(Mutex::new((context))) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 312 - context: Arc::new(Mutex::new((context))) [INFO] [stderr] 312 + context: Arc::new(Mutex::new(context)) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stdout] [INFO] [stderr] [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" "33d1f2a31b0a66820ccaa0c3e5da2bfaa24242224047b56e8fce9b68481fed19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33d1f2a31b0a66820ccaa0c3e5da2bfaa24242224047b56e8fce9b68481fed19", kill_on_drop: false }` [INFO] [stdout] 33d1f2a31b0a66820ccaa0c3e5da2bfaa24242224047b56e8fce9b68481fed19