[INFO] cloning repository https://github.com/boren07/fun-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/boren07/fun-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboren07%2Ffun-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboren07%2Ffun-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b703d81916480615318f5a48c4752d895cabfcd3 [INFO] testing boren07/fun-cli against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboren07%2Ffun-cli" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-0-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/boren07/fun-cli [INFO] finished tweaking git repo https://github.com/boren07/fun-cli [INFO] tweaked toml for git repo https://github.com/boren07/fun-cli written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/boren07/fun-cli on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/boren07/fun-cli 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd2d2be32e60eae43ec483bad660dc1b83bb1810430389f7c2b6d942de2212eb [INFO] running `Command { std: "docker" "start" "-a" "fd2d2be32e60eae43ec483bad660dc1b83bb1810430389f7c2b6d942de2212eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd2d2be32e60eae43ec483bad660dc1b83bb1810430389f7c2b6d942de2212eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd2d2be32e60eae43ec483bad660dc1b83bb1810430389f7c2b6d942de2212eb", kill_on_drop: false }` [INFO] [stdout] fd2d2be32e60eae43ec483bad660dc1b83bb1810430389f7c2b6d942de2212eb [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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5bedef59b7c1630ea7b3d6b2fa3acccf1e06350b3f0e5f549846e724a7586e88 [INFO] running `Command { std: "docker" "start" "-a" "5bedef59b7c1630ea7b3d6b2fa3acccf1e06350b3f0e5f549846e724a7586e88", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling bindgen v0.72.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling symphonia-core v0.5.4 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling cpal v0.15.3 [INFO] [stderr] Compiling compression-core v0.4.29 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling compression-codecs v0.4.29 [INFO] [stderr] Compiling alsa v0.9.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling symphonia-metadata v0.5.4 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling dasp_sample v0.11.0 [INFO] [stderr] Compiling strength_reduce v0.2.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling transpose v0.2.3 [INFO] [stderr] Compiling symphonia-bundle-mp3 v0.5.4 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling clap_builder v4.5.46 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling symphonia v0.5.4 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling primal-check v0.3.4 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling netlink-sys v0.8.7 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling hound v3.5.1 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling crossterm v0.28.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rustfft v6.4.0 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling async-compression v0.4.29 [INFO] [stderr] Compiling sysinfo v0.31.4 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling netlink-packet-utils v0.5.2 [INFO] [stderr] Compiling rodio v0.19.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling netlink-packet-core v0.7.0 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling clap v4.5.46 [INFO] [stderr] Compiling netlink-packet-sock-diag v0.4.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling netstat2 v0.11.2 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling fun-cli v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> src/impls/games/tetris/game.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::impls::games::entities::{Entity, GameEntity}; [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: `Write` [INFO] [stdout] --> src/ui/widget.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{self, Stdout, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/impls/handlers.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | _ => Err(CliError::NoMatchHandlerError), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/impls/handlers.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 22 | Commands::Weather(handler) => Ok(Box::new(handler)), [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] 23 | Commands::Music(handler) => Ok(Box::new(handler)), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 24 | Commands::Curl(handler) => Ok(Box::new(handler)), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 25 | Commands::Game(handler) => Ok(Box::new(handler)), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 26 | Commands::Os(handler) => Ok(Box::new(handler)), [INFO] [stdout] 27 | _ => Err(CliError::NoMatchHandlerError), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/impls/music.rs:141:56 [INFO] [stdout] | [INFO] [stdout] 141 | let sink = Sink::try_new(&handle).map_err(|e| CliError::UnknownError("播放音频出现错误!!!".to_owned()))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_playing` is never read [INFO] [stdout] --> src/impls/music.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | is_playing = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_top` [INFO] [stdout] --> src/impls/os.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | let left_top = self.layout.get(&LayoutPosition::LeftTop).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_top` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_bottom` [INFO] [stdout] --> src/impls/os.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let left_bottom = self.layout.get(&LayoutPosition::LeftBottom).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_bottom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sys` [INFO] [stdout] --> src/impls/os.rs:188:57 [INFO] [stdout] | [INFO] [stdout] 188 | fn set_overview_panel_list(list: &mut List, sys: &mut System) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_bound` [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:76:47 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn update_bullets_by_speed(&mut self, max_bound: u16) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_bound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/ui/widget.rs:27:32 [INFO] [stdout] | [INFO] [stdout] 27 | fn handle_event(&mut self, event: KeyCode) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `focused` [INFO] [stdout] --> src/ui/widget.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | fn set_focus(&mut self, focused: bool) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_focused` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NetCloudMusic` is more private than the item `MusicHandler::get_internet_music` [INFO] [stdout] --> src/impls/music.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_internet_music(&self, client: &Client) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `MusicHandler::get_internet_music` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `NetCloudMusic` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/impls/music.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | struct NetCloudMusic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `WeatherResult` is more private than the item `WeatherHandler::get_now_weather` [INFO] [stdout] --> src/impls/weather.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn get_now_weather(&self, city: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `WeatherHandler::get_now_weather` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `WeatherResult` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/impls/weather.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | struct WeatherResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HandlerParamMissError` is never constructed [INFO] [stdout] --> src/error.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum CliError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 6 | NoMatchHandlerError, [INFO] [stdout] 7 | HandlerParamMissError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `lyric` is never read [INFO] [stdout] --> src/impls/music.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 31 | struct NetCloudMusic { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | lyric: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetCloudMusic` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/impls/music.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl MusicHandler { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 47 | pub fn new(name: String, play: bool, loop_play: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/impls/weather.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl WeatherHandler { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(city: String, mode: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `evaluate_position` is never used [INFO] [stdout] --> src/impls/games/gomoku/entity.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl GomokuBoard { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn evaluate_position(&self, pos: Position, player: Cell) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_drop` is never read [INFO] [stdout] --> src/impls/games/tetris/game.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 18 | struct TetrisGameState { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | last_drop: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Enemy { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 118 | /// Update the enemy position [INFO] [stdout] 119 | pub fn update(&mut self, max_bound: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `physical_core_count` is never read [INFO] [stdout] --> src/impls/osystem/cpu.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct CpuWidget { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | physical_core_count: usize, // CPU物理核心数 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bounds` and `render_on_window` are never used [INFO] [stdout] --> src/ui/widget.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Widget { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 12 | /// 获取组件边界坐标 [INFO] [stdout] 13 | fn bounds(&self) -> (Coordinate, Coordinate) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn render_on_window(&self, stdout: &mut Stdout, coordinate: Coordinate, content: String) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_item` is never used [INFO] [stdout] --> src/ui/widget.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 164 | impl List { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn add_item(&mut self, item: T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIZE_KB` is never used [INFO] [stdout] --> src/utils/consts.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const SIZE_KB: u64 = 1024; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 18s [INFO] running `Command { std: "docker" "inspect" "5bedef59b7c1630ea7b3d6b2fa3acccf1e06350b3f0e5f549846e724a7586e88", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bedef59b7c1630ea7b3d6b2fa3acccf1e06350b3f0e5f549846e724a7586e88", kill_on_drop: false }` [INFO] [stdout] 5bedef59b7c1630ea7b3d6b2fa3acccf1e06350b3f0e5f549846e724a7586e88 [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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b11d0b9c1ef24730a996507903c5e20de7c476c57086a60ee2017ba618012bdb [INFO] running `Command { std: "docker" "start" "-a" "b11d0b9c1ef24730a996507903c5e20de7c476c57086a60ee2017ba618012bdb", kill_on_drop: false }` [INFO] [stderr] Compiling fun-cli v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> src/impls/games/tetris/game.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::impls::games::entities::{Entity, GameEntity}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/impls/handlers.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | _ => Err(CliError::NoMatchHandlerError), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/impls/handlers.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 22 | Commands::Weather(handler) => Ok(Box::new(handler)), [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] 23 | Commands::Music(handler) => Ok(Box::new(handler)), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 24 | Commands::Curl(handler) => Ok(Box::new(handler)), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 25 | Commands::Game(handler) => Ok(Box::new(handler)), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 26 | Commands::Os(handler) => Ok(Box::new(handler)), [INFO] [stdout] 27 | _ => Err(CliError::NoMatchHandlerError), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/impls/music.rs:141:56 [INFO] [stdout] | [INFO] [stdout] 141 | let sink = Sink::try_new(&handle).map_err(|e| CliError::UnknownError("播放音频出现错误!!!".to_owned()))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_playing` is never read [INFO] [stdout] --> src/impls/music.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | is_playing = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_top` [INFO] [stdout] --> src/impls/os.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | let left_top = self.layout.get(&LayoutPosition::LeftTop).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_top` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_bottom` [INFO] [stdout] --> src/impls/os.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let left_bottom = self.layout.get(&LayoutPosition::LeftBottom).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_bottom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sys` [INFO] [stdout] --> src/impls/os.rs:188:57 [INFO] [stdout] | [INFO] [stdout] 188 | fn set_overview_panel_list(list: &mut List, sys: &mut System) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_bound` [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:76:47 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn update_bullets_by_speed(&mut self, max_bound: u16) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_bound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/ui/widget.rs:27:32 [INFO] [stdout] | [INFO] [stdout] 27 | fn handle_event(&mut self, event: KeyCode) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `focused` [INFO] [stdout] --> src/ui/widget.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | fn set_focus(&mut self, focused: bool) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_focused` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NetCloudMusic` is more private than the item `music::MusicHandler::get_internet_music` [INFO] [stdout] --> src/impls/music.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_internet_music(&self, client: &Client) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `music::MusicHandler::get_internet_music` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `NetCloudMusic` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/impls/music.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | struct NetCloudMusic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `WeatherResult` is more private than the item `WeatherHandler::get_now_weather` [INFO] [stdout] --> src/impls/weather.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn get_now_weather(&self, city: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `WeatherHandler::get_now_weather` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `WeatherResult` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/impls/weather.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | struct WeatherResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HandlerParamMissError` is never constructed [INFO] [stdout] --> src/error.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum CliError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 6 | NoMatchHandlerError, [INFO] [stdout] 7 | HandlerParamMissError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `lyric` is never read [INFO] [stdout] --> src/impls/music.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 31 | struct NetCloudMusic { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | lyric: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetCloudMusic` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/impls/weather.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl WeatherHandler { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(city: String, mode: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `evaluate_position` is never used [INFO] [stdout] --> src/impls/games/gomoku/entity.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl GomokuBoard { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn evaluate_position(&self, pos: Position, player: Cell) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_drop` is never read [INFO] [stdout] --> src/impls/games/tetris/game.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 18 | struct TetrisGameState { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | last_drop: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Enemy { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 118 | /// Update the enemy position [INFO] [stdout] 119 | pub fn update(&mut self, max_bound: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `physical_core_count` is never read [INFO] [stdout] --> src/impls/osystem/cpu.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct CpuWidget { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | physical_core_count: usize, // CPU物理核心数 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bounds` and `render_on_window` are never used [INFO] [stdout] --> src/ui/widget.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Widget { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 12 | /// 获取组件边界坐标 [INFO] [stdout] 13 | fn bounds(&self) -> (Coordinate, Coordinate) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn render_on_window(&self, stdout: &mut Stdout, coordinate: Coordinate, content: String) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_item` is never used [INFO] [stdout] --> src/ui/widget.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 164 | impl List { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn add_item(&mut self, item: T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIZE_KB` is never used [INFO] [stdout] --> src/utils/consts.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const SIZE_KB: u64 = 1024; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 13.75s [INFO] running `Command { std: "docker" "inspect" "b11d0b9c1ef24730a996507903c5e20de7c476c57086a60ee2017ba618012bdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b11d0b9c1ef24730a996507903c5e20de7c476c57086a60ee2017ba618012bdb", kill_on_drop: false }` [INFO] [stdout] b11d0b9c1ef24730a996507903c5e20de7c476c57086a60ee2017ba618012bdb [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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 124a1ce5fb53d085aeed2c9fa138f42d48aa8166b3d3c5bd35f666f485ff0df9 [INFO] running `Command { std: "docker" "start" "-a" "124a1ce5fb53d085aeed2c9fa138f42d48aa8166b3d3c5bd35f666f485ff0df9", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Entity` [INFO] [stderr] --> src/impls/games/tetris/game.rs:3:37 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::impls::games::entities::{Entity, GameEntity}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/impls/handlers.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | _ => Err(CliError::NoMatchHandlerError), [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/impls/handlers.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 22 | Commands::Weather(handler) => Ok(Box::new(handler)), [INFO] [stderr] | -------------------------- matches some of the same values [INFO] [stderr] 23 | Commands::Music(handler) => Ok(Box::new(handler)), [INFO] [stderr] | ------------------------ matches some of the same values [INFO] [stderr] 24 | Commands::Curl(handler) => Ok(Box::new(handler)), [INFO] [stderr] | ----------------------- matches some of the same values [INFO] [stderr] 25 | Commands::Game(handler) => Ok(Box::new(handler)), [INFO] [stderr] | ----------------------- matches some of the same values [INFO] [stderr] 26 | Commands::Os(handler) => Ok(Box::new(handler)), [INFO] [stderr] 27 | _ => Err(CliError::NoMatchHandlerError), [INFO] [stderr] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/impls/music.rs:141:56 [INFO] [stderr] | [INFO] [stderr] 141 | let sink = Sink::try_new(&handle).map_err(|e| CliError::UnknownError("播放音频出现错误!!!".to_owned()))?; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `is_playing` is never read [INFO] [stderr] --> src/impls/music.rs:206:17 [INFO] [stderr] | [INFO] [stderr] 206 | is_playing = false; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `left_top` [INFO] [stderr] --> src/impls/os.rs:153:13 [INFO] [stderr] | [INFO] [stderr] 153 | let left_top = self.layout.get(&LayoutPosition::LeftTop).unwrap(); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_top` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `left_bottom` [INFO] [stderr] --> src/impls/os.rs:155:13 [INFO] [stderr] | [INFO] [stderr] 155 | let left_bottom = self.layout.get(&LayoutPosition::LeftBottom).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_bottom` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sys` [INFO] [stderr] --> src/impls/os.rs:188:57 [INFO] [stderr] | [INFO] [stderr] 188 | fn set_overview_panel_list(list: &mut List, sys: &mut System) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_sys` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `max_bound` [INFO] [stderr] --> src/impls/games/thunder_fighter/entity.rs:76:47 [INFO] [stderr] | [INFO] [stderr] 76 | pub fn update_bullets_by_speed(&mut self, max_bound: u16) { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_bound` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `event` [INFO] [stderr] --> src/ui/widget.rs:27:32 [INFO] [stderr] | [INFO] [stderr] 27 | fn handle_event(&mut self, event: KeyCode) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `focused` [INFO] [stderr] --> src/ui/widget.rs:32:29 [INFO] [stderr] | [INFO] [stderr] 32 | fn set_focus(&mut self, focused: bool) { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_focused` [INFO] [stderr] [INFO] [stderr] warning: type `NetCloudMusic` is more private than the item `music::MusicHandler::get_internet_music` [INFO] [stderr] --> src/impls/music.rs:51:5 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn get_internet_music(&self, client: &Client) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `music::MusicHandler::get_internet_music` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `NetCloudMusic` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/impls/music.rs:31:1 [INFO] [stderr] | [INFO] [stderr] 31 | struct NetCloudMusic { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `WeatherResult` is more private than the item `WeatherHandler::get_now_weather` [INFO] [stderr] --> src/impls/weather.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn get_now_weather(&self, city: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `WeatherHandler::get_now_weather` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `WeatherResult` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/impls/weather.rs:52:1 [INFO] [stderr] | [INFO] [stderr] 52 | struct WeatherResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `HandlerParamMissError` is never constructed [INFO] [stderr] --> src/error.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 5 | pub enum CliError { [INFO] [stderr] | -------- variant in this enum [INFO] [stderr] 6 | NoMatchHandlerError, [INFO] [stderr] 7 | HandlerParamMissError, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `lyric` is never read [INFO] [stderr] --> src/impls/music.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 31 | struct NetCloudMusic { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 39 | lyric: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `NetCloudMusic` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/impls/weather.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl WeatherHandler { [INFO] [stderr] | ------------------- associated function in this implementation [INFO] [stderr] 18 | pub fn new(city: String, mode: u8) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: method `evaluate_position` is never used [INFO] [stderr] --> src/impls/games/gomoku/entity.rs:145:12 [INFO] [stderr] | [INFO] [stderr] 29 | impl GomokuBoard { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 145 | pub fn evaluate_position(&self, pos: Position, player: Cell) -> (usize, usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `last_drop` is never read [INFO] [stderr] --> src/impls/games/tetris/game.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 18 | struct TetrisGameState { [INFO] [stderr] | --------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 30 | last_drop: u64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `update` is never used [INFO] [stderr] --> src/impls/games/thunder_fighter/entity.rs:119:12 [INFO] [stderr] | [INFO] [stderr] 117 | impl Enemy { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] 118 | /// Update the enemy position [INFO] [stderr] 119 | pub fn update(&mut self, max_bound: u16) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `physical_core_count` is never read [INFO] [stderr] --> src/impls/osystem/cpu.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct CpuWidget { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 20 | physical_core_count: usize, // CPU物理核心数 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `bounds` and `render_on_window` are never used [INFO] [stderr] --> src/ui/widget.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 11 | pub trait Widget { [INFO] [stderr] | ------ methods in this trait [INFO] [stderr] 12 | /// 获取组件边界坐标 [INFO] [stderr] 13 | fn bounds(&self) -> (Coordinate, Coordinate) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 36 | fn render_on_window(&self, stdout: &mut Stdout, coordinate: Coordinate, content: String) -> io::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `add_item` is never used [INFO] [stderr] --> src/ui/widget.rs:186:12 [INFO] [stderr] | [INFO] [stderr] 164 | impl List { [INFO] [stderr] | ------------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 186 | pub fn add_item(&mut self, item: T) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `SIZE_KB` is never used [INFO] [stderr] --> src/utils/consts.rs:20:11 [INFO] [stderr] | [INFO] [stderr] 20 | pub const SIZE_KB: u64 = 1024; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `fun-cli` (bin "fun" test) generated 22 warnings (run `cargo fix --bin "fun" -p fun-cli --tests` to apply 8 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.47s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/fun-66b2243105091d88) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test impls::music::tests::test_colored_print ... ok [INFO] [stdout] [?1049hPanel┌-------------------------------------------------------------------------------┐||||||||||||└-------------------------------------------------------------------------------┘磁盘名称: overlay文件系统类型: overlay磁盘类型: Unknown磁盘总空间: 28GB可用空间: 13GBleft1┌---------------------------------------┐||||||||||||└---------------------------------------┘磁盘名称: overlay文件系统类型: overlay磁盘类型: Unknown磁盘总空间: 28GB可用空间: 13GBright1┌---------------------------------------┐||||||||||||└---------------------------------------┘磁盘名称: overlay文件系统类型: overlay磁盘类型: Unknown磁盘总空间: 28GB可用空间: 13GBleft2┌---------------------------------------┐||||||||||||└---------------------------------------┘磁盘名称: overlay文件系统类型: overlay磁盘类型: Unknown磁盘总空间: 28GB可用空间: 13GBright2┌---------------------------------------┐||||||||||||└---------------------------------------┘磁盘名称: overlay文件系统类型: overlay磁盘类型: Unknown磁盘总空间: 28GB可用空间: 13GBtest impls::os::tests::test_sysinfo ... ok [INFO] [stdout] test impls::weather::tests::test_weather ... FAILED [INFO] [stdout] test impls::music::tests::test_play ... FAILED [INFO] [stdout] test ui::widget::tests::test_panel_widget has been running for over 60 seconds [ERROR] error running command: no output for 300 seconds [INFO] running `Command { std: "docker" "inspect" "124a1ce5fb53d085aeed2c9fa138f42d48aa8166b3d3c5bd35f666f485ff0df9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "124a1ce5fb53d085aeed2c9fa138f42d48aa8166b3d3c5bd35f666f485ff0df9", kill_on_drop: false }` [INFO] [stdout] 124a1ce5fb53d085aeed2c9fa138f42d48aa8166b3d3c5bd35f666f485ff0df9