[INFO] cloning repository https://github.com/bvinc/gxi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bvinc/gxi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbvinc%2Fgxi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbvinc%2Fgxi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 47d52cb536e6fa9b3c6ca2b6efb49e0efea30054 [INFO] testing bvinc/gxi against beta-2025-01-12 for beta-1.85-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbvinc%2Fgxi" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bvinc/gxi on toolchain beta-2025-01-12 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bvinc/gxi [INFO] finished tweaking git repo https://github.com/bvinc/gxi [INFO] tweaked toml for git repo https://github.com/bvinc/gxi written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/bvinc/gxi 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" "+beta-2025-01-12" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Updating git repository `https://github.com/google/xi-editor` [INFO] [stderr] Updating git submodule `https://github.com/xi-editor/syntect-resources` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bytecount v0.6.0 [INFO] [stderr] Downloaded plist v0.4.2 [INFO] [stderr] Downloaded filetime v0.2.10 [INFO] [stderr] Downloaded bincode v1.2.1 [INFO] [stderr] Downloaded pangocairo-sys v0.10.1 [INFO] [stderr] Downloaded dirs-sys-next v0.1.0 [INFO] [stderr] Downloaded gdk-pixbuf-sys v0.9.1 [INFO] [stderr] Downloaded dirs-next v1.0.0 [INFO] [stderr] Downloaded gdk-pixbuf v0.8.0 [INFO] [stderr] Downloaded atk v0.8.0 [INFO] [stderr] Downloaded gio-sys v0.9.1 [INFO] [stderr] Downloaded backtrace v0.3.41 [INFO] [stderr] Downloaded gdk v0.12.1 [INFO] [stderr] Downloaded gdk-sys v0.9.1 [INFO] [stderr] Downloaded gio v0.8.1 [INFO] [stderr] Downloaded ntapi v0.3.4 [INFO] [stderr] Downloaded glib v0.9.3 [INFO] [stderr] Downloaded gtk-sys v0.9.2 [INFO] [stderr] Downloaded syn v1.0.22 [INFO] [stderr] Downloaded pin-project-internal v0.4.17 [INFO] [stderr] Downloaded cc v1.0.53 [INFO] [stderr] Downloaded cairo-rs v0.8.1 [INFO] [stderr] Downloaded pin-project v0.4.17 [INFO] [stderr] Downloaded pango v0.8.0 [INFO] [stderr] Downloaded glib-sys v0.9.1 [INFO] [stderr] Downloaded gobject-sys v0.9.1 [INFO] [stderr] Downloaded notify v5.0.0-pre.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.13 [INFO] [stderr] Downloaded atk-sys v0.9.1 [INFO] [stderr] Downloaded pangocairo v0.9.0 [INFO] [stderr] Downloaded cairo-sys-rs v0.9.2 [INFO] [stderr] Downloaded pango-sys v0.9.1 [INFO] [stderr] Downloaded servo-fontconfig v0.5.0 [INFO] [stderr] Downloaded gtk v0.8.1 [INFO] [stderr] Downloaded syntect v3.3.0 [INFO] [stderr] Downloaded servo-fontconfig-sys v5.0.2 [INFO] [stderr] Downloaded freetype-sys v0.12.0 [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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aff959759d032e20dec22ba41d8bbc35112b0c12fbc9204bc746ad46892b5e49 [INFO] running `Command { std: "docker" "start" "-a" "aff959759d032e20dec22ba41d8bbc35112b0c12fbc9204bc746ad46892b5e49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aff959759d032e20dec22ba41d8bbc35112b0c12fbc9204bc746ad46892b5e49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aff959759d032e20dec22ba41d8bbc35112b0c12fbc9204bc746ad46892b5e49", kill_on_drop: false }` [INFO] [stdout] aff959759d032e20dec22ba41d8bbc35112b0c12fbc9204bc746ad46892b5e49 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 87ab31394e8d22a9e062d522b61130a310ef16fae4674b17538f856271ef218d [INFO] running `Command { std: "docker" "start" "-a" "87ab31394e8d22a9e062d522b61130a310ef16fae4674b17538f856271ef218d", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling proc-macro2 v1.0.13 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.22 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling cc v1.0.53 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling proc-macro-nested v0.1.4 [INFO] [stderr] Compiling proc-macro-hack v0.5.15 [INFO] [stderr] Compiling once_cell v1.4.0 [INFO] [stderr] Compiling futures-core v0.3.5 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Compiling futures-task v0.3.5 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling cmake v0.1.44 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling cairo-rs v0.8.1 [INFO] [stderr] Compiling smallvec v0.6.13 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling gio v0.8.1 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling pango v0.8.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling backtrace-sys v0.1.37 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling adler32 v1.0.4 [INFO] [stderr] Compiling glib-sys v0.9.1 [INFO] [stderr] Compiling gobject-sys v0.9.1 [INFO] [stderr] Compiling pango-sys v0.9.1 [INFO] [stderr] Compiling cairo-sys-rs v0.9.2 [INFO] [stderr] Compiling gio-sys v0.9.1 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.9.1 [INFO] [stderr] Compiling atk-sys v0.9.1 [INFO] [stderr] Compiling gdk-sys v0.9.1 [INFO] [stderr] Compiling freetype-sys v0.12.0 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Compiling net2 v0.2.34 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling aho-corasick v0.7.10 [INFO] [stderr] Compiling gtk-sys v0.9.2 [INFO] [stderr] Compiling pangocairo-sys v0.10.1 [INFO] [stderr] Compiling gdk-pixbuf v0.8.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling regex-syntax v0.6.17 [INFO] [stderr] Compiling lazycell v1.2.1 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling futures-io v0.3.5 [INFO] [stderr] Compiling line-wrap v0.1.1 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling walkdir v2.3.1 [INFO] [stderr] Compiling inotify-sys v0.1.3 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling miniz_oxide v0.3.6 [INFO] [stderr] Compiling servo-fontconfig-sys v5.0.2 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling parking_lot_core v0.2.14 [INFO] [stderr] Compiling gdk v0.12.1 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling atk v0.8.0 [INFO] [stderr] Compiling parking_lot v0.4.8 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling chashmap v2.2.2 [INFO] [stderr] Compiling crossbeam-channel v0.3.9 [INFO] [stderr] Compiling flate2 v1.0.14 [INFO] [stderr] Compiling inotify v0.7.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling filetime v0.2.10 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling anymap v0.12.1 [INFO] [stderr] Compiling pangocairo v0.9.0 [INFO] [stderr] Compiling bytecount v0.6.0 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling gtk v0.8.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling backtrace v0.3.41 [INFO] [stderr] Compiling dirs-sys-next v0.1.0 [INFO] [stderr] Compiling termcolor v1.1.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling xi-unicode v0.2.0 (https://github.com/google/xi-editor?rev=65911d9#65911d91) [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling servo-fontconfig v0.5.0 [INFO] [stderr] Compiling mio v0.7.0 [INFO] [stderr] Compiling dirs-next v1.0.0 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stderr] Compiling notify v5.0.0-pre.1 [INFO] [stderr] Compiling regex v1.3.7 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling pin-project-internal v0.4.17 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling pin-project v0.4.17 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling futures-executor v0.3.5 [INFO] [stderr] Compiling glib v0.9.3 [INFO] [stderr] Compiling serde_json v1.0.53 [INFO] [stderr] Compiling bincode v1.2.1 [INFO] [stderr] Compiling plist v0.4.2 [INFO] [stderr] Compiling toml v0.5.6 [INFO] [stderr] Compiling xi-rope v0.3.0 (https://github.com/google/xi-editor?rev=65911d9#65911d91) [INFO] [stderr] Compiling xi-trace v0.2.0 (https://github.com/google/xi-editor?rev=65911d9#65911d91) [INFO] [stderr] Compiling syntect v3.3.0 [INFO] [stderr] Compiling xi-rpc v0.3.0 (https://github.com/google/xi-editor?rev=65911d9#65911d91) [INFO] [stderr] Compiling xi-core-lib v0.3.0 (https://github.com/google/xi-editor?rev=65911d9#65911d91) [INFO] [stderr] Compiling gxi v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/channel/source.rs:54:48 [INFO] [stdout] | [INFO] [stdout] 54 | let source = g_source_new(&mut *funcs, mem::size_of::>() as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/channel/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | unused_qualifications [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 54 - let source = g_source_new(&mut *funcs, mem::size_of::>() as u32); [INFO] [stdout] 54 + let source = g_source_new(&mut *funcs, size_of::>() as u32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rpc::Core` [INFO] [stdout] --> src/prefs_win.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::rpc::Core; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glib::StaticType` [INFO] [stdout] --> src/scrollable_drawing_area.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use glib::StaticType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ScrollablePolicy` [INFO] [stdout] --> src/scrollable_drawing_area.rs:17:48 [INFO] [stdout] | [INFO] [stdout] 17 | use gtk::{Adjustment, DrawingArea, Scrollable, ScrollablePolicy}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GtkAdjustment`, `GtkDrawingArea`, and `GtkWidget` [INFO] [stdout] --> src/scrollable_drawing_area.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | use gtk_sys::{GtkAdjustment, GtkDrawingArea, GtkWidget}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::c_int` [INFO] [stdout] --> src/scrollable_drawing_area.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use libc::c_int; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/scrollable_drawing_area.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/scrollable_drawing_area.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glib::Cast` [INFO] [stdout] --> src/scrollable_drawing_area.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | use glib::Cast; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GtkWidget` [INFO] [stdout] --> src/scrollable_drawing_area.rs:54:71 [INFO] [stdout] | [INFO] [stdout] 54 | use gtk_sys::{GtkAdjustment, GtkDrawingArea, GtkDrawingAreaClass, GtkWidget}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:71:81 [INFO] [stdout] | [INFO] [stdout] 71 | Option (())>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - Option (())>, [INFO] [stdout] 71 + Option ()>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:128:41 [INFO] [stdout] | [INFO] [stdout] 128 | fn value_changed_impl(&self) -> (()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 128 - fn value_changed_impl(&self) -> (()) { [INFO] [stdout] 128 + fn value_changed_impl(&self) -> () { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:291:14 [INFO] [stdout] | [INFO] [stdout] 291 | ) -> (()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 291 - ) -> (()) { [INFO] [stdout] 291 + ) -> () { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:458:46 [INFO] [stdout] | [INFO] [stdout] 458 | fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 458 - fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId; [INFO] [stdout] 458 + fn connect_value_changed () + 'static>(&self, f: F) -> glib::SignalHandlerId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:472:46 [INFO] [stdout] | [INFO] [stdout] 472 | fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 472 - fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId { [INFO] [stdout] 472 + fn connect_value_changed () + 'static>(&self, f: F) -> glib::SignalHandlerId { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:474:41 [INFO] [stdout] | [INFO] [stdout] 474 | let f: Box (()) + 'static>> = Box::new(Box::new(f)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 474 - let f: Box (()) + 'static>> = Box::new(Box::new(f)); [INFO] [stdout] 474 + let f: Box () + 'static>> = Box::new(Box::new(f)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:576:6 [INFO] [stdout] | [INFO] [stdout] 576 | ) -> (()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 576 - ) -> (()) [INFO] [stdout] 576 + ) -> () [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:582:25 [INFO] [stdout] | [INFO] [stdout] 582 | let f: &&(Fn(&P) -> (()) + 'static) = mem::transmute(f); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 582 - let f: &&(Fn(&P) -> (()) + 'static) = mem::transmute(f); [INFO] [stdout] 582 + let f: &&(Fn(&P) -> () + 'static) = mem::transmute(f); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arg` and `SubCommand` [INFO] [stdout] --> src/main.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use clap::{Arg, SubCommand}; [INFO] [stdout] | ^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/scrollable_drawing_area.rs:411:31 [INFO] [stdout] | [INFO] [stdout] 411 | use std::sync::{Once, ONCE_INIT}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/scrollable_drawing_area.rs:414:29 [INFO] [stdout] | [INFO] [stdout] 414 | static ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 414 | static ONCE: Once = Once::new(); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | impl IdleCallback for F { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | impl IdleCallback for F { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 49 | fn call(self: Box, a: &Any); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | fn call(self: Box, a: &dyn Any); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | fn call(self: Box, a: &Any) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 53 | fn call(self: Box, a: &dyn Any) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `gtk::AdjustmentExt::value_changed` [INFO] [stdout] --> src/edit_view.rs:702:18 [INFO] [stdout] | [INFO] [stdout] 702 | hadj.value_changed(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scrollable_drawing_area.rs:138:54 [INFO] [stdout] | [INFO] [stdout] 138 | let params: &[glib::Value] = &[(self as &glib::ToValue).to_value()]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | let params: &[glib::Value] = &[(self as &dyn glib::ToValue).to_value()]; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scrollable_drawing_area.rs:474:28 [INFO] [stdout] | [INFO] [stdout] 474 | let f: Box (()) + 'static>> = Box::new(Box::new(f)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 474 | let f: Box (()) + 'static>> = Box::new(Box::new(f)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scrollable_drawing_area.rs:582:15 [INFO] [stdout] | [INFO] [stdout] 582 | let f: &&(Fn(&P) -> (()) + 'static) = mem::transmute(f); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 582 | let f: &&(dyn Fn(&P) -> (()) + 'static) = mem::transmute(f); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/edit_view.rs:250:73 [INFO] [stdout] | [INFO] [stdout] 250 | search_entry.connect_activate(clone!(@strong edit_view => move |w| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/edit_view.rs:254:76 [INFO] [stdout] | [INFO] [stdout] 254 | search_entry.connect_stop_search(clone!(@strong edit_view => move |w| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/edit_view.rs:268:74 [INFO] [stdout] | [INFO] [stdout] 268 | replace_button.connect_clicked(clone!(@strong edit_view => move |w| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/edit_view.rs:272:78 [INFO] [stdout] | [INFO] [stdout] 272 | replace_all_button.connect_clicked(clone!(@strong edit_view => move |w| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_width` [INFO] [stdout] --> src/edit_view.rs:362:14 [INFO] [stdout] | [INFO] [stdout] 362 | let (text_width, text_height, vadj, hadj) = { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hadj` [INFO] [stdout] --> src/edit_view.rs:362:45 [INFO] [stdout] | [INFO] [stdout] 362 | let (text_width, text_height, vadj, hadj) = { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hadj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `padding` [INFO] [stdout] --> src/edit_view.rs:640:13 [INFO] [stdout] | [INFO] [stdout] 640 | let padding: usize = format!("{}", num_lines.saturating_sub(1)).len(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_padding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_state` [INFO] [stdout] --> src/edit_view.rs:712:9 [INFO] [stdout] | [INFO] [stdout] 712 | main_state: &MainState, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es` [INFO] [stdout] --> src/edit_view.rs:911:37 [INFO] [stdout] | [INFO] [stdout] 911 | pub fn handle_scroll(&mut self, es: &EventScroll) -> Inhibit { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_es` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefs_win` [INFO] [stdout] --> src/main_win.rs:393:13 [INFO] [stdout] | [INFO] [stdout] 393 | let prefs_win = PrefsWin::new(&self.window, &main_state, controller.clone()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefs_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `font_combo_box` [INFO] [stdout] --> src/prefs_win.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let font_combo_box: ComboBoxText = builder.get_object("font_combo_box").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_font_combo_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scrollable_drawing_area.rs:156:29 [INFO] [stdout] | [INFO] [stdout] 156 | let mut private = self.get_priv(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scrollable_drawing_area.rs:163:29 [INFO] [stdout] | [INFO] [stdout] 163 | let mut private = self.get_priv(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scrollable_drawing_area.rs:170:29 [INFO] [stdout] | [INFO] [stdout] 170 | let mut private = self.get_priv(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scrollable_drawing_area.rs:177:29 [INFO] [stdout] | [INFO] [stdout] 177 | let mut private = self.get_priv(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `application` [INFO] [stdout] --> src/main.rs:187:69 [INFO] [stdout] | [INFO] [stdout] 187 | application.connect_activate(clone!(@strong controller => move |application| { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_application` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:193:73 [INFO] [stdout] | [INFO] [stdout] 193 | application.connect_open(clone!(@strong controller => move |_,files,s| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IdleCallback` is never used [INFO] [stdout] --> src/main.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | trait IdleCallback: Send { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `events` and `observers` are never read [INFO] [stdout] --> src/channel/mod.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 137 | struct _EventStream { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 138 | events: VecDeque, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 139 | locked: bool, [INFO] [stdout] 140 | observers: Vec>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SourceData` is never constructed [INFO] [stdout] --> src/channel/mod.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | struct SourceData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_callback` and `get_stream` are never used [INFO] [stdout] --> src/channel/mod.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 178 | impl EventStream { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 179 | fn get_callback(&self) -> Rc>>> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn get_stream(&self) -> Rc>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `close`, `emit`, `lock`, `observe`, and `set_callback` are never used [INFO] [stdout] --> src/channel/mod.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 188 | impl EventStream { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 189 | /// Create a new event stream. [INFO] [stdout] 190 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn close(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn emit(&self, event: MSG) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn lock(&self) -> Lock { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn observe(&self, callback: CALLBACK) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn set_callback(&self, callback: CALLBACK) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `source_get` is never used [INFO] [stdout] --> src/channel/source.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn source_get(source: &Source) -> &T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `request_text` is never used [INFO] [stdout] --> src/clipboard.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ClipboardRequest { [INFO] [stdout] | ---------------- method in this trait [INFO] [stdout] 9 | fn request_text(&self, callback: F); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/controller.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Controller { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn save(&self, view_id: &str, file_path: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `map` is never read [INFO] [stdout] --> src/linecache.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct LineCache { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 73 | map: HashMap, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LineCache` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_missing` is never used [INFO] [stdout] --> src/linecache.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl LineCache { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn get_missing(&self, first: u64, last: u64) -> Vec<(u64, u64)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `builder` is never read [INFO] [stdout] --> src/main_win.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct MainWin { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | builder: Builder, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `controller` and `window` are never read [INFO] [stdout] --> src/prefs_win.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct PrefsWin { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 12 | controller: ControllerRef, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | window: Window, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_theme`, `gesture_multi_line_select`, `gesture_multi_word_select`, and `highlight_find` are never used [INFO] [stdout] --> src/rpc.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Core { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn set_theme(&self, theme_name: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub fn gesture_multi_line_select(&self, view_id: &str, line: u64, col: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 352 | pub fn gesture_multi_word_select(&self, view_id: &str, line: u64, col: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 473 | pub fn highlight_find(&self, view_id: &str, visible: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/scrollable_drawing_area.rs:458:8 [INFO] [stdout] | [INFO] [stdout] 457 | pub trait ScrollableDrawingAreaExt { [INFO] [stdout] | ------------------------ methods in this trait [INFO] [stdout] 458 | fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 459 | fn size_allocate(&self, i: u32, j: u32) -> u32; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 460 | fn get_property_hadjustment(&self) -> Adjustment; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 461 | fn get_property_hscroll_policy(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 462 | fn get_property_vadjustment(&self) -> Adjustment; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 463 | fn get_property_vscroll_policy(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 464 | fn set_property_hadjustment(&self, v: Adjustment); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 465 | fn set_property_hscroll_policy(&self, v: u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 466 | fn set_property_vadjustment(&self, v: Adjustment); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 467 | fn set_property_vscroll_policy(&self, v: u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Properties` is never used [INFO] [stdout] --> src/scrollable_drawing_area.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | enum Properties { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | / self.sender.send(CoreMsg::Notification { [INFO] [stdout] 108 | | method: method2, [INFO] [stdout] 109 | | params: params2, [INFO] [stdout] 110 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 107 | let _ = self.sender.send(CoreMsg::Notification { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:2:54 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Clone, PartialEq, Eq, Default, Hash, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Style` [INFO] [stdout] ... [INFO] [stdout] 8 | pub struct Style { [INFO] [stdout] | ----- `Style` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:2:65 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Clone, PartialEq, Eq, Default, Hash, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Style` [INFO] [stdout] ... [INFO] [stdout] 8 | pub struct Style { [INFO] [stdout] | ----- `Style` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Color` [INFO] [stdout] 27 | pub struct Color { [INFO] [stdout] | ----- `Color` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:26:56 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Color` [INFO] [stdout] 27 | pub struct Color { [INFO] [stdout] | ----- `Color` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Clone, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_UnderlineOption` [INFO] [stdout] 39 | pub enum UnderlineOption { [INFO] [stdout] | --------------- `UnderlineOption` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:38:35 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Clone, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_UnderlineOption` [INFO] [stdout] 39 | pub enum UnderlineOption { [INFO] [stdout] | --------------- `UnderlineOption` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Clone, Debug, Default, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_ThemeSettings` [INFO] [stdout] 50 | pub struct ThemeSettings { [INFO] [stdout] | ------------- `ThemeSettings` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:49:44 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Clone, Debug, Default, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ThemeSettings` [INFO] [stdout] 50 | pub struct ThemeSettings { [INFO] [stdout] | ------------- `ThemeSettings` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 18s [INFO] running `Command { std: "docker" "inspect" "87ab31394e8d22a9e062d522b61130a310ef16fae4674b17538f856271ef218d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87ab31394e8d22a9e062d522b61130a310ef16fae4674b17538f856271ef218d", kill_on_drop: false }` [INFO] [stdout] 87ab31394e8d22a9e062d522b61130a310ef16fae4674b17538f856271ef218d [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 917ae3964cfd4ed35271105a2dfb9355ebd222c9109a8316d76fdfb6092e06f7 [INFO] running `Command { std: "docker" "start" "-a" "917ae3964cfd4ed35271105a2dfb9355ebd222c9109a8316d76fdfb6092e06f7", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling gxi v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/channel/source.rs:54:48 [INFO] [stdout] | [INFO] [stdout] 54 | let source = g_source_new(&mut *funcs, mem::size_of::>() as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/channel/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | unused_qualifications [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 54 - let source = g_source_new(&mut *funcs, mem::size_of::>() as u32); [INFO] [stdout] 54 + let source = g_source_new(&mut *funcs, size_of::>() as u32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rpc::Core` [INFO] [stdout] --> src/prefs_win.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::rpc::Core; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glib::StaticType` [INFO] [stdout] --> src/scrollable_drawing_area.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use glib::StaticType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ScrollablePolicy` [INFO] [stdout] --> src/scrollable_drawing_area.rs:17:48 [INFO] [stdout] | [INFO] [stdout] 17 | use gtk::{Adjustment, DrawingArea, Scrollable, ScrollablePolicy}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GtkAdjustment`, `GtkDrawingArea`, and `GtkWidget` [INFO] [stdout] --> src/scrollable_drawing_area.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | use gtk_sys::{GtkAdjustment, GtkDrawingArea, GtkWidget}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc::c_int` [INFO] [stdout] --> src/scrollable_drawing_area.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use libc::c_int; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Cell` [INFO] [stdout] --> src/scrollable_drawing_area.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::cell::Cell; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/scrollable_drawing_area.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glib::Cast` [INFO] [stdout] --> src/scrollable_drawing_area.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | use glib::Cast; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GtkWidget` [INFO] [stdout] --> src/scrollable_drawing_area.rs:54:71 [INFO] [stdout] | [INFO] [stdout] 54 | use gtk_sys::{GtkAdjustment, GtkDrawingArea, GtkDrawingAreaClass, GtkWidget}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:71:81 [INFO] [stdout] | [INFO] [stdout] 71 | Option (())>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - Option (())>, [INFO] [stdout] 71 + Option ()>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:128:41 [INFO] [stdout] | [INFO] [stdout] 128 | fn value_changed_impl(&self) -> (()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 128 - fn value_changed_impl(&self) -> (()) { [INFO] [stdout] 128 + fn value_changed_impl(&self) -> () { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:291:14 [INFO] [stdout] | [INFO] [stdout] 291 | ) -> (()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 291 - ) -> (()) { [INFO] [stdout] 291 + ) -> () { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:458:46 [INFO] [stdout] | [INFO] [stdout] 458 | fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 458 - fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId; [INFO] [stdout] 458 + fn connect_value_changed () + 'static>(&self, f: F) -> glib::SignalHandlerId; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:472:46 [INFO] [stdout] | [INFO] [stdout] 472 | fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 472 - fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId { [INFO] [stdout] 472 + fn connect_value_changed () + 'static>(&self, f: F) -> glib::SignalHandlerId { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:474:41 [INFO] [stdout] | [INFO] [stdout] 474 | let f: Box (()) + 'static>> = Box::new(Box::new(f)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 474 - let f: Box (()) + 'static>> = Box::new(Box::new(f)); [INFO] [stdout] 474 + let f: Box () + 'static>> = Box::new(Box::new(f)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:576:6 [INFO] [stdout] | [INFO] [stdout] 576 | ) -> (()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 576 - ) -> (()) [INFO] [stdout] 576 + ) -> () [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/scrollable_drawing_area.rs:582:25 [INFO] [stdout] | [INFO] [stdout] 582 | let f: &&(Fn(&P) -> (()) + 'static) = mem::transmute(f); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 582 - let f: &&(Fn(&P) -> (()) + 'static) = mem::transmute(f); [INFO] [stdout] 582 + let f: &&(Fn(&P) -> () + 'static) = mem::transmute(f); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arg` and `SubCommand` [INFO] [stdout] --> src/main.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use clap::{Arg, SubCommand}; [INFO] [stdout] | ^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/scrollable_drawing_area.rs:411:31 [INFO] [stdout] | [INFO] [stdout] 411 | use std::sync::{Once, ONCE_INIT}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/scrollable_drawing_area.rs:414:29 [INFO] [stdout] | [INFO] [stdout] 414 | static ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 414 | static ONCE: Once = Once::new(); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | impl IdleCallback for F { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | impl IdleCallback for F { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 49 | fn call(self: Box, a: &Any); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | fn call(self: Box, a: &dyn Any); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | fn call(self: Box, a: &Any) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 53 | fn call(self: Box, a: &dyn Any) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `gtk::AdjustmentExt::value_changed` [INFO] [stdout] --> src/edit_view.rs:702:18 [INFO] [stdout] | [INFO] [stdout] 702 | hadj.value_changed(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scrollable_drawing_area.rs:138:54 [INFO] [stdout] | [INFO] [stdout] 138 | let params: &[glib::Value] = &[(self as &glib::ToValue).to_value()]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | let params: &[glib::Value] = &[(self as &dyn glib::ToValue).to_value()]; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scrollable_drawing_area.rs:474:28 [INFO] [stdout] | [INFO] [stdout] 474 | let f: Box (()) + 'static>> = Box::new(Box::new(f)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 474 | let f: Box (()) + 'static>> = Box::new(Box::new(f)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scrollable_drawing_area.rs:582:15 [INFO] [stdout] | [INFO] [stdout] 582 | let f: &&(Fn(&P) -> (()) + 'static) = mem::transmute(f); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 582 | let f: &&(dyn Fn(&P) -> (()) + 'static) = mem::transmute(f); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/edit_view.rs:250:73 [INFO] [stdout] | [INFO] [stdout] 250 | search_entry.connect_activate(clone!(@strong edit_view => move |w| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/edit_view.rs:254:76 [INFO] [stdout] | [INFO] [stdout] 254 | search_entry.connect_stop_search(clone!(@strong edit_view => move |w| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/edit_view.rs:268:74 [INFO] [stdout] | [INFO] [stdout] 268 | replace_button.connect_clicked(clone!(@strong edit_view => move |w| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/edit_view.rs:272:78 [INFO] [stdout] | [INFO] [stdout] 272 | replace_all_button.connect_clicked(clone!(@strong edit_view => move |w| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_width` [INFO] [stdout] --> src/edit_view.rs:362:14 [INFO] [stdout] | [INFO] [stdout] 362 | let (text_width, text_height, vadj, hadj) = { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hadj` [INFO] [stdout] --> src/edit_view.rs:362:45 [INFO] [stdout] | [INFO] [stdout] 362 | let (text_width, text_height, vadj, hadj) = { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hadj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `padding` [INFO] [stdout] --> src/edit_view.rs:640:13 [INFO] [stdout] | [INFO] [stdout] 640 | let padding: usize = format!("{}", num_lines.saturating_sub(1)).len(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_padding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_state` [INFO] [stdout] --> src/edit_view.rs:712:9 [INFO] [stdout] | [INFO] [stdout] 712 | main_state: &MainState, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es` [INFO] [stdout] --> src/edit_view.rs:911:37 [INFO] [stdout] | [INFO] [stdout] 911 | pub fn handle_scroll(&mut self, es: &EventScroll) -> Inhibit { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_es` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefs_win` [INFO] [stdout] --> src/main_win.rs:393:13 [INFO] [stdout] | [INFO] [stdout] 393 | let prefs_win = PrefsWin::new(&self.window, &main_state, controller.clone()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefs_win` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `font_combo_box` [INFO] [stdout] --> src/prefs_win.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let font_combo_box: ComboBoxText = builder.get_object("font_combo_box").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_font_combo_box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scrollable_drawing_area.rs:156:29 [INFO] [stdout] | [INFO] [stdout] 156 | let mut private = self.get_priv(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scrollable_drawing_area.rs:163:29 [INFO] [stdout] | [INFO] [stdout] 163 | let mut private = self.get_priv(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scrollable_drawing_area.rs:170:29 [INFO] [stdout] | [INFO] [stdout] 170 | let mut private = self.get_priv(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scrollable_drawing_area.rs:177:29 [INFO] [stdout] | [INFO] [stdout] 177 | let mut private = self.get_priv(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `application` [INFO] [stdout] --> src/main.rs:187:69 [INFO] [stdout] | [INFO] [stdout] 187 | application.connect_activate(clone!(@strong controller => move |application| { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_application` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:193:73 [INFO] [stdout] | [INFO] [stdout] 193 | application.connect_open(clone!(@strong controller => move |_,files,s| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IdleCallback` is never used [INFO] [stdout] --> src/main.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | trait IdleCallback: Send { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `events` and `observers` are never read [INFO] [stdout] --> src/channel/mod.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 137 | struct _EventStream { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 138 | events: VecDeque, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 139 | locked: bool, [INFO] [stdout] 140 | observers: Vec>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SourceData` is never constructed [INFO] [stdout] --> src/channel/mod.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | struct SourceData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_callback` and `get_stream` are never used [INFO] [stdout] --> src/channel/mod.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 178 | impl EventStream { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 179 | fn get_callback(&self) -> Rc>>> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn get_stream(&self) -> Rc>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `close`, `emit`, `lock`, `observe`, and `set_callback` are never used [INFO] [stdout] --> src/channel/mod.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 188 | impl EventStream { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 189 | /// Create a new event stream. [INFO] [stdout] 190 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn close(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn emit(&self, event: MSG) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn lock(&self) -> Lock { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn observe(&self, callback: CALLBACK) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn set_callback(&self, callback: CALLBACK) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `source_get` is never used [INFO] [stdout] --> src/channel/source.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn source_get(source: &Source) -> &T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `request_text` is never used [INFO] [stdout] --> src/clipboard.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ClipboardRequest { [INFO] [stdout] | ---------------- method in this trait [INFO] [stdout] 9 | fn request_text(&self, callback: F); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/controller.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Controller { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn save(&self, view_id: &str, file_path: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `map` is never read [INFO] [stdout] --> src/linecache.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct LineCache { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 73 | map: HashMap, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LineCache` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_missing` is never used [INFO] [stdout] --> src/linecache.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl LineCache { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn get_missing(&self, first: u64, last: u64) -> Vec<(u64, u64)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `builder` is never read [INFO] [stdout] --> src/main_win.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct MainWin { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | builder: Builder, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `controller` and `window` are never read [INFO] [stdout] --> src/prefs_win.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct PrefsWin { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 12 | controller: ControllerRef, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | window: Window, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_theme`, `gesture_multi_line_select`, `gesture_multi_word_select`, and `highlight_find` are never used [INFO] [stdout] --> src/rpc.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Core { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn set_theme(&self, theme_name: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub fn gesture_multi_line_select(&self, view_id: &str, line: u64, col: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 352 | pub fn gesture_multi_word_select(&self, view_id: &str, line: u64, col: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 473 | pub fn highlight_find(&self, view_id: &str, visible: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/scrollable_drawing_area.rs:458:8 [INFO] [stdout] | [INFO] [stdout] 457 | pub trait ScrollableDrawingAreaExt { [INFO] [stdout] | ------------------------ methods in this trait [INFO] [stdout] 458 | fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 459 | fn size_allocate(&self, i: u32, j: u32) -> u32; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 460 | fn get_property_hadjustment(&self) -> Adjustment; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 461 | fn get_property_hscroll_policy(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 462 | fn get_property_vadjustment(&self) -> Adjustment; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 463 | fn get_property_vscroll_policy(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 464 | fn set_property_hadjustment(&self, v: Adjustment); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 465 | fn set_property_hscroll_policy(&self, v: u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 466 | fn set_property_vadjustment(&self, v: Adjustment); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 467 | fn set_property_vscroll_policy(&self, v: u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Properties` is never used [INFO] [stdout] --> src/scrollable_drawing_area.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | enum Properties { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | / self.sender.send(CoreMsg::Notification { [INFO] [stdout] 108 | | method: method2, [INFO] [stdout] 109 | | params: params2, [INFO] [stdout] 110 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 107 | let _ = self.sender.send(CoreMsg::Notification { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:2:54 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Clone, PartialEq, Eq, Default, Hash, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Style` [INFO] [stdout] ... [INFO] [stdout] 8 | pub struct Style { [INFO] [stdout] | ----- `Style` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:2:65 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Clone, PartialEq, Eq, Default, Hash, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Style` [INFO] [stdout] ... [INFO] [stdout] 8 | pub struct Style { [INFO] [stdout] | ----- `Style` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Color` [INFO] [stdout] 27 | pub struct Color { [INFO] [stdout] | ----- `Color` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:26:56 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Color` [INFO] [stdout] 27 | pub struct Color { [INFO] [stdout] | ----- `Color` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Clone, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_UnderlineOption` [INFO] [stdout] 39 | pub enum UnderlineOption { [INFO] [stdout] | --------------- `UnderlineOption` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:38:35 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Clone, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_UnderlineOption` [INFO] [stdout] 39 | pub enum UnderlineOption { [INFO] [stdout] | --------------- `UnderlineOption` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:49:33 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Clone, Debug, Default, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_ThemeSettings` [INFO] [stdout] 50 | pub struct ThemeSettings { [INFO] [stdout] | ------------- `ThemeSettings` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/proto.rs:49:44 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Clone, Debug, Default, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ThemeSettings` [INFO] [stdout] 50 | pub struct ThemeSettings { [INFO] [stdout] | ------------- `ThemeSettings` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 6.42s [INFO] running `Command { std: "docker" "inspect" "917ae3964cfd4ed35271105a2dfb9355ebd222c9109a8316d76fdfb6092e06f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "917ae3964cfd4ed35271105a2dfb9355ebd222c9109a8316d76fdfb6092e06f7", kill_on_drop: false }` [INFO] [stdout] 917ae3964cfd4ed35271105a2dfb9355ebd222c9109a8316d76fdfb6092e06f7 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3b51923fa7246219acc2a7eb5e3bc27e3e710302294d404b0c16815769511354 [INFO] running `Command { std: "docker" "start" "-a" "3b51923fa7246219acc2a7eb5e3bc27e3e710302294d404b0c16815769511354", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] warning: unnecessary qualification [INFO] [stderr] --> src/channel/source.rs:54:48 [INFO] [stderr] | [INFO] [stderr] 54 | let source = g_source_new(&mut *funcs, mem::size_of::>() as u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/channel/mod.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | unused_qualifications [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: remove the unnecessary path segments [INFO] [stderr] | [INFO] [stderr] 54 - let source = g_source_new(&mut *funcs, mem::size_of::>() as u32); [INFO] [stderr] 54 + let source = g_source_new(&mut *funcs, size_of::>() as u32); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::rpc::Core` [INFO] [stderr] --> src/prefs_win.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::rpc::Core; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `glib::StaticType` [INFO] [stderr] --> src/scrollable_drawing_area.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use glib::StaticType; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ScrollablePolicy` [INFO] [stderr] --> src/scrollable_drawing_area.rs:17:48 [INFO] [stderr] | [INFO] [stderr] 17 | use gtk::{Adjustment, DrawingArea, Scrollable, ScrollablePolicy}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `GtkAdjustment`, `GtkDrawingArea`, and `GtkWidget` [INFO] [stderr] --> src/scrollable_drawing_area.rs:19:15 [INFO] [stderr] | [INFO] [stderr] 19 | use gtk_sys::{GtkAdjustment, GtkDrawingArea, GtkWidget}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `libc::c_int` [INFO] [stderr] --> src/scrollable_drawing_area.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | use libc::c_int; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::cell::Cell` [INFO] [stderr] --> src/scrollable_drawing_area.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use std::cell::Cell; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ptr` [INFO] [stderr] --> src/scrollable_drawing_area.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 33 | use std::ptr; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `glib::Cast` [INFO] [stderr] --> src/scrollable_drawing_area.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | use glib::Cast; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `GtkWidget` [INFO] [stderr] --> src/scrollable_drawing_area.rs:54:71 [INFO] [stderr] | [INFO] [stderr] 54 | use gtk_sys::{GtkAdjustment, GtkDrawingArea, GtkDrawingAreaClass, GtkWidget}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/scrollable_drawing_area.rs:71:81 [INFO] [stderr] | [INFO] [stderr] 71 | Option (())>, [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 71 - Option (())>, [INFO] [stderr] 71 + Option ()>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/scrollable_drawing_area.rs:128:41 [INFO] [stderr] | [INFO] [stderr] 128 | fn value_changed_impl(&self) -> (()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 128 - fn value_changed_impl(&self) -> (()) { [INFO] [stderr] 128 + fn value_changed_impl(&self) -> () { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/scrollable_drawing_area.rs:291:14 [INFO] [stderr] | [INFO] [stderr] 291 | ) -> (()) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 291 - ) -> (()) { [INFO] [stderr] 291 + ) -> () { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/scrollable_drawing_area.rs:458:46 [INFO] [stderr] | [INFO] [stderr] 458 | fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId; [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 458 - fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId; [INFO] [stderr] 458 + fn connect_value_changed () + 'static>(&self, f: F) -> glib::SignalHandlerId; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/scrollable_drawing_area.rs:472:46 [INFO] [stderr] | [INFO] [stderr] 472 | fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 472 - fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId { [INFO] [stderr] 472 + fn connect_value_changed () + 'static>(&self, f: F) -> glib::SignalHandlerId { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/scrollable_drawing_area.rs:474:41 [INFO] [stderr] | [INFO] [stderr] 474 | let f: Box (()) + 'static>> = Box::new(Box::new(f)); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 474 - let f: Box (()) + 'static>> = Box::new(Box::new(f)); [INFO] [stderr] 474 + let f: Box () + 'static>> = Box::new(Box::new(f)); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/scrollable_drawing_area.rs:576:6 [INFO] [stderr] | [INFO] [stderr] 576 | ) -> (()) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 576 - ) -> (()) [INFO] [stderr] 576 + ) -> () [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/scrollable_drawing_area.rs:582:25 [INFO] [stderr] | [INFO] [stderr] 582 | let f: &&(Fn(&P) -> (()) + 'static) = mem::transmute(f); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 582 - let f: &&(Fn(&P) -> (()) + 'static) = mem::transmute(f); [INFO] [stderr] 582 + let f: &&(Fn(&P) -> () + 'static) = mem::transmute(f); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Arg` and `SubCommand` [INFO] [stderr] --> src/main.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | use clap::{Arg, SubCommand}; [INFO] [stderr] | ^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stderr] --> src/scrollable_drawing_area.rs:411:31 [INFO] [stderr] | [INFO] [stderr] 411 | use std::sync::{Once, ONCE_INIT}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stderr] --> src/scrollable_drawing_area.rs:414:29 [INFO] [stderr] | [INFO] [stderr] 414 | static ONCE: Once = ONCE_INIT; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: replace the use of the deprecated constant [INFO] [stderr] | [INFO] [stderr] 414 | static ONCE: Once = Once::new(); [INFO] [stderr] | ~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:52:17 [INFO] [stderr] | [INFO] [stderr] 52 | impl IdleCallback for F { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 52 | impl IdleCallback for F { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:49:34 [INFO] [stderr] | [INFO] [stderr] 49 | fn call(self: Box, a: &Any); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 49 | fn call(self: Box, a: &dyn Any); [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:53:31 [INFO] [stderr] | [INFO] [stderr] 53 | fn call(self: Box, a: &Any) { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 53 | fn call(self: Box, a: &dyn Any) { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `gtk::AdjustmentExt::value_changed` [INFO] [stderr] --> src/edit_view.rs:702:18 [INFO] [stderr] | [INFO] [stderr] 702 | hadj.value_changed(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/scrollable_drawing_area.rs:138:54 [INFO] [stderr] | [INFO] [stderr] 138 | let params: &[glib::Value] = &[(self as &glib::ToValue).to_value()]; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 138 | let params: &[glib::Value] = &[(self as &dyn glib::ToValue).to_value()]; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/scrollable_drawing_area.rs:474:28 [INFO] [stderr] | [INFO] [stderr] 474 | let f: Box (()) + 'static>> = Box::new(Box::new(f)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 474 | let f: Box (()) + 'static>> = Box::new(Box::new(f)); [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/scrollable_drawing_area.rs:582:15 [INFO] [stderr] | [INFO] [stderr] 582 | let f: &&(Fn(&P) -> (()) + 'static) = mem::transmute(f); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 582 | let f: &&(dyn Fn(&P) -> (()) + 'static) = mem::transmute(f); [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `w` [INFO] [stderr] --> src/edit_view.rs:250:73 [INFO] [stderr] | [INFO] [stderr] 250 | search_entry.connect_activate(clone!(@strong edit_view => move |w| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `w` [INFO] [stderr] --> src/edit_view.rs:254:76 [INFO] [stderr] | [INFO] [stderr] 254 | search_entry.connect_stop_search(clone!(@strong edit_view => move |w| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `w` [INFO] [stderr] --> src/edit_view.rs:268:74 [INFO] [stderr] | [INFO] [stderr] 268 | replace_button.connect_clicked(clone!(@strong edit_view => move |w| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `w` [INFO] [stderr] --> src/edit_view.rs:272:78 [INFO] [stderr] | [INFO] [stderr] 272 | replace_all_button.connect_clicked(clone!(@strong edit_view => move |w| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `text_width` [INFO] [stderr] --> src/edit_view.rs:362:14 [INFO] [stderr] | [INFO] [stderr] 362 | let (text_width, text_height, vadj, hadj) = { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_width` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hadj` [INFO] [stderr] --> src/edit_view.rs:362:45 [INFO] [stderr] | [INFO] [stderr] 362 | let (text_width, text_height, vadj, hadj) = { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hadj` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `padding` [INFO] [stderr] --> src/edit_view.rs:640:13 [INFO] [stderr] | [INFO] [stderr] 640 | let padding: usize = format!("{}", num_lines.saturating_sub(1)).len(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_padding` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `main_state` [INFO] [stderr] --> src/edit_view.rs:712:9 [INFO] [stderr] | [INFO] [stderr] 712 | main_state: &MainState, [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_state` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `es` [INFO] [stderr] --> src/edit_view.rs:911:37 [INFO] [stderr] | [INFO] [stderr] 911 | pub fn handle_scroll(&mut self, es: &EventScroll) -> Inhibit { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_es` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `prefs_win` [INFO] [stderr] --> src/main_win.rs:393:13 [INFO] [stderr] | [INFO] [stderr] 393 | let prefs_win = PrefsWin::new(&self.window, &main_state, controller.clone()); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefs_win` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `font_combo_box` [INFO] [stderr] --> src/prefs_win.rs:30:13 [INFO] [stderr] | [INFO] [stderr] 30 | let font_combo_box: ComboBoxText = builder.get_object("font_combo_box").unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_font_combo_box` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/scrollable_drawing_area.rs:156:29 [INFO] [stderr] | [INFO] [stderr] 156 | let mut private = self.get_priv(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/scrollable_drawing_area.rs:163:29 [INFO] [stderr] | [INFO] [stderr] 163 | let mut private = self.get_priv(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/scrollable_drawing_area.rs:170:29 [INFO] [stderr] | [INFO] [stderr] 170 | let mut private = self.get_priv(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/scrollable_drawing_area.rs:177:29 [INFO] [stderr] | [INFO] [stderr] 177 | let mut private = self.get_priv(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `application` [INFO] [stderr] --> src/main.rs:187:69 [INFO] [stderr] | [INFO] [stderr] 187 | application.connect_activate(clone!(@strong controller => move |application| { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_application` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/main.rs:193:73 [INFO] [stderr] | [INFO] [stderr] 193 | application.connect_open(clone!(@strong controller => move |_,files,s| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: trait `IdleCallback` is never used [INFO] [stderr] --> src/main.rs:48:7 [INFO] [stderr] | [INFO] [stderr] 48 | trait IdleCallback: Send { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `events` and `observers` are never read [INFO] [stderr] --> src/channel/mod.rs:138:5 [INFO] [stderr] | [INFO] [stderr] 137 | struct _EventStream { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 138 | events: VecDeque, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 139 | locked: bool, [INFO] [stderr] 140 | observers: Vec>, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SourceData` is never constructed [INFO] [stderr] --> src/channel/mod.rs:157:8 [INFO] [stderr] | [INFO] [stderr] 157 | struct SourceData { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_callback` and `get_stream` are never used [INFO] [stderr] --> src/channel/mod.rs:179:8 [INFO] [stderr] | [INFO] [stderr] 178 | impl EventStream { [INFO] [stderr] | -------------------------- methods in this implementation [INFO] [stderr] 179 | fn get_callback(&self) -> Rc>>> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 183 | fn get_stream(&self) -> Rc>> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `close`, `emit`, `lock`, `observe`, and `set_callback` are never used [INFO] [stderr] --> src/channel/mod.rs:190:12 [INFO] [stderr] | [INFO] [stderr] 188 | impl EventStream { [INFO] [stderr] | -------------------------- associated items in this implementation [INFO] [stderr] 189 | /// Create a new event stream. [INFO] [stderr] 190 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 209 | pub fn close(&self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 214 | pub fn emit(&self, event: MSG) { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 228 | pub fn lock(&self) -> Lock { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 238 | pub fn observe(&self, callback: CALLBACK) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 246 | pub fn set_callback(&self, callback: CALLBACK) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `source_get` is never used [INFO] [stderr] --> src/channel/source.rs:61:8 [INFO] [stderr] | [INFO] [stderr] 61 | pub fn source_get(source: &Source) -> &T { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `request_text` is never used [INFO] [stderr] --> src/clipboard.rs:9:8 [INFO] [stderr] | [INFO] [stderr] 8 | pub trait ClipboardRequest { [INFO] [stderr] | ---------------- method in this trait [INFO] [stderr] 9 | fn request_text(&self, callback: F); [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `save` is never used [INFO] [stderr] --> src/controller.rs:118:12 [INFO] [stderr] | [INFO] [stderr] 31 | impl Controller { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 118 | pub fn save(&self, view_id: &str, file_path: &str) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `map` is never read [INFO] [stderr] --> src/linecache.rs:73:5 [INFO] [stderr] | [INFO] [stderr] 72 | pub struct LineCache { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] 73 | map: HashMap, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `LineCache` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `get_missing` is never used [INFO] [stderr] --> src/linecache.rs:112:12 [INFO] [stderr] | [INFO] [stderr] 79 | impl LineCache { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 112 | pub fn get_missing(&self, first: u64, last: u64) -> Vec<(u64, u64)> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `builder` is never read [INFO] [stderr] --> src/main_win.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 23 | pub struct MainWin { [INFO] [stderr] | ------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 27 | builder: Builder, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `controller` and `window` are never read [INFO] [stderr] --> src/prefs_win.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct PrefsWin { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 12 | controller: ControllerRef, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 13 | window: Window, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `set_theme`, `gesture_multi_line_select`, `gesture_multi_word_select`, and `highlight_find` are never used [INFO] [stderr] --> src/rpc.rs:156:12 [INFO] [stderr] | [INFO] [stderr] 39 | impl Core { [INFO] [stderr] | --------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 156 | pub fn set_theme(&self, theme_name: &str) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 340 | pub fn gesture_multi_line_select(&self, view_id: &str, line: u64, col: u64) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 352 | pub fn gesture_multi_word_select(&self, view_id: &str, line: u64, col: u64) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 473 | pub fn highlight_find(&self, view_id: &str, visible: bool) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/scrollable_drawing_area.rs:458:8 [INFO] [stderr] | [INFO] [stderr] 457 | pub trait ScrollableDrawingAreaExt { [INFO] [stderr] | ------------------------ methods in this trait [INFO] [stderr] 458 | fn connect_value_changed (()) + 'static>(&self, f: F) -> glib::SignalHandlerId; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 459 | fn size_allocate(&self, i: u32, j: u32) -> u32; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 460 | fn get_property_hadjustment(&self) -> Adjustment; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 461 | fn get_property_hscroll_policy(&self) -> u32; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 462 | fn get_property_vadjustment(&self) -> Adjustment; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 463 | fn get_property_vscroll_policy(&self) -> u32; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 464 | fn set_property_hadjustment(&self, v: Adjustment); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 465 | fn set_property_hscroll_policy(&self, v: u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 466 | fn set_property_vadjustment(&self, v: Adjustment); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 467 | fn set_property_vscroll_policy(&self, v: u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `Properties` is never used [INFO] [stderr] --> src/scrollable_drawing_area.rs:79:10 [INFO] [stderr] | [INFO] [stderr] 79 | enum Properties { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:107:9 [INFO] [stderr] | [INFO] [stderr] 107 | / self.sender.send(CoreMsg::Notification { [INFO] [stderr] 108 | | method: method2, [INFO] [stderr] 109 | | params: params2, [INFO] [stderr] 110 | | }); [INFO] [stderr] | |__________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 107 | let _ = self.sender.send(CoreMsg::Notification { [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/proto.rs:2:54 [INFO] [stderr] | [INFO] [stderr] 2 | #[derive(Clone, PartialEq, Eq, Default, Hash, Debug, Serialize, Deserialize)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Style` [INFO] [stderr] ... [INFO] [stderr] 8 | pub struct Style { [INFO] [stderr] | ----- `Style` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/proto.rs:2:65 [INFO] [stderr] | [INFO] [stderr] 2 | #[derive(Clone, PartialEq, Eq, Default, Hash, Debug, Serialize, Deserialize)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Style` [INFO] [stderr] ... [INFO] [stderr] 8 | pub struct Style { [INFO] [stderr] | ----- `Style` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/proto.rs:26:45 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Color` [INFO] [stderr] 27 | pub struct Color { [INFO] [stderr] | ----- `Color` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/proto.rs:26:56 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Color` [INFO] [stderr] 27 | pub struct Color { [INFO] [stderr] | ----- `Color` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/proto.rs:38:24 [INFO] [stderr] | [INFO] [stderr] 38 | #[derive(Clone, Debug, Serialize, Deserialize)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_UnderlineOption` [INFO] [stderr] 39 | pub enum UnderlineOption { [INFO] [stderr] | --------------- `UnderlineOption` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/proto.rs:38:35 [INFO] [stderr] | [INFO] [stderr] 38 | #[derive(Clone, Debug, Serialize, Deserialize)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_UnderlineOption` [INFO] [stderr] 39 | pub enum UnderlineOption { [INFO] [stderr] | --------------- `UnderlineOption` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/proto.rs:49:33 [INFO] [stderr] | [INFO] [stderr] 49 | #[derive(Clone, Debug, Default, Serialize, Deserialize)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_ThemeSettings` [INFO] [stderr] 50 | pub struct ThemeSettings { [INFO] [stderr] | ------------- `ThemeSettings` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/proto.rs:49:44 [INFO] [stderr] | [INFO] [stderr] 49 | #[derive(Clone, Debug, Default, Serialize, Deserialize)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ThemeSettings` [INFO] [stderr] 50 | pub struct ThemeSettings { [INFO] [stderr] | ------------- `ThemeSettings` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `gxi` (bin "gxi" test) generated 69 warnings (run `cargo fix --bin "gxi" --tests` to apply 30 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/gxi-cd13011f2dc6ae91) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test linecache::test::test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3b51923fa7246219acc2a7eb5e3bc27e3e710302294d404b0c16815769511354", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b51923fa7246219acc2a7eb5e3bc27e3e710302294d404b0c16815769511354", kill_on_drop: false }` [INFO] [stdout] 3b51923fa7246219acc2a7eb5e3bc27e3e710302294d404b0c16815769511354