[INFO] cloning repository https://github.com/mostafa630/rusty_shell
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mostafa630/rusty_shell" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmostafa630%2Frusty_shell", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmostafa630%2Frusty_shell'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] eb1b91d325f9653914166c45a66e3499e46d1aeb
[INFO] checking mostafa630/rusty_shell against eca445e5ae4a6679cc27d3a09106ce245e13a5a6 for pr-162478
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmostafa630%2Frusty_shell" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/mostafa630/rusty_shell
[INFO] finished tweaking git repo https://github.com/mostafa630/rusty_shell
[INFO] tweaked toml for git repo https://github.com/mostafa630/rusty_shell written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/mostafa630/rusty_shell on toolchain eca445e5ae4a6679cc27d3a09106ce245e13a5a6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/mostafa630/rusty_shell 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" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded thiserror v1.0.63
[INFO] [stderr]   Downloaded thiserror-impl v1.0.63
[INFO] [stderr]   Downloaded endian-type v0.1.2
[INFO] [stderr]   Downloaded nibble_vec v0.1.0
[INFO] [stderr]   Downloaded clipboard-win v4.5.0
[INFO] [stderr]   Downloaded fd-lock v3.0.13
[INFO] [stderr]   Downloaded rustyline v12.0.0
[INFO] [stderr]   Downloaded radix_trie v0.2.1
[INFO] [stderr]   Downloaded syn v2.0.75
[INFO] [stderr]   Downloaded libc v0.2.177
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] d3a4f89f7f6d51a9e325c490b8dabb4897efb39721890636df9141f6e6e40b7f
[INFO] running `Command { std: "docker" "start" "d3a4f89f7f6d51a9e325c490b8dabb4897efb39721890636df9141f6e6e40b7f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d3a4f89f7f6d51a9e325c490b8dabb4897efb39721890636df9141f6e6e40b7f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d3a4f89f7f6d51a9e325c490b8dabb4897efb39721890636df9141f6e6e40b7f" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d3a4f89f7f6d51a9e325c490b8dabb4897efb39721890636df9141f6e6e40b7f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d3a4f89f7f6d51a9e325c490b8dabb4897efb39721890636df9141f6e6e40b7f" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling rustix v0.38.44
[INFO] [stderr]    Compiling libc v0.2.177
[INFO] [stderr]     Checking linux-raw-sys v0.4.15
[INFO] [stderr]     Checking smallvec v1.15.1
[INFO] [stderr]    Compiling anyhow v1.0.86
[INFO] [stderr]    Compiling thiserror v1.0.63
[INFO] [stderr]     Checking bitflags v1.3.2
[INFO] [stderr]     Checking endian-type v0.1.2
[INFO] [stderr]     Checking log v0.4.28
[INFO] [stderr]     Checking home v0.5.12
[INFO] [stderr]     Checking unicode-segmentation v1.12.0
[INFO] [stderr]     Checking nibble_vec v0.1.0
[INFO] [stderr]     Checking unicode-width v0.1.14
[INFO] [stderr]     Checking bytes v1.7.1
[INFO] [stderr]     Checking radix_trie v0.2.1
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling syn v2.0.75
[INFO] [stderr]     Checking fd-lock v3.0.13
[INFO] [stderr]     Checking nix v0.26.4
[INFO] [stderr]    Compiling thiserror-impl v1.0.63
[INFO] [stderr]     Checking rustyline v12.0.0
[INFO] [stderr]     Checking codecrafters-shell v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::fmt::format`
[INFO] [stdout]  --> src/command.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt::format;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `File` and `self`
[INFO] [stdout]  --> src/command.rs:2:15
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::{self, File};
[INFO] [stdout]   |               ^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/command.rs:3:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::{self, Write};
[INFO] [stdout]   |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]  --> src/command.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::path::Path;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::format`
[INFO] [stdout]  --> src/command.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt::format;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `File` and `self`
[INFO] [stdout]  --> src/command.rs:2:15
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::{self, File};
[INFO] [stdout]   |               ^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/command.rs:3:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::{self, Write};
[INFO] [stdout]   |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]  --> src/command.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::path::Path;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ctx`
[INFO] [stdout]   --> src/auto_complete.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |         ctx: &Context<'_>,
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout]   --> src/auto_complete.rs:59:19
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn get(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResu...
[INFO] [stdout]    |                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]   --> src/auto_complete.rs:59:33
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn get(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResu...
[INFO] [stdout]    |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `line`
[INFO] [stdout]   --> src/auto_complete.rs:63:23
[INFO] [stdout]    |
[INFO] [stdout] 63 |     fn add(&mut self, line: &str) -> rustyline::Result<bool> {
[INFO] [stdout]    |                       ^^^^ help: if this is intentional, prefix it with an underscore: `_line`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `line`
[INFO] [stdout]   --> src/auto_complete.rs:67:29
[INFO] [stdout]    |
[INFO] [stdout] 67 |     fn add_owned(&mut self, line: String) -> rustyline::Result<bool> {
[INFO] [stdout]    |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_line`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `len`
[INFO] [stdout]   --> src/auto_complete.rs:79:31
[INFO] [stdout]    |
[INFO] [stdout] 79 |     fn set_max_len(&mut self, len: usize) -> rustyline::Result<()> {
[INFO] [stdout]    |                               ^^^ help: if this is intentional, prefix it with an underscore: `_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `yes`
[INFO] [stdout]   --> src/auto_complete.rs:83:31
[INFO] [stdout]    |
[INFO] [stdout] 83 |     fn ignore_dups(&mut self, yes: bool) -> rustyline::Result<()> {
[INFO] [stdout]    |                               ^^^ help: if this is intentional, prefix it with an underscore: `_yes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `yes`
[INFO] [stdout]   --> src/auto_complete.rs:87:32
[INFO] [stdout]    |
[INFO] [stdout] 87 |     fn ignore_space(&mut self, yes: bool) {
[INFO] [stdout]    |                                ^^^ help: if this is intentional, prefix it with an underscore: `_yes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/auto_complete.rs:91:24
[INFO] [stdout]    |
[INFO] [stdout] 91 |     fn save(&mut self, path: &std::path::Path) -> rustyline::Result<()> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/auto_complete.rs:95:26
[INFO] [stdout]    |
[INFO] [stdout] 95 |     fn append(&mut self, path: &std::path::Path) -> rustyline::Result<()> {
[INFO] [stdout]    |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/auto_complete.rs:99:24
[INFO] [stdout]    |
[INFO] [stdout] 99 |     fn load(&mut self, path: &std::path::Path) -> rustyline::Result<()> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `term`
[INFO] [stdout]    --> src/auto_complete.rs:109:9
[INFO] [stdout]     |
[INFO] [stdout] 109 |         term: &str,
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `start`
[INFO] [stdout]    --> src/auto_complete.rs:110:9
[INFO] [stdout]     |
[INFO] [stdout] 110 |         start: usize,
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_start`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]    --> src/auto_complete.rs:111:9
[INFO] [stdout]     |
[INFO] [stdout] 111 |         dir: rustyline::history::SearchDirection,
[INFO] [stdout]     |         ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `term`
[INFO] [stdout]    --> src/auto_complete.rs:118:9
[INFO] [stdout]     |
[INFO] [stdout] 118 |         term: &str,
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `start`
[INFO] [stdout]    --> src/auto_complete.rs:119:9
[INFO] [stdout]     |
[INFO] [stdout] 119 |         start: usize,
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_start`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]    --> src/auto_complete.rs:120:9
[INFO] [stdout]     |
[INFO] [stdout] 120 |         dir: rustyline::history::SearchDirection,
[INFO] [stdout]     |         ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `needs_newline` is never used
[INFO] [stdout]    --> src/command.rs:190:4
[INFO] [stdout]     |
[INFO] [stdout] 190 | fn needs_newline(output: &str) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `builtin_commands` should have an upper case name
[INFO] [stdout]  --> src/command.rs:8:11
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub const builtin_commands: [&str; 6] = ["exit", "echo", "type", "pwd", "cd","clear"];
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `BUILTIN_COMMANDS`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/auto_complete.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 59 | ...et(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResult>> {
[INFO] [stdout]    |       ^^^^^ the lifetime is elided here                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn get(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResult<'_>>> {
[INFO] [stdout]    |                                                                                                                                       ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/auto_complete.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 108 |         &self,
[INFO] [stdout]     |         ^^^^^ the lifetime is elided here
[INFO] [stdout] ...
[INFO] [stdout] 112 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult>> {
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 112 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult<'_>>> {
[INFO] [stdout]     |                                                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/auto_complete.rs:117:9
[INFO] [stdout]     |
[INFO] [stdout] 117 |         &self,
[INFO] [stdout]     |         ^^^^^ the lifetime is elided here
[INFO] [stdout] ...
[INFO] [stdout] 121 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult>> {
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 121 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult<'_>>> {
[INFO] [stdout]     |                                                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ctx`
[INFO] [stdout]   --> src/auto_complete.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |         ctx: &Context<'_>,
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout]   --> src/auto_complete.rs:59:19
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn get(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResu...
[INFO] [stdout]    |                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]   --> src/auto_complete.rs:59:33
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn get(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResu...
[INFO] [stdout]    |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `line`
[INFO] [stdout]   --> src/auto_complete.rs:63:23
[INFO] [stdout]    |
[INFO] [stdout] 63 |     fn add(&mut self, line: &str) -> rustyline::Result<bool> {
[INFO] [stdout]    |                       ^^^^ help: if this is intentional, prefix it with an underscore: `_line`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `line`
[INFO] [stdout]   --> src/auto_complete.rs:67:29
[INFO] [stdout]    |
[INFO] [stdout] 67 |     fn add_owned(&mut self, line: String) -> rustyline::Result<bool> {
[INFO] [stdout]    |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_line`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `len`
[INFO] [stdout]   --> src/auto_complete.rs:79:31
[INFO] [stdout]    |
[INFO] [stdout] 79 |     fn set_max_len(&mut self, len: usize) -> rustyline::Result<()> {
[INFO] [stdout]    |                               ^^^ help: if this is intentional, prefix it with an underscore: `_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `yes`
[INFO] [stdout]   --> src/auto_complete.rs:83:31
[INFO] [stdout]    |
[INFO] [stdout] 83 |     fn ignore_dups(&mut self, yes: bool) -> rustyline::Result<()> {
[INFO] [stdout]    |                               ^^^ help: if this is intentional, prefix it with an underscore: `_yes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `yes`
[INFO] [stdout]   --> src/auto_complete.rs:87:32
[INFO] [stdout]    |
[INFO] [stdout] 87 |     fn ignore_space(&mut self, yes: bool) {
[INFO] [stdout]    |                                ^^^ help: if this is intentional, prefix it with an underscore: `_yes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/auto_complete.rs:91:24
[INFO] [stdout]    |
[INFO] [stdout] 91 |     fn save(&mut self, path: &std::path::Path) -> rustyline::Result<()> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/auto_complete.rs:95:26
[INFO] [stdout]    |
[INFO] [stdout] 95 |     fn append(&mut self, path: &std::path::Path) -> rustyline::Result<()> {
[INFO] [stdout]    |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/auto_complete.rs:99:24
[INFO] [stdout]    |
[INFO] [stdout] 99 |     fn load(&mut self, path: &std::path::Path) -> rustyline::Result<()> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `term`
[INFO] [stdout]    --> src/auto_complete.rs:109:9
[INFO] [stdout]     |
[INFO] [stdout] 109 |         term: &str,
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `start`
[INFO] [stdout]    --> src/auto_complete.rs:110:9
[INFO] [stdout]     |
[INFO] [stdout] 110 |         start: usize,
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_start`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]    --> src/auto_complete.rs:111:9
[INFO] [stdout]     |
[INFO] [stdout] 111 |         dir: rustyline::history::SearchDirection,
[INFO] [stdout]     |         ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `term`
[INFO] [stdout]    --> src/auto_complete.rs:118:9
[INFO] [stdout]     |
[INFO] [stdout] 118 |         term: &str,
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `start`
[INFO] [stdout]    --> src/auto_complete.rs:119:9
[INFO] [stdout]     |
[INFO] [stdout] 119 |         start: usize,
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_start`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]    --> src/auto_complete.rs:120:9
[INFO] [stdout]     |
[INFO] [stdout] 120 |         dir: rustyline::history::SearchDirection,
[INFO] [stdout]     |         ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `needs_newline` is never used
[INFO] [stdout]    --> src/command.rs:190:4
[INFO] [stdout]     |
[INFO] [stdout] 190 | fn needs_newline(output: &str) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `builtin_commands` should have an upper case name
[INFO] [stdout]  --> src/command.rs:8:11
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub const builtin_commands: [&str; 6] = ["exit", "echo", "type", "pwd", "cd","clear"];
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `BUILTIN_COMMANDS`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/auto_complete.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 59 | ...et(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResult>> {
[INFO] [stdout]    |       ^^^^^ the lifetime is elided here                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn get(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResult<'_>>> {
[INFO] [stdout]    |                                                                                                                                       ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/auto_complete.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 108 |         &self,
[INFO] [stdout]     |         ^^^^^ the lifetime is elided here
[INFO] [stdout] ...
[INFO] [stdout] 112 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult>> {
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 112 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult<'_>>> {
[INFO] [stdout]     |                                                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/auto_complete.rs:117:9
[INFO] [stdout]     |
[INFO] [stdout] 117 |         &self,
[INFO] [stdout]     |         ^^^^^ the lifetime is elided here
[INFO] [stdout] ...
[INFO] [stdout] 121 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult>> {
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 121 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult<'_>>> {
[INFO] [stdout]     |                                                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::format`
[INFO] [stdout]  --> src/command.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt::format;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `File` and `self`
[INFO] [stdout]  --> src/command.rs:2:15
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::{self, File};
[INFO] [stdout]   |               ^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/command.rs:3:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::{self, Write};
[INFO] [stdout]   |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]  --> src/command.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::path::Path;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::format`
[INFO] [stdout]  --> src/command.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt::format;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `File` and `self`
[INFO] [stdout]  --> src/command.rs:2:15
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::{self, File};
[INFO] [stdout]   |               ^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/command.rs:3:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::{self, Write};
[INFO] [stdout]   |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]  --> src/command.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::path::Path;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ctx`
[INFO] [stdout]   --> src/auto_complete.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |         ctx: &Context<'_>,
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout]   --> src/auto_complete.rs:59:19
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn get(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResu...
[INFO] [stdout]    |                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ctx`
[INFO] [stdout]   --> src/auto_complete.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |         ctx: &Context<'_>,
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout]   --> src/auto_complete.rs:59:19
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn get(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResu...
[INFO] [stdout]    |                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]   --> src/auto_complete.rs:59:33
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn get(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResu...
[INFO] [stdout]    |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `line`
[INFO] [stdout]   --> src/auto_complete.rs:63:23
[INFO] [stdout]    |
[INFO] [stdout] 63 |     fn add(&mut self, line: &str) -> rustyline::Result<bool> {
[INFO] [stdout]    |                       ^^^^ help: if this is intentional, prefix it with an underscore: `_line`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `line`
[INFO] [stdout]   --> src/auto_complete.rs:67:29
[INFO] [stdout]    |
[INFO] [stdout] 67 |     fn add_owned(&mut self, line: String) -> rustyline::Result<bool> {
[INFO] [stdout]    |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_line`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `len`
[INFO] [stdout]   --> src/auto_complete.rs:79:31
[INFO] [stdout]    |
[INFO] [stdout] 79 |     fn set_max_len(&mut self, len: usize) -> rustyline::Result<()> {
[INFO] [stdout]    |                               ^^^ help: if this is intentional, prefix it with an underscore: `_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `yes`
[INFO] [stdout]   --> src/auto_complete.rs:83:31
[INFO] [stdout]    |
[INFO] [stdout] 83 |     fn ignore_dups(&mut self, yes: bool) -> rustyline::Result<()> {
[INFO] [stdout]    |                               ^^^ help: if this is intentional, prefix it with an underscore: `_yes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `yes`
[INFO] [stdout]   --> src/auto_complete.rs:87:32
[INFO] [stdout]    |
[INFO] [stdout] 87 |     fn ignore_space(&mut self, yes: bool) {
[INFO] [stdout]    |                                ^^^ help: if this is intentional, prefix it with an underscore: `_yes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]   --> src/auto_complete.rs:59:33
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn get(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResu...
[INFO] [stdout]    |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `line`
[INFO] [stdout]   --> src/auto_complete.rs:63:23
[INFO] [stdout]    |
[INFO] [stdout] 63 |     fn add(&mut self, line: &str) -> rustyline::Result<bool> {
[INFO] [stdout]    |                       ^^^^ help: if this is intentional, prefix it with an underscore: `_line`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `line`
[INFO] [stdout]   --> src/auto_complete.rs:67:29
[INFO] [stdout]    |
[INFO] [stdout] 67 |     fn add_owned(&mut self, line: String) -> rustyline::Result<bool> {
[INFO] [stdout]    |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_line`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `len`
[INFO] [stdout]   --> src/auto_complete.rs:79:31
[INFO] [stdout]    |
[INFO] [stdout] 79 |     fn set_max_len(&mut self, len: usize) -> rustyline::Result<()> {
[INFO] [stdout]    |                               ^^^ help: if this is intentional, prefix it with an underscore: `_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `yes`
[INFO] [stdout]   --> src/auto_complete.rs:83:31
[INFO] [stdout]    |
[INFO] [stdout] 83 |     fn ignore_dups(&mut self, yes: bool) -> rustyline::Result<()> {
[INFO] [stdout]    |                               ^^^ help: if this is intentional, prefix it with an underscore: `_yes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `yes`
[INFO] [stdout]   --> src/auto_complete.rs:87:32
[INFO] [stdout]    |
[INFO] [stdout] 87 |     fn ignore_space(&mut self, yes: bool) {
[INFO] [stdout]    |                                ^^^ help: if this is intentional, prefix it with an underscore: `_yes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/auto_complete.rs:91:24
[INFO] [stdout]    |
[INFO] [stdout] 91 |     fn save(&mut self, path: &std::path::Path) -> rustyline::Result<()> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/auto_complete.rs:95:26
[INFO] [stdout]    |
[INFO] [stdout] 95 |     fn append(&mut self, path: &std::path::Path) -> rustyline::Result<()> {
[INFO] [stdout]    |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/auto_complete.rs:99:24
[INFO] [stdout]    |
[INFO] [stdout] 99 |     fn load(&mut self, path: &std::path::Path) -> rustyline::Result<()> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `term`
[INFO] [stdout]    --> src/auto_complete.rs:109:9
[INFO] [stdout]     |
[INFO] [stdout] 109 |         term: &str,
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/auto_complete.rs:91:24
[INFO] [stdout]    |
[INFO] [stdout] 91 |     fn save(&mut self, path: &std::path::Path) -> rustyline::Result<()> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/auto_complete.rs:95:26
[INFO] [stdout]    |
[INFO] [stdout] 95 |     fn append(&mut self, path: &std::path::Path) -> rustyline::Result<()> {
[INFO] [stdout]    |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/auto_complete.rs:99:24
[INFO] [stdout]    |
[INFO] [stdout] 99 |     fn load(&mut self, path: &std::path::Path) -> rustyline::Result<()> {
[INFO] [stdout]    |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `start`
[INFO] [stdout]    --> src/auto_complete.rs:110:9
[INFO] [stdout]     |
[INFO] [stdout] 110 |         start: usize,
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_start`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]    --> src/auto_complete.rs:111:9
[INFO] [stdout]     |
[INFO] [stdout] 111 |         dir: rustyline::history::SearchDirection,
[INFO] [stdout]     |         ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `term`
[INFO] [stdout]    --> src/auto_complete.rs:109:9
[INFO] [stdout]     |
[INFO] [stdout] 109 |         term: &str,
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `start`
[INFO] [stdout]    --> src/auto_complete.rs:110:9
[INFO] [stdout]     |
[INFO] [stdout] 110 |         start: usize,
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_start`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `term`
[INFO] [stdout]    --> src/auto_complete.rs:118:9
[INFO] [stdout]     |
[INFO] [stdout] 118 |         term: &str,
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `start`
[INFO] [stdout]    --> src/auto_complete.rs:119:9
[INFO] [stdout]     |
[INFO] [stdout] 119 |         start: usize,
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_start`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]    --> src/auto_complete.rs:120:9
[INFO] [stdout]     |
[INFO] [stdout] 120 |         dir: rustyline::history::SearchDirection,
[INFO] [stdout]     |         ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]    --> src/auto_complete.rs:111:9
[INFO] [stdout]     |
[INFO] [stdout] 111 |         dir: rustyline::history::SearchDirection,
[INFO] [stdout]     |         ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `term`
[INFO] [stdout]    --> src/auto_complete.rs:118:9
[INFO] [stdout]     |
[INFO] [stdout] 118 |         term: &str,
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_term`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `start`
[INFO] [stdout]    --> src/auto_complete.rs:119:9
[INFO] [stdout]     |
[INFO] [stdout] 119 |         start: usize,
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_start`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]    --> src/auto_complete.rs:120:9
[INFO] [stdout]     |
[INFO] [stdout] 120 |         dir: rustyline::history::SearchDirection,
[INFO] [stdout]     |         ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `needs_newline` is never used
[INFO] [stdout]    --> src/command.rs:190:4
[INFO] [stdout]     |
[INFO] [stdout] 190 | fn needs_newline(output: &str) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `needs_newline` is never used
[INFO] [stdout]    --> src/command.rs:190:4
[INFO] [stdout]     |
[INFO] [stdout] 190 | fn needs_newline(output: &str) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:35:17
[INFO] [stdout]    |
[INFO] [stdout] 35 |                 rl.add_history_entry(input_line);
[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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 35 |                 let _ = rl.add_history_entry(input_line);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:35:17
[INFO] [stdout]    |
[INFO] [stdout] 35 |                 rl.add_history_entry(input_line);
[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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 35 |                 let _ = rl.add_history_entry(input_line);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `builtin_commands` should have an upper case name
[INFO] [stdout]  --> src/command.rs:8:11
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub const builtin_commands: [&str; 6] = ["exit", "echo", "type", "pwd", "cd","clear"];
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `BUILTIN_COMMANDS`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `builtin_commands` should have an upper case name
[INFO] [stdout]  --> src/command.rs:8:11
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub const builtin_commands: [&str; 6] = ["exit", "echo", "type", "pwd", "cd","clear"];
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `BUILTIN_COMMANDS`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/auto_complete.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 59 | ...et(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResult>> {
[INFO] [stdout]    |       ^^^^^ the lifetime is elided here                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn get(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResult<'_>>> {
[INFO] [stdout]    |                                                                                                                                       ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/auto_complete.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 59 | ...et(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResult>> {
[INFO] [stdout]    |       ^^^^^ the lifetime is elided here                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fn get(&self, index: usize, dir: rustyline::history::SearchDirection) -> rustyline::Result<Option<rustyline::history::SearchResult<'_>>> {
[INFO] [stdout]    |                                                                                                                                       ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/auto_complete.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 108 |         &self,
[INFO] [stdout]     |         ^^^^^ the lifetime is elided here
[INFO] [stdout] ...
[INFO] [stdout] 112 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult>> {
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 112 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult<'_>>> {
[INFO] [stdout]     |                                                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/auto_complete.rs:108:9
[INFO] [stdout]     |
[INFO] [stdout] 108 |         &self,
[INFO] [stdout]     |         ^^^^^ the lifetime is elided here
[INFO] [stdout] ...
[INFO] [stdout] 112 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult>> {
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 112 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult<'_>>> {
[INFO] [stdout]     |                                                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/auto_complete.rs:117:9
[INFO] [stdout]     |
[INFO] [stdout] 117 |         &self,
[INFO] [stdout]     |         ^^^^^ the lifetime is elided here
[INFO] [stdout] ...
[INFO] [stdout] 121 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult>> {
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 121 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult<'_>>> {
[INFO] [stdout]     |                                                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/auto_complete.rs:117:9
[INFO] [stdout]     |
[INFO] [stdout] 117 |         &self,
[INFO] [stdout]     |         ^^^^^ the lifetime is elided here
[INFO] [stdout] ...
[INFO] [stdout] 121 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult>> {
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 121 |     ) -> rustyline::Result<Option<rustyline::history::SearchResult<'_>>> {
[INFO] [stdout]     |                                                                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: unused dependency `anyhow`
[INFO] [stderr]  --> Cargo.toml:2:1
[INFO] [stderr]   |
[INFO] [stderr] 2 | anyhow = "1.0.68"
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `cargo::unused_dependencies` is set to `warn` by default
[INFO] [stderr] help: consider removing the dependency on `anyhow`
[INFO] [stderr] warning: unused dependency `bytes`
[INFO] [stderr]  --> Cargo.toml:3:1
[INFO] [stderr]   |
[INFO] [stderr] 3 | bytes = "1.3.0"
[INFO] [stderr]   | ^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr] help: consider removing the dependency on `bytes`
[INFO] [stderr] warning: unused dependency `thiserror`
[INFO] [stderr]  --> Cargo.toml:5:1
[INFO] [stderr]   |
[INFO] [stderr] 5 | thiserror = "1.0.38"
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr] help: consider removing the dependency on `thiserror`
[INFO] [stderr] warning: `codecrafters-shell` (manifest) generated 3 warnings
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.61s
[INFO] running `Command { std: "docker" "inspect" "d3a4f89f7f6d51a9e325c490b8dabb4897efb39721890636df9141f6e6e40b7f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d3a4f89f7f6d51a9e325c490b8dabb4897efb39721890636df9141f6e6e40b7f", kill_on_drop: false }`
[INFO] [stdout] d3a4f89f7f6d51a9e325c490b8dabb4897efb39721890636df9141f6e6e40b7f
