[INFO] cloning repository https://github.com/xujiewocao/clipboard-sync-tcp-server-client [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xujiewocao/clipboard-sync-tcp-server-client" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxujiewocao%2Fclipboard-sync-tcp-server-client", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxujiewocao%2Fclipboard-sync-tcp-server-client'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8d91e7cdd3570dd27f4f4e06b88cd1daf1c91d57 [INFO] testing xujiewocao/clipboard-sync-tcp-server-client against try#9f93af291970322f4f1c6315ccde4d7078201159 for pr-146098-6 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxujiewocao%2Fclipboard-sync-tcp-server-client" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/xujiewocao/clipboard-sync-tcp-server-client [INFO] finished tweaking git repo https://github.com/xujiewocao/clipboard-sync-tcp-server-client [INFO] tweaked toml for git repo https://github.com/xujiewocao/clipboard-sync-tcp-server-client written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xujiewocao/clipboard-sync-tcp-server-client on toolchain 9f93af291970322f4f1c6315ccde4d7078201159 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/xujiewocao/clipboard-sync-tcp-server-client already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a361a21d33d17abde2e51d205476b7a82acfdecee15d5b4937d051dc6336bf3 [INFO] running `Command { std: "docker" "start" "-a" "2a361a21d33d17abde2e51d205476b7a82acfdecee15d5b4937d051dc6336bf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a361a21d33d17abde2e51d205476b7a82acfdecee15d5b4937d051dc6336bf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a361a21d33d17abde2e51d205476b7a82acfdecee15d5b4937d051dc6336bf3", kill_on_drop: false }` [INFO] [stdout] 2a361a21d33d17abde2e51d205476b7a82acfdecee15d5b4937d051dc6336bf3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b96cec64623e1b77b155f18f44d044d279e22a199949977d88d5312b4c53694 [INFO] running `Command { std: "docker" "start" "-a" "6b96cec64623e1b77b155f18f44d044d279e22a199949977d88d5312b4c53694", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling serde_core v1.0.226 [INFO] [stderr] Compiling serde v1.0.226 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling toml_datetime v0.7.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling futures-lite v2.6.1 [INFO] [stderr] Compiling endi v1.1.0 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling async-io v2.6.0 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling async-channel v2.5.0 [INFO] [stderr] Compiling async-lock v3.4.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling weezl v0.1.10 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling png v0.18.0 [INFO] [stderr] Compiling async-broadcast v0.7.2 [INFO] [stderr] Compiling blocking v1.6.2 [INFO] [stderr] Compiling async-executor v1.13.3 [INFO] [stderr] Compiling ordered-stream v0.2.0 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling x11rb-protocol v0.13.2 [INFO] [stderr] Compiling byteorder-lite v0.1.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling bit_field v0.10.3 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling lebe v0.5.3 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling gif v0.13.3 [INFO] [stderr] Compiling clap_builder v4.5.48 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling pxfm v0.1.24 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling exr v1.73.0 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling jpeg-decoder v0.3.2 [INFO] [stderr] Compiling toml_parser v1.0.3 [INFO] [stderr] Compiling toml_edit v0.23.6 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Compiling moxcms v0.7.5 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling polling v3.11.0 [INFO] [stderr] Compiling gethostname v1.0.2 [INFO] [stderr] Compiling x11rb v0.13.2 [INFO] [stderr] Compiling serde_derive v1.0.226 [INFO] [stderr] Compiling enumflags2_derive v0.7.12 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-signal v0.2.13 [INFO] [stderr] Compiling async-process v2.5.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling clap v4.5.48 [INFO] [stderr] Compiling image v0.25.8 [INFO] [stderr] Compiling zvariant_utils v3.2.1 [INFO] [stderr] Compiling enumflags2 v0.7.12 [INFO] [stderr] Compiling zvariant_derive v5.7.0 [INFO] [stderr] Compiling zvariant v5.7.0 [INFO] [stderr] Compiling arboard v3.6.1 [INFO] [stderr] Compiling zbus_names v4.2.0 [INFO] [stderr] Compiling zbus_macros v5.11.0 [INFO] [stderr] Compiling zbus v5.11.0 [INFO] [stderr] Compiling notify-rust v4.11.7 [INFO] [stderr] Compiling clipboard-sync-alt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `last_content_type` is never read [INFO] [stdout] --> src/main.rs:262:25 [INFO] [stdout] | [INFO] [stdout] 262 | last_content_type = current_type; [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: value assigned to `last_content_type` is never read [INFO] [stdout] --> src/main.rs:277:25 [INFO] [stdout] | [INFO] [stdout] 277 | last_content_type = current_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_content_type` is never read [INFO] [stdout] --> src/main.rs:284:21 [INFO] [stdout] | [INFO] [stdout] 284 | last_content_type = current_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_content` is never used [INFO] [stdout] --> src/clipboard.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl ClipboardManager { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn has_content(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_enabled` and `is_enabled` are never used [INFO] [stdout] --> src/notification.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl NotificationManager { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn set_enabled(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/clipboard.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | fn png_to_rgba(&self, width: u32, height: u32, png_data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 111 | fn png_to_rgba(&self, width: u32, height: u32, png_data: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 33s [INFO] running `Command { std: "docker" "inspect" "6b96cec64623e1b77b155f18f44d044d279e22a199949977d88d5312b4c53694", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b96cec64623e1b77b155f18f44d044d279e22a199949977d88d5312b4c53694", kill_on_drop: false }` [INFO] [stdout] 6b96cec64623e1b77b155f18f44d044d279e22a199949977d88d5312b4c53694 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b825e7f24dffc549a6b4e5253938200392894b9ec211163432b51d2bdf1ba56 [INFO] running `Command { std: "docker" "start" "-a" "6b825e7f24dffc549a6b4e5253938200392894b9ec211163432b51d2bdf1ba56", kill_on_drop: false }` [INFO] [stderr] Compiling clipboard-sync-alt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `last_content_type` is never read [INFO] [stdout] --> src/main.rs:262:25 [INFO] [stdout] | [INFO] [stdout] 262 | last_content_type = current_type; [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: value assigned to `last_content_type` is never read [INFO] [stdout] --> src/main.rs:277:25 [INFO] [stdout] | [INFO] [stdout] 277 | last_content_type = current_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_content_type` is never read [INFO] [stdout] --> src/main.rs:284:21 [INFO] [stdout] | [INFO] [stdout] 284 | last_content_type = current_type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_content` is never used [INFO] [stdout] --> src/clipboard.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl ClipboardManager { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn has_content(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_enabled` and `is_enabled` are never used [INFO] [stdout] --> src/notification.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl NotificationManager { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn set_enabled(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/clipboard.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | fn png_to_rgba(&self, width: u32, height: u32, png_data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 111 | fn png_to_rgba(&self, width: u32, height: u32, png_data: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.83s [INFO] running `Command { std: "docker" "inspect" "6b825e7f24dffc549a6b4e5253938200392894b9ec211163432b51d2bdf1ba56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b825e7f24dffc549a6b4e5253938200392894b9ec211163432b51d2bdf1ba56", kill_on_drop: false }` [INFO] [stdout] 6b825e7f24dffc549a6b4e5253938200392894b9ec211163432b51d2bdf1ba56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+9f93af291970322f4f1c6315ccde4d7078201159" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cbfaf714fea7435f69b577bd939474234c62489ab2015d32e2f3d4011ae17904 [INFO] running `Command { std: "docker" "start" "-a" "cbfaf714fea7435f69b577bd939474234c62489ab2015d32e2f3d4011ae17904", kill_on_drop: false }` [INFO] [stderr] warning: value assigned to `last_content_type` is never read [INFO] [stderr] --> src/main.rs:262:25 [INFO] [stderr] | [INFO] [stderr] 262 | last_content_type = current_type; [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: value assigned to `last_content_type` is never read [INFO] [stderr] --> src/main.rs:277:25 [INFO] [stderr] | [INFO] [stderr] 277 | last_content_type = current_type; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `last_content_type` is never read [INFO] [stderr] --> src/main.rs:284:21 [INFO] [stderr] | [INFO] [stderr] 284 | last_content_type = current_type; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: method `has_content` is never used [INFO] [stderr] --> src/clipboard.rs:89:12 [INFO] [stderr] | [INFO] [stderr] 21 | impl ClipboardManager { [INFO] [stderr] | --------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 89 | pub fn has_content(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: methods `set_enabled` and `is_enabled` are never used [INFO] [stderr] --> src/notification.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl NotificationManager { [INFO] [stderr] | ------------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 41 | pub fn set_enabled(&mut self, enabled: bool) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 46 | pub fn is_enabled(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/clipboard.rs:111:20 [INFO] [stderr] | [INFO] [stderr] 111 | fn png_to_rgba(&self, width: u32, height: u32, png_data: &[u8]) -> Result { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 111 | fn png_to_rgba(&self, width: u32, height: u32, png_data: &[u8]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `clipboard-sync-alt` (bin "clipboard-sync-alt" test) generated 6 warnings (run `cargo fix --bin "clipboard-sync-alt" -p clipboard-sync-alt --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/clipboard_sync_alt-e90556ac33639b4e) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test clipboard::tests::test_clipboard_basic_operations ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- clipboard::tests::test_clipboard_basic_operations stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'clipboard::tests::test_clipboard_basic_operations' (24) panicked at src/clipboard.rs:134:47: [INFO] [stdout] 创建剪贴板管理器失败: 无法初始化剪贴板: Unknown error while interacting with the clipboard: X11 server connection timed out because it was unreachable [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: anyhow::error::::msg [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.100/src/backtrace.rs:27:14 [INFO] [stdout] 1: clipboard_sync_alt::clipboard::ClipboardManager::new::{{closure}} [INFO] [stdout] at ./src/clipboard.rs:25:26 [INFO] [stdout] 2: core::result::Result::map_err [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/result.rs:968:27 [INFO] [stdout] 3: clipboard_sync_alt::clipboard::ClipboardManager::new [INFO] [stdout] at ./src/clipboard.rs:25:14 [INFO] [stdout] 4: clipboard_sync_alt::clipboard::tests::test_clipboard_basic_operations [INFO] [stdout] at ./src/clipboard.rs:134:23 [INFO] [stdout] 5: clipboard_sync_alt::clipboard::tests::test_clipboard_basic_operations::{{closure}} [INFO] [stdout] at ./src/clipboard.rs:133:41 [INFO] [stdout] 6: core::ops::function::FnOnce::call_once [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 7: core::ops::function::FnOnce::call_once [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 8: test::__rust_begin_short_backtrace [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/test/src/lib.rs:663:18 [INFO] [stdout] 9: test::run_test_in_process::{{closure}} [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/test/src/lib.rs:686:74 [INFO] [stdout] 10: as core::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 11: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panicking.rs:590:40 [INFO] [stdout] 12: std::panicking::catch_unwind [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panicking.rs:553:19 [INFO] [stdout] 13: std::panic::catch_unwind [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panic.rs:359:14 [INFO] [stdout] 14: test::run_test_in_process [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/test/src/lib.rs:686:27 [INFO] [stdout] 15: test::run_test::{{closure}} [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/test/src/lib.rs:607:43 [INFO] [stdout] 16: test::run_test::{{closure}} [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/test/src/lib.rs:637:41 [INFO] [stdout] 17: std::sys::backtrace::__rust_begin_short_backtrace [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 18: std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}} [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/thread/mod.rs:562:17 [INFO] [stdout] 19: as core::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 20: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panicking.rs:590:40 [INFO] [stdout] 21: std::panicking::catch_unwind [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panicking.rs:553:19 [INFO] [stdout] 22: std::panic::catch_unwind [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panic.rs:359:14 [INFO] [stdout] 23: std::thread::Builder::spawn_unchecked_::{{closure}} [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/thread/mod.rs:560:30 [INFO] [stdout] 24: core::ops::function::FnOnce::call_once{{vtable.shim}} [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: as core::ops::function::FnOnce>::call_once [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/alloc/src/boxed.rs:2085:9 [INFO] [stdout] 26: std::sys::thread::unix::Thread::new::thread_start [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/sys/thread/unix.rs:124:17 [INFO] [stdout] 27: [INFO] [stdout] 28: clone [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x621b25a77122 - std::backtrace_rs::backtrace::libunwind::trace::h16affffe904e891e [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x621b25a77122 - std::backtrace_rs::backtrace::trace_unsynchronized::h5c14b13373ed4150 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x621b25a77122 - std::sys::backtrace::_print_fmt::hcbb507f162c816cc [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x621b25a77122 - ::fmt::h8be9aa933f14675f [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x621b25a87d6f - core::fmt::rt::Argument::fmt::h30ed739d33467c3a [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x621b25a87d6f - core::fmt::write::hfd0efbb002ac7eea [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/fmt/mod.rs:1469:25 [INFO] [stdout] 6: 0x621b25a42b13 - std::io::default_write_fmt::hd6d24501f2d7f8d3 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x621b25a42b13 - std::io::Write::write_fmt::h79eca2f72fc24111 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x621b25a4f542 - std::sys::backtrace::BacktraceLock::print::hf2554f6030d393f7 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x621b25a54a9f - std::panicking::default_hook::{{closure}}::h8873121c56335b01 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x621b25a54931 - std::panicking::default_hook::hbafefc2d196267a2 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x621b259529ae - as core::ops::function::Fn>::call::ha834d5846f91b30b [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/alloc/src/boxed.rs:2099:9 [INFO] [stdout] 12: 0x621b259529ae - test::test_main_with_exit_callback::{{closure}}::h63c167737eecb025 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x621b25a550af - as core::ops::function::Fn>::call::hbf9b0f7a281291fd [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/alloc/src/boxed.rs:2099:9 [INFO] [stdout] 14: 0x621b25a550af - std::panicking::panic_with_hook::h9f5b09d5adc1a745 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x621b25a54f0a - std::panicking::panic_handler::{{closure}}::h08111e483bdf6a89 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x621b25a4f679 - std::sys::backtrace::__rust_end_short_backtrace::h1b86e3414ecbbe8d [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x621b25a372dd - __rustc[b292c645e8102103]::rust_begin_unwind [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x621b25a904b0 - core::panicking::panic_fmt::h31cc490ecc8cc1fa [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x621b25a8fa76 - core::result::unwrap_failed::he05762ef9e6bdf9c [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/result.rs:1862:5 [INFO] [stdout] 20: 0x621b2593046e - core::result::Result::expect::h4ea8cb47644d77ee [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/result.rs:1185:23 [INFO] [stdout] 21: 0x621b2592f92a - clipboard_sync_alt::clipboard::tests::test_clipboard_basic_operations::h6281392be48188eb [INFO] [stdout] at /opt/rustwide/workdir/src/clipboard.rs:134:47 [INFO] [stdout] 22: 0x621b2592fab7 - clipboard_sync_alt::clipboard::tests::test_clipboard_basic_operations::{{closure}}::h7288120ea259b5c6 [INFO] [stdout] at /opt/rustwide/workdir/src/clipboard.rs:133:41 [INFO] [stdout] 23: 0x621b2592fe96 - core::ops::function::FnOnce::call_once::h8dfbe036a0f2d0f9 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x621b259527ab - core::ops::function::FnOnce::call_once::h2b2de5fdd23aab3e [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x621b259527ab - test::__rust_begin_short_backtrace::he551dd004770be01 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x621b2596680d - test::run_test_in_process::{{closure}}::h5f0b44080a35ed87 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x621b2596680d - as core::ops::function::FnOnce<()>>::call_once::h4dbf65d14893ecf5 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 28: 0x621b2596680d - std::panicking::catch_unwind::do_call::hc37c563b8a006285 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panicking.rs:590:40 [INFO] [stdout] 29: 0x621b2596680d - std::panicking::catch_unwind::h616b6e2e7a27f612 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panicking.rs:553:19 [INFO] [stdout] 30: 0x621b2596680d - std::panic::catch_unwind::h1e788dd57758e6d8 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x621b2596680d - test::run_test_in_process::hf073c2764f29f8ad [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x621b2596680d - test::run_test::{{closure}}::h3dc46b7a0c340fa6 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x621b2593fd54 - test::run_test::{{closure}}::h6a4da3c57ef4505f [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x621b2593fd54 - std::sys::backtrace::__rust_begin_short_backtrace::hfd8e44bc311a5d57 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 35: 0x621b259435aa - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h57c4ddec344fe24c [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/thread/mod.rs:562:17 [INFO] [stdout] 36: 0x621b259435aa - as core::ops::function::FnOnce<()>>::call_once::hd7cbe09591f06dfb [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 37: 0x621b259435aa - std::panicking::catch_unwind::do_call::hdcd076e8e993dfbc [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panicking.rs:590:40 [INFO] [stdout] 38: 0x621b259435aa - std::panicking::catch_unwind::h8f9f675f3756eab1 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panicking.rs:553:19 [INFO] [stdout] 39: 0x621b259435aa - std::panic::catch_unwind::he8f74a93abeceb9b [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x621b259435aa - std::thread::Builder::spawn_unchecked_::{{closure}}::he43db13a2caa41d5 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/thread/mod.rs:560:30 [INFO] [stdout] 41: 0x621b259435aa - core::ops::function::FnOnce::call_once{{vtable.shim}}::h8f3531a7e0d83514 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x621b25a4aa7f - as core::ops::function::FnOnce>::call_once::h6ff05134d80ef20e [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/alloc/src/boxed.rs:2085:9 [INFO] [stdout] 43: 0x621b25a4aa7f - std::sys::thread::unix::Thread::new::thread_start::h9a4a41a076a486e0 [INFO] [stdout] at /rustc/9f93af291970322f4f1c6315ccde4d7078201159/library/std/src/sys/thread/unix.rs:124:17 [INFO] [stdout] 44: 0x7b030ef3eaa4 - [INFO] [stdout] 45: 0x7b030efcba64 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] clipboard::tests::test_clipboard_basic_operations [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin clipboard-sync-alt` [INFO] running `Command { std: "docker" "inspect" "cbfaf714fea7435f69b577bd939474234c62489ab2015d32e2f3d4011ae17904", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbfaf714fea7435f69b577bd939474234c62489ab2015d32e2f3d4011ae17904", kill_on_drop: false }` [INFO] [stdout] cbfaf714fea7435f69b577bd939474234c62489ab2015d32e2f3d4011ae17904