[INFO] cloning repository https://github.com/Zelmoghazy/simple-shell-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Zelmoghazy/simple-shell-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZelmoghazy%2Fsimple-shell-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZelmoghazy%2Fsimple-shell-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 64d85df4cbc7ed31d041d60278ecd34a5d16dd69 [INFO] checking Zelmoghazy/simple-shell-rust against try#e658ebe4ffa1b515cd2ef06dd428d0d063e2ae6b for pr-144896 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZelmoghazy%2Fsimple-shell-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Zelmoghazy/simple-shell-rust [INFO] finished tweaking git repo https://github.com/Zelmoghazy/simple-shell-rust [INFO] tweaked toml for git repo https://github.com/Zelmoghazy/simple-shell-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Zelmoghazy/simple-shell-rust on toolchain e658ebe4ffa1b515cd2ef06dd428d0d063e2ae6b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e658ebe4ffa1b515cd2ef06dd428d0d063e2ae6b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Zelmoghazy/simple-shell-rust 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" "+e658ebe4ffa1b515cd2ef06dd428d0d063e2ae6b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+e658ebe4ffa1b515cd2ef06dd428d0d063e2ae6b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 34180ec31393cf5685e2db520ec394f17f4c088889ae3f292bf1d6d03c82003b [INFO] running `Command { std: "docker" "start" "-a" "34180ec31393cf5685e2db520ec394f17f4c088889ae3f292bf1d6d03c82003b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "34180ec31393cf5685e2db520ec394f17f4c088889ae3f292bf1d6d03c82003b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34180ec31393cf5685e2db520ec394f17f4c088889ae3f292bf1d6d03c82003b", kill_on_drop: false }` [INFO] [stdout] 34180ec31393cf5685e2db520ec394f17f4c088889ae3f292bf1d6d03c82003b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+e658ebe4ffa1b515cd2ef06dd428d0d063e2ae6b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02721e8d85b81418eb3c6bd60278657633790697b89fce72af66dd8a47c1c210 [INFO] running `Command { std: "docker" "start" "-a" "02721e8d85b81418eb3c6bd60278657633790697b89fce72af66dd8a47c1c210", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking crossterm v0.25.0 [INFO] [stderr] Checking rust_shell v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `stdin` [INFO] [stdout] --> main.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, stdout, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stdin` [INFO] [stdout] --> main.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, stdout, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> main.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | for i in 1..=5 { [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] --> main.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | for i in 1..=5 { [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: `current_input` [INFO] [stdout] --> main.rs:132:50 [INFO] [stdout] | [INFO] [stdout] 132 | fn display_suggestions(history: &CommandHistory, current_input: &str, cursor_pos: usize) [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_input` [INFO] [stdout] --> main.rs:132:50 [INFO] [stdout] | [INFO] [stdout] 132 | fn display_suggestions(history: &CommandHistory, current_input: &str, cursor_pos: usize) [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cursor_pos` [INFO] [stdout] --> main.rs:132:71 [INFO] [stdout] | [INFO] [stdout] 132 | fn display_suggestions(history: &CommandHistory, current_input: &str, cursor_pos: usize) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cursor_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cursor_pos` [INFO] [stdout] --> main.rs:132:71 [INFO] [stdout] | [INFO] [stdout] 132 | fn display_suggestions(history: &CommandHistory, current_input: &str, cursor_pos: usize) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cursor_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> main.rs:404:25 [INFO] [stdout] | [INFO] [stdout] 404 | KeyCode::Char(_) | KeyCode::Backspace | KeyCode::Delete => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> main.rs:404:25 [INFO] [stdout] | [INFO] [stdout] 332 | KeyCode::Char(c) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 338 | KeyCode::Backspace => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 346 | KeyCode::Delete => { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 404 | KeyCode::Char(_) | KeyCode::Backspace | KeyCode::Delete => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> main.rs:404:25 [INFO] [stdout] | [INFO] [stdout] 404 | KeyCode::Char(_) | KeyCode::Backspace | KeyCode::Delete => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> main.rs:404:25 [INFO] [stdout] | [INFO] [stdout] 332 | KeyCode::Char(c) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 338 | KeyCode::Backspace => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 346 | KeyCode::Delete => { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 404 | KeyCode::Char(_) | KeyCode::Backspace | KeyCode::Delete => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> main.rs:425:13 [INFO] [stdout] | [INFO] [stdout] 425 | let mut input = input.trim().to_string(); [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: methods `previous` and `next` are never used [INFO] [stdout] --> main.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl CommandHistory [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | fn previous(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn next(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> main.rs:425:13 [INFO] [stdout] | [INFO] [stdout] 425 | let mut input = input.trim().to_string(); [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: methods `previous` and `next` are never used [INFO] [stdout] --> main.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl CommandHistory [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | fn previous(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn next(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.12s [INFO] running `Command { std: "docker" "inspect" "02721e8d85b81418eb3c6bd60278657633790697b89fce72af66dd8a47c1c210", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02721e8d85b81418eb3c6bd60278657633790697b89fce72af66dd8a47c1c210", kill_on_drop: false }` [INFO] [stdout] 02721e8d85b81418eb3c6bd60278657633790697b89fce72af66dd8a47c1c210