[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] 063ec2385b0df027795c34634e9c87e8c8b2c91e [INFO] testing boren07/fun-cli against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboren07%2Ffun-cli" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [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-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/boren07/fun-cli on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 350f5dd0c0aca896f65b6c0e1b60664f9bff2879c7b9f95824354b3af3b54786 [INFO] running `Command { std: "docker" "start" "-a" "350f5dd0c0aca896f65b6c0e1b60664f9bff2879c7b9f95824354b3af3b54786", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "350f5dd0c0aca896f65b6c0e1b60664f9bff2879c7b9f95824354b3af3b54786", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "350f5dd0c0aca896f65b6c0e1b60664f9bff2879c7b9f95824354b3af3b54786", kill_on_drop: false }` [INFO] [stdout] 350f5dd0c0aca896f65b6c0e1b60664f9bff2879c7b9f95824354b3af3b54786 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c983ef6ffc0bb3fa3f3a628a3930aa8baa696ea6fa23448fd60af750d75633f0 [INFO] running `Command { std: "docker" "start" "-a" "c983ef6ffc0bb3fa3f3a628a3930aa8baa696ea6fa23448fd60af750d75633f0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling bindgen v0.72.0 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling symphonia-core v0.5.4 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling symphonia-metadata v0.5.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling cpal v0.15.3 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling compression-core v0.4.29 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling compression-codecs v0.4.29 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling symphonia-bundle-mp3 v0.5.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling alsa v0.9.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling strength_reduce v0.2.4 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling dasp_sample v0.11.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling clap_builder v4.5.46 [INFO] [stderr] Compiling transpose v0.2.3 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling symphonia v0.5.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rayon v1.11.0 [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 claxon v0.4.3 [INFO] [stderr] Compiling hound v3.5.1 [INFO] [stderr] Compiling crossterm v0.28.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling unicode-width v0.2.1 [INFO] [stderr] Compiling rustfft v6.4.0 [INFO] [stderr] Compiling synstructure v0.13.2 [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 tower-http v0.6.6 [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 h2 v0.4.12 [INFO] [stderr] Compiling netlink-packet-utils v0.5.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling rodio v0.19.0 [INFO] [stderr] Compiling netlink-packet-core v0.7.0 [INFO] [stderr] Compiling sysinfo v0.31.4 [INFO] [stderr] Compiling netlink-packet-sock-diag v0.4.2 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling clap v4.5.46 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [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 idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling netstat2 v0.11.2 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling url v2.5.7 [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:160:27 [INFO] [stdout] | [INFO] [stdout] 160 | .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:228:17 [INFO] [stdout] | [INFO] [stdout] 228 | 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:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | 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:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | 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:221:57 [INFO] [stdout] | [INFO] [stdout] 221 | 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:77:47 [INFO] [stdout] | [INFO] [stdout] 77 | 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:30:32 [INFO] [stdout] | [INFO] [stdout] 30 | 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:35:29 [INFO] [stdout] | [INFO] [stdout] 35 | 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:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | / pub fn get_internet_music( [INFO] [stdout] 56 | | &self, [INFO] [stdout] 57 | | client: &Client, [INFO] [stdout] 58 | | ) -> 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:146:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl GomokuBoard { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | 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:120:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl Enemy { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 119 | /// Update the enemy position [INFO] [stdout] 120 | 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] 39 | fn render_on_window( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_item` is never used [INFO] [stdout] --> src/ui/widget.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 187 | impl List { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 214 | 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 29s [INFO] running `Command { std: "docker" "inspect" "c983ef6ffc0bb3fa3f3a628a3930aa8baa696ea6fa23448fd60af750d75633f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c983ef6ffc0bb3fa3f3a628a3930aa8baa696ea6fa23448fd60af750d75633f0", kill_on_drop: false }` [INFO] [stdout] c983ef6ffc0bb3fa3f3a628a3930aa8baa696ea6fa23448fd60af750d75633f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 855dd628206472377cf317ebc341dc7b526863f67c039ac4290ad91516ddbdb5 [INFO] running `Command { std: "docker" "start" "-a" "855dd628206472377cf317ebc341dc7b526863f67c039ac4290ad91516ddbdb5", 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:160:27 [INFO] [stdout] | [INFO] [stdout] 160 | .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:228:17 [INFO] [stdout] | [INFO] [stdout] 228 | 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:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | 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:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | 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:221:57 [INFO] [stdout] | [INFO] [stdout] 221 | 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:77:47 [INFO] [stdout] | [INFO] [stdout] 77 | 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:30:32 [INFO] [stdout] | [INFO] [stdout] 30 | 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:35:29 [INFO] [stdout] | [INFO] [stdout] 35 | 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:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | / pub fn get_internet_music( [INFO] [stdout] 56 | | &self, [INFO] [stdout] 57 | | client: &Client, [INFO] [stdout] 58 | | ) -> 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:146:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl GomokuBoard { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | 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:120:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl Enemy { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 119 | /// Update the enemy position [INFO] [stdout] 120 | 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] 39 | fn render_on_window( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_item` is never used [INFO] [stdout] --> src/ui/widget.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 187 | impl List { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 214 | 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.84s [INFO] running `Command { std: "docker" "inspect" "855dd628206472377cf317ebc341dc7b526863f67c039ac4290ad91516ddbdb5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "855dd628206472377cf317ebc341dc7b526863f67c039ac4290ad91516ddbdb5", kill_on_drop: false }` [INFO] [stdout] 855dd628206472377cf317ebc341dc7b526863f67c039ac4290ad91516ddbdb5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e454582d9a0311ebddfec053223c9c149189e97043f3283a3bf8ee3bfcb47917 [INFO] running `Command { std: "docker" "start" "-a" "e454582d9a0311ebddfec053223c9c149189e97043f3283a3bf8ee3bfcb47917", 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:160:27 [INFO] [stderr] | [INFO] [stderr] 160 | .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:228:17 [INFO] [stderr] | [INFO] [stderr] 228 | 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:175:13 [INFO] [stderr] | [INFO] [stderr] 175 | 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:177:13 [INFO] [stderr] | [INFO] [stderr] 177 | 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:221:57 [INFO] [stderr] | [INFO] [stderr] 221 | 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:77:47 [INFO] [stderr] | [INFO] [stderr] 77 | 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:30:32 [INFO] [stderr] | [INFO] [stderr] 30 | 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:35:29 [INFO] [stderr] | [INFO] [stderr] 35 | 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:55:5 [INFO] [stderr] | [INFO] [stderr] 55 | / pub fn get_internet_music( [INFO] [stderr] 56 | | &self, [INFO] [stderr] 57 | | client: &Client, [INFO] [stderr] 58 | | ) -> 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:146:12 [INFO] [stderr] | [INFO] [stderr] 29 | impl GomokuBoard { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 146 | 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:120:12 [INFO] [stderr] | [INFO] [stderr] 118 | impl Enemy { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] 119 | /// Update the enemy position [INFO] [stderr] 120 | 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] 39 | fn render_on_window( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `add_item` is never used [INFO] [stderr] --> src/ui/widget.rs:214:12 [INFO] [stderr] | [INFO] [stderr] 187 | impl List { [INFO] [stderr] | ------------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 214 | 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.38s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/fun-66b2243105091d88) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] [?1049htest impls::music::tests::test_colored_print ... ok [INFO] [stdout] Panel┌-------------------------------------------------------------------------------┐||||||||||||└-------------------------------------------------------------------------------┘磁盘名称: 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::music::tests::test_play ... FAILED [INFO] [stdout] test impls::weather::tests::test_weather ... 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" "e454582d9a0311ebddfec053223c9c149189e97043f3283a3bf8ee3bfcb47917", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e454582d9a0311ebddfec053223c9c149189e97043f3283a3bf8ee3bfcb47917", kill_on_drop: false }` [INFO] [stdout] e454582d9a0311ebddfec053223c9c149189e97043f3283a3bf8ee3bfcb47917