[INFO] cloning repository https://github.com/timfeid/shaiz [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/timfeid/shaiz" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftimfeid%2Fshaiz", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftimfeid%2Fshaiz'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cb8361eabbd07f083e2792801ccc01a3f6e298b4 [INFO] testing timfeid/shaiz against try#9f93af291970322f4f1c6315ccde4d7078201159 for pr-146098-6 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftimfeid%2Fshaiz" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/timfeid/shaiz [INFO] finished tweaking git repo https://github.com/timfeid/shaiz [INFO] tweaked toml for git repo https://github.com/timfeid/shaiz written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/timfeid/shaiz on toolchain 9f93af291970322f4f1c6315ccde4d7078201159 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/timfeid/shaiz 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" "+9f93af291970322f4f1c6315ccde4d7078201159" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cc3f9c46c384aad8ee6f365a6173aa1a510e8414055589b4d5b62456c61c5687 [INFO] running `Command { std: "docker" "start" "-a" "cc3f9c46c384aad8ee6f365a6173aa1a510e8414055589b4d5b62456c61c5687", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cc3f9c46c384aad8ee6f365a6173aa1a510e8414055589b4d5b62456c61c5687", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc3f9c46c384aad8ee6f365a6173aa1a510e8414055589b4d5b62456c61c5687", kill_on_drop: false }` [INFO] [stdout] cc3f9c46c384aad8ee6f365a6173aa1a510e8414055589b4d5b62456c61c5687 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2319666a56b9ef62366018f691070825aeb44b99a17a3bf8d509767733554488 [INFO] running `Command { std: "docker" "start" "-a" "2319666a56b9ef62366018f691070825aeb44b99a17a3bf8d509767733554488", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.164 [INFO] [stderr] Compiling bytes v1.8.0 [INFO] [stderr] Compiling itoa v1.0.13 [INFO] [stderr] Compiling litemap v0.7.3 [INFO] [stderr] Compiling cc v1.2.1 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling hashbrown v0.15.1 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling rustix v0.38.41 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling rustls-pki-types v1.10.0 [INFO] [stderr] Compiling numtoa v0.2.4 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling termion v4.0.3 [INFO] [stderr] Compiling tokio v1.41.1 [INFO] [stderr] Compiling tempfile v3.14.0 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.4 [INFO] [stderr] Compiling yoke-derive v0.7.4 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling h2 v0.4.7 [INFO] [stderr] Compiling zerofrom v0.1.4 [INFO] [stderr] Compiling yoke v0.7.4 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling hyper v1.5.1 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.3 [INFO] [stderr] Compiling reqwest v0.12.9 [INFO] [stderr] Compiling gptshell v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use regex::Regex; [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 import: `serde::Deserialize` [INFO] [stdout] --> src/context.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::Deserialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/context.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 45 | Ok(ForkResult::Child) => { [INFO] [stdout] | __________________________________^ [INFO] [stdout] 46 | | // Child process: Replace stdin, stdout, stderr with the slave PTY [INFO] [stdout] 47 | | dup2(slave_fd.as_raw_fd(), 0).expect("Failed to dup2 stdin"); [INFO] [stdout] 48 | | dup2(slave_fd.as_raw_fd(), 1).expect("Failed to dup2 stdout"); [INFO] [stdout] ... | [INFO] [stdout] 55 | | execvp(&zsh, &[&zsh]).expect("Failed to exec zsh"); [INFO] [stdout] | | -------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 56 | | } [INFO] [stdout] | |_________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] note: this expression has type `Infallible`, which is uninhabited [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | execvp(&zsh, &[&zsh]).expect("Failed to exec zsh"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_command_schema` is never used [INFO] [stdout] --> src/main.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn validate_command_schema(schema: &CommandSchema) -> Result<(), String> { [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 `parse_command` is never used [INFO] [stdout] --> src/main.rs:165:4 [INFO] [stdout] | [INFO] [stdout] 165 | fn parse_command( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `display_command_preview` is never used [INFO] [stdout] --> src/main.rs:237:4 [INFO] [stdout] | [INFO] [stdout] 237 | fn display_command_preview(stdout: &mut W, schema: &CommandSchema, rows: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.68s [INFO] running `Command { std: "docker" "inspect" "2319666a56b9ef62366018f691070825aeb44b99a17a3bf8d509767733554488", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2319666a56b9ef62366018f691070825aeb44b99a17a3bf8d509767733554488", kill_on_drop: false }` [INFO] [stdout] 2319666a56b9ef62366018f691070825aeb44b99a17a3bf8d509767733554488 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 44a6054631b01f0a277de506d34f10c2354059fdabfe89f840fc5b95d64d7bee [INFO] running `Command { std: "docker" "start" "-a" "44a6054631b01f0a277de506d34f10c2354059fdabfe89f840fc5b95d64d7bee", kill_on_drop: false }` [INFO] [stderr] Compiling gptshell v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use regex::Regex; [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 import: `serde::Deserialize` [INFO] [stdout] --> src/context.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::Deserialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/context.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/context.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 45 | Ok(ForkResult::Child) => { [INFO] [stdout] | __________________________________^ [INFO] [stdout] 46 | | // Child process: Replace stdin, stdout, stderr with the slave PTY [INFO] [stdout] 47 | | dup2(slave_fd.as_raw_fd(), 0).expect("Failed to dup2 stdin"); [INFO] [stdout] 48 | | dup2(slave_fd.as_raw_fd(), 1).expect("Failed to dup2 stdout"); [INFO] [stdout] ... | [INFO] [stdout] 55 | | execvp(&zsh, &[&zsh]).expect("Failed to exec zsh"); [INFO] [stdout] | | -------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 56 | | } [INFO] [stdout] | |_________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] note: this expression has type `Infallible`, which is uninhabited [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | execvp(&zsh, &[&zsh]).expect("Failed to exec zsh"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_command_schema` is never used [INFO] [stdout] --> src/main.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn validate_command_schema(schema: &CommandSchema) -> Result<(), String> { [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 `parse_command` is never used [INFO] [stdout] --> src/main.rs:165:4 [INFO] [stdout] | [INFO] [stdout] 165 | fn parse_command( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `display_command_preview` is never used [INFO] [stdout] --> src/main.rs:237:4 [INFO] [stdout] | [INFO] [stdout] 237 | fn display_command_preview(stdout: &mut W, schema: &CommandSchema, rows: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.12s [INFO] running `Command { std: "docker" "inspect" "44a6054631b01f0a277de506d34f10c2354059fdabfe89f840fc5b95d64d7bee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44a6054631b01f0a277de506d34f10c2354059fdabfe89f840fc5b95d64d7bee", kill_on_drop: false }` [INFO] [stdout] 44a6054631b01f0a277de506d34f10c2354059fdabfe89f840fc5b95d64d7bee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 95429e0285ce1bcb98ebab82541a5eb2d3b3f287c6b83e5a3982af99cc85852b [INFO] running `Command { std: "docker" "start" "-a" "95429e0285ce1bcb98ebab82541a5eb2d3b3f287c6b83e5a3982af99cc85852b", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `regex::Regex` [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use regex::Regex; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde::Deserialize` [INFO] [stderr] --> src/context.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use serde::Deserialize; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/context.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::Path` [INFO] [stderr] --> src/context.rs:126:9 [INFO] [stderr] | [INFO] [stderr] 126 | use std::path::Path; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/main.rs:45:34 [INFO] [stderr] | [INFO] [stderr] 45 | Ok(ForkResult::Child) => { [INFO] [stderr] | __________________________________^ [INFO] [stderr] 46 | | // Child process: Replace stdin, stdout, stderr with the slave PTY [INFO] [stderr] 47 | | dup2(slave_fd.as_raw_fd(), 0).expect("Failed to dup2 stdin"); [INFO] [stderr] 48 | | dup2(slave_fd.as_raw_fd(), 1).expect("Failed to dup2 stdout"); [INFO] [stderr] ... | [INFO] [stderr] 55 | | execvp(&zsh, &[&zsh]).expect("Failed to exec zsh"); [INFO] [stderr] | | -------------------------------------------------- any code following this expression is unreachable [INFO] [stderr] 56 | | } [INFO] [stderr] | |_________^ unreachable expression [INFO] [stderr] | [INFO] [stderr] note: this expression has type `Infallible`, which is uninhabited [INFO] [stderr] --> src/main.rs:55:13 [INFO] [stderr] | [INFO] [stderr] 55 | execvp(&zsh, &[&zsh]).expect("Failed to exec zsh"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `validate_command_schema` is never used [INFO] [stderr] --> src/main.rs:147:4 [INFO] [stderr] | [INFO] [stderr] 147 | fn validate_command_schema(schema: &CommandSchema) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `parse_command` is never used [INFO] [stderr] --> src/main.rs:165:4 [INFO] [stderr] | [INFO] [stderr] 165 | fn parse_command( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `display_command_preview` is never used [INFO] [stderr] --> src/main.rs:237:4 [INFO] [stderr] | [INFO] [stderr] 237 | fn display_command_preview(stdout: &mut W, schema: &CommandSchema, rows: u16) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `gptshell` (bin "gptshell" test) generated 8 warnings (run `cargo fix --bin "gptshell" -p gptshell --tests` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/gptshell-c117be872bc6e81f) [INFO] [stdout] running 4 tests [INFO] [stdout] test context::tests::test_detect_git_context_invalid_repo ... ok [INFO] [stdout] test context::tests::test_detect_git_context_outside_repo ... ok [INFO] [stdout] test context::tests::test_detect_git_context_inside_repo ... ok [INFO] [stdout] test context::tests::test_detect_git_context_no_git_installed ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "95429e0285ce1bcb98ebab82541a5eb2d3b3f287c6b83e5a3982af99cc85852b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "95429e0285ce1bcb98ebab82541a5eb2d3b3f287c6b83e5a3982af99cc85852b", kill_on_drop: false }` [INFO] [stdout] 95429e0285ce1bcb98ebab82541a5eb2d3b3f287c6b83e5a3982af99cc85852b