[INFO] cloning repository https://github.com/Lemminkyinen/lingua_cli_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Lemminkyinen/lingua_cli_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLemminkyinen%2Flingua_cli_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLemminkyinen%2Flingua_cli_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fa595832b8e7c154a83bbcc41bfa901477de8760 [INFO] testing Lemminkyinen/lingua_cli_rust against try#0abe69e6c16114311cc2700e972492e64d69c28f for pr-154065 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLemminkyinen%2Flingua_cli_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/Lemminkyinen/lingua_cli_rust [INFO] finished tweaking git repo https://github.com/Lemminkyinen/lingua_cli_rust [INFO] tweaked toml for git repo https://github.com/Lemminkyinen/lingua_cli_rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Lemminkyinen/lingua_cli_rust on toolchain 0abe69e6c16114311cc2700e972492e64d69c28f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Lemminkyinen/lingua_cli_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" "+0abe69e6c16114311cc2700e972492e64d69c28f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2376f8f6ad77206fe50714d7127eb94f2517b61208a81ff805920b57e36b5c4c [INFO] running `Command { std: "docker" "start" "-a" "2376f8f6ad77206fe50714d7127eb94f2517b61208a81ff805920b57e36b5c4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2376f8f6ad77206fe50714d7127eb94f2517b61208a81ff805920b57e36b5c4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2376f8f6ad77206fe50714d7127eb94f2517b61208a81ff805920b57e36b5c4c", kill_on_drop: false }` [INFO] [stdout] 2376f8f6ad77206fe50714d7127eb94f2517b61208a81ff805920b57e36b5c4c [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 21a375df7653996d781db8d1b8595459dc91bf15916598d44e83cdd9b120c5ee [INFO] running `Command { std: "docker" "start" "-a" "21a375df7653996d781db8d1b8595459dc91bf15916598d44e83cdd9b120c5ee", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling cc v1.0.94 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling bytemuck v1.15.0 [INFO] [stderr] Compiling serde v1.0.200 [INFO] [stderr] Compiling anstyle-parse v0.2.4 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling colorchoice v1.0.1 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling anstyle-query v1.0.3 [INFO] [stderr] Compiling anstyle v1.0.7 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling symphonia-core v0.5.4 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling cpal v0.15.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling http-body-util v0.1.1 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling anstream v0.6.14 [INFO] [stderr] Compiling dasp_sample v0.11.0 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Compiling rustls-pki-types v1.7.0 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling clap_lex v0.7.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling clap_builder v4.5.2 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling alsa v0.9.0 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling rustls-pemfile v2.1.2 [INFO] [stderr] Compiling filetime v0.2.23 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling symphonia-metadata v0.5.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.12 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling libz-ng-sys v1.1.15 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling symphonia-bundle-mp3 v0.5.4 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling hound v3.5.1 [INFO] [stderr] Compiling unicode-width v0.1.12 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling xattr v1.3.1 [INFO] [stderr] Compiling console v0.15.8 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling crossbeam v0.8.4 [INFO] [stderr] Compiling tar v0.4.40 [INFO] [stderr] Compiling symphonia v0.5.4 [INFO] [stderr] Compiling env_filter v0.1.0 [INFO] [stderr] Compiling clap v4.5.4 [INFO] [stderr] Compiling env_logger v0.11.3 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling serde_derive v1.0.200 [INFO] [stderr] Compiling thiserror-impl v1.0.60 [INFO] [stderr] Compiling thiserror v1.0.60 [INFO] [stderr] Compiling rodio v0.18.0 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling h2 v0.4.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper v1.3.1 [INFO] [stderr] Compiling hyper-util v0.1.3 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.4 [INFO] [stderr] Compiling lingua_cli_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `ignore_tools_arcive` [INFO] [stdout] --> src/file_io.rs:130:11 [INFO] [stdout] | [INFO] [stdout] 130 | #[cfg(not(feature = "ignore_tools_arcive"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `ignore_tools_arcive` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/game.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 70 | / '_words: loop { [INFO] [stdout] 71 | | let (mut word, pronounce) = receiver.recv().unwrap(); [INFO] [stdout] 72 | | let is_chinese = random::(); [INFO] [stdout] ... | [INFO] [stdout] 101 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 102 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Tones` and `Random` are never constructed [INFO] [stdout] --> src/game.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Mode { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 15 | Tones, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | Random, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Google` is never constructed [INFO] [stdout] --> src/models.rs:253:5 [INFO] [stdout] | [INFO] [stdout] 246 | pub enum Voice { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 253 | Google, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Voice` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_styled_line` and `write_styled` are never used [INFO] [stdout] --> src/utils.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait StyledWrite { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] 8 | fn write_styled_line(&mut self, styled_text: T) -> std::io::Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | fn write_styled(&mut self, styled_text: T) -> Result<(), std::io::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 41.93s [INFO] running `Command { std: "docker" "inspect" "21a375df7653996d781db8d1b8595459dc91bf15916598d44e83cdd9b120c5ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21a375df7653996d781db8d1b8595459dc91bf15916598d44e83cdd9b120c5ee", kill_on_drop: false }` [INFO] [stdout] 21a375df7653996d781db8d1b8595459dc91bf15916598d44e83cdd9b120c5ee [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1792e507ecbda1ebd91768a92b1f3e627ceaa82efde1acf6be5dfb7a46c37cd [INFO] running `Command { std: "docker" "start" "-a" "e1792e507ecbda1ebd91768a92b1f3e627ceaa82efde1acf6be5dfb7a46c37cd", kill_on_drop: false }` [INFO] [stderr] Compiling lingua_cli_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `ignore_tools_arcive` [INFO] [stdout] --> src/file_io.rs:130:11 [INFO] [stdout] | [INFO] [stdout] 130 | #[cfg(not(feature = "ignore_tools_arcive"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `ignore_tools_arcive` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/game.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 70 | / '_words: loop { [INFO] [stdout] 71 | | let (mut word, pronounce) = receiver.recv().unwrap(); [INFO] [stdout] 72 | | let is_chinese = random::(); [INFO] [stdout] ... | [INFO] [stdout] 101 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 102 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Tones` and `Random` are never constructed [INFO] [stdout] --> src/game.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Mode { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 15 | Tones, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | Random, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Google` is never constructed [INFO] [stdout] --> src/models.rs:253:5 [INFO] [stdout] | [INFO] [stdout] 246 | pub enum Voice { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 253 | Google, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Voice` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_styled_line` and `write_styled` are never used [INFO] [stdout] --> src/utils.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait StyledWrite { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] 8 | fn write_styled_line(&mut self, styled_text: T) -> std::io::Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | fn write_styled(&mut self, styled_text: T) -> Result<(), std::io::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.46s [INFO] running `Command { std: "docker" "inspect" "e1792e507ecbda1ebd91768a92b1f3e627ceaa82efde1acf6be5dfb7a46c37cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1792e507ecbda1ebd91768a92b1f3e627ceaa82efde1acf6be5dfb7a46c37cd", kill_on_drop: false }` [INFO] [stdout] e1792e507ecbda1ebd91768a92b1f3e627ceaa82efde1acf6be5dfb7a46c37cd [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7d8ebd868ac14ee7b6f63abcce5e0f3dd5bc99ae4ba438e0bbe74e766ae8698b [INFO] running `Command { std: "docker" "start" "-a" "7d8ebd868ac14ee7b6f63abcce5e0f3dd5bc99ae4ba438e0bbe74e766ae8698b", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition value: `ignore_tools_arcive` [INFO] [stderr] --> src/file_io.rs:130:11 [INFO] [stderr] | [INFO] [stderr] 130 | #[cfg(not(feature = "ignore_tools_arcive"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `ignore_tools_arcive` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/game.rs:102:9 [INFO] [stderr] | [INFO] [stderr] 70 | / '_words: loop { [INFO] [stderr] 71 | | let (mut word, pronounce) = receiver.recv().unwrap(); [INFO] [stderr] 72 | | let is_chinese = random::(); [INFO] [stderr] ... | [INFO] [stderr] 101 | | } [INFO] [stderr] | |_________- any code following this expression is unreachable [INFO] [stderr] 102 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variants `Tones` and `Random` are never constructed [INFO] [stderr] --> src/game.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub enum Mode { [INFO] [stderr] | ---- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 15 | Tones, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 16 | Random, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variant `Google` is never constructed [INFO] [stderr] --> src/models.rs:253:5 [INFO] [stderr] | [INFO] [stderr] 246 | pub enum Voice { [INFO] [stderr] | ----- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 253 | Google, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Voice` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `write_styled_line` and `write_styled` are never used [INFO] [stderr] --> src/utils.rs:8:8 [INFO] [stderr] | [INFO] [stderr] 7 | pub trait StyledWrite { [INFO] [stderr] | ----------- methods in this trait [INFO] [stderr] 8 | fn write_styled_line(&mut self, styled_text: T) -> std::io::Result<()>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 9 | fn write_styled(&mut self, styled_text: T) -> Result<(), std::io::Error>; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `lingua_cli_rust` (bin "lingua_cli_rust" test) generated 5 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/lingua_cli_rust-c485c2c1eb483ef7) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test utils::tests::test_normalize_word ... ok [INFO] [stdout] test utils::tests::test_normalize_char ... ok [INFO] [stdout] test utils::tests::test_match_tone ... ok [INFO] [stdout] test models::tests::test_get_pinying ... ok [INFO] [stdout] test models::tests::test_base_model_tones ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- models::tests::test_base_model_tones stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'models::tests::test_base_model_tones' (17) panicked at src/models.rs:397:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: ["ni3 hao3"] [INFO] [stdout] right: ["ni3 hao3", "wo3 ai4 ni3", "ni3 hao3 le"] [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x61f446d2596a - std[ec4e911328de40a6]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x61f446d2596a - std[ec4e911328de40a6]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x61f446d2596a - std[ec4e911328de40a6]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x61f446d2596a - <::print::DisplayBacktrace as core[a96a4c5c53f902a3]::fmt::Display>::fmt [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x61f446d3a9da - ::fmt [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x61f446d3a9da - core[a96a4c5c53f902a3]::fmt::write [INFO] [stdout] 6: 0x61f446d2a722 - std[ec4e911328de40a6]::io::default_write_fmt::> [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x61f446d2a722 - as std[ec4e911328de40a6]::io::Write>::write_fmt [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x61f446d0477f - ::print [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x61f446d0477f - std[ec4e911328de40a6]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x61f446d1df09 - std[ec4e911328de40a6]::panicking::default_hook [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x61f446c7e51c - core[a96a4c5c53f902a3]::ops::function::Fn<(&'a std[ec4e911328de40a6]::panic::PanicHookInfo<'b>,), Output = ()> + core[a96a4c5c53f902a3]::marker::Sync + core[a96a4c5c53f902a3]::marker::Send> as core[a96a4c5c53f902a3]::ops::function::Fn<(&std[ec4e911328de40a6]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 12: 0x61f446c7e51c - test[30c43f9fd66fea90]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x61f446d1e0c2 - core[a96a4c5c53f902a3]::ops::function::Fn<(&'a std[ec4e911328de40a6]::panic::PanicHookInfo<'b>,), Output = ()> + core[a96a4c5c53f902a3]::marker::Sync + core[a96a4c5c53f902a3]::marker::Send> as core[a96a4c5c53f902a3]::ops::function::Fn<(&std[ec4e911328de40a6]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 14: 0x61f446d1e0c2 - std[ec4e911328de40a6]::panicking::panic_with_hook [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x61f446d04838 - std[ec4e911328de40a6]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x61f446cfbc79 - std[ec4e911328de40a6]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x61f446d0563d - __rustc[aa69f48705c57ca8]::rust_begin_unwind [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x61f446d3b19c - core[a96a4c5c53f902a3]::panicking::panic_fmt [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x61f446d3b023 - core[a96a4c5c53f902a3]::panicking::assert_failed_inner [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x61f446c5f1ac - core[a96a4c5c53f902a3]::panicking::assert_failed::, alloc[c960326de6de28e6]::vec::Vec> [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x61f446c66217 - lingua_cli_rust[4c1011930545cc4e]::models::tests::test_base_model_tones [INFO] [stdout] at /opt/rustwide/workdir/src/models.rs:397:9 [INFO] [stdout] 22: 0x61f446c64407 - lingua_cli_rust[4c1011930545cc4e]::models::tests::test_base_model_tones::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/models.rs:395:31 [INFO] [stdout] 23: 0x61f446c62046 - >::call_once [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x61f446c725fb - core[a96a4c5c53f902a3]::result::Result<(), alloc[c960326de6de28e6]::string::String> as core[a96a4c5c53f902a3]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x61f446c725fb - test[30c43f9fd66fea90]::__rust_begin_short_backtrace::, fn() -> core[a96a4c5c53f902a3]::result::Result<(), alloc[c960326de6de28e6]::string::String>> [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x61f446c7efeb - test[30c43f9fd66fea90]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x61f446c7efeb - as core[a96a4c5c53f902a3]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 28: 0x61f446c7efeb - std[ec4e911328de40a6]::panicking::catch_unwind::do_call::, core[a96a4c5c53f902a3]::result::Result<(), alloc[c960326de6de28e6]::string::String>> [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x61f446c7efeb - std[ec4e911328de40a6]::panicking::catch_unwind::, core[a96a4c5c53f902a3]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x61f446c7efeb - std[ec4e911328de40a6]::panic::catch_unwind::, core[a96a4c5c53f902a3]::result::Result<(), alloc[c960326de6de28e6]::string::String>> [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x61f446c7efeb - test[30c43f9fd66fea90]::run_test_in_process [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x61f446c7efeb - test[30c43f9fd66fea90]::run_test::{closure#0} [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x61f446c7a704 - test[30c43f9fd66fea90]::run_test::{closure#1} [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x61f446c7a704 - std[ec4e911328de40a6]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 35: 0x61f446c81bf2 - std[ec4e911328de40a6]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 36: 0x61f446c81bf2 - ::{closure#1}::{closure#0}> as core[a96a4c5c53f902a3]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 37: 0x61f446c81bf2 - std[ec4e911328de40a6]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/panicking.rs:581:40 [INFO] [stdout] 38: 0x61f446c81bf2 - std[ec4e911328de40a6]::panicking::catch_unwind::<(), core[a96a4c5c53f902a3]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/panicking.rs:544:19 [INFO] [stdout] 39: 0x61f446c81bf2 - std[ec4e911328de40a6]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x61f446c81bf2 - std[ec4e911328de40a6]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 41: 0x61f446c81bf2 - ::{closure#1} as core[a96a4c5c53f902a3]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x61f446d2527f - + core[a96a4c5c53f902a3]::marker::Send> as core[a96a4c5c53f902a3]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/alloc/src/boxed.rs:2240:9 [INFO] [stdout] 43: 0x61f446d2527f - ::new::thread_start [INFO] [stdout] at /rustc/0abe69e6c16114311cc2700e972492e64d69c28f/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 44: 0x71a5136e7aa4 - [INFO] [stdout] 45: 0x71a513774a64 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] models::tests::test_base_model_tones [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 7.25s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin lingua_cli_rust` [INFO] running `Command { std: "docker" "inspect" "7d8ebd868ac14ee7b6f63abcce5e0f3dd5bc99ae4ba438e0bbe74e766ae8698b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d8ebd868ac14ee7b6f63abcce5e0f3dd5bc99ae4ba438e0bbe74e766ae8698b", kill_on_drop: false }` [INFO] [stdout] 7d8ebd868ac14ee7b6f63abcce5e0f3dd5bc99ae4ba438e0bbe74e766ae8698b