[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] building bvinc/gxi against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbvinc%2Fgxi" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bvinc/gxi on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "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-2-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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 789ecb27b3f985f85a19d804633c7bdde912f0a6402197bd85690fc17b31b75f [INFO] running `Command { std: "docker" "start" "-a" "789ecb27b3f985f85a19d804633c7bdde912f0a6402197bd85690fc17b31b75f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "789ecb27b3f985f85a19d804633c7bdde912f0a6402197bd85690fc17b31b75f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "789ecb27b3f985f85a19d804633c7bdde912f0a6402197bd85690fc17b31b75f", kill_on_drop: false }` [INFO] [stdout] 789ecb27b3f985f85a19d804633c7bdde912f0a6402197bd85690fc17b31b75f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9b6e8459cc83506584976b6ebbbdcd49572358946cef4c3b3a0885733cb8e67f [INFO] running `Command { std: "docker" "start" "-a" "9b6e8459cc83506584976b6ebbbdcd49572358946cef4c3b3a0885733cb8e67f", 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 slab v0.4.2 [INFO] [stderr] Compiling cc v1.0.53 [INFO] [stderr] Compiling proc-macro-nested v0.1.4 [INFO] [stderr] Compiling once_cell v1.4.0 [INFO] [stderr] Compiling futures-core v0.3.5 [INFO] [stderr] Compiling proc-macro-hack v0.5.15 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling futures-task v0.3.5 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling cairo-rs v0.8.1 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling smallvec v0.6.13 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling pango v0.8.0 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling gio v0.8.1 [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 glib-sys v0.9.1 [INFO] [stderr] Compiling gobject-sys v0.9.1 [INFO] [stderr] Compiling pango-sys v0.9.1 [INFO] [stderr] Compiling gio-sys v0.9.1 [INFO] [stderr] Compiling cairo-sys-rs v0.9.2 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.9.1 [INFO] [stderr] Compiling cmake v0.1.44 [INFO] [stderr] Compiling gdk-sys v0.9.1 [INFO] [stderr] Compiling atk-sys v0.9.1 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling gtk-sys v0.9.2 [INFO] [stderr] Compiling pangocairo-sys v0.10.1 [INFO] [stderr] Compiling adler32 v1.0.4 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling regex-syntax v0.6.17 [INFO] [stderr] Compiling lazycell v1.2.1 [INFO] [stderr] Compiling futures-io v0.3.5 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling aho-corasick v0.7.10 [INFO] [stderr] Compiling gdk-pixbuf v0.8.0 [INFO] [stderr] Compiling line-wrap v0.1.1 [INFO] [stderr] Compiling walkdir v2.3.1 [INFO] [stderr] Compiling miniz_oxide v0.3.6 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling servo-fontconfig-sys v5.0.2 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling freetype-sys v0.12.0 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Compiling backtrace-sys v0.1.37 [INFO] [stderr] Compiling net2 v0.2.34 [INFO] [stderr] Compiling inotify-sys v0.1.3 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling gdk v0.12.1 [INFO] [stderr] Compiling atk v0.8.0 [INFO] [stderr] Compiling crossbeam-channel v0.3.9 [INFO] [stderr] Compiling inotify v0.7.0 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling flate2 v1.0.14 [INFO] [stderr] Compiling filetime v0.2.10 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Compiling bytecount v0.6.0 [INFO] [stderr] Compiling parking_lot_core v0.2.14 [INFO] [stderr] Compiling gtk v0.8.1 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling pangocairo v0.9.0 [INFO] [stderr] Compiling anymap v0.12.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling dirs-sys-next v0.1.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling parking_lot v0.4.8 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling termcolor v1.1.0 [INFO] [stderr] Compiling xi-unicode v0.2.0 (https://github.com/google/xi-editor?rev=65911d9#65911d91) [INFO] [stderr] Compiling backtrace v0.3.41 [INFO] [stderr] Compiling dirs-next v1.0.0 [INFO] [stderr] Compiling servo-fontconfig v0.5.0 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stderr] Compiling mio v0.7.0 [INFO] [stderr] Compiling chashmap v2.2.2 [INFO] [stderr] Compiling notify v5.0.0-pre.1 [INFO] [stderr] Compiling regex v1.3.7 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling synstructure v0.12.3 [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 xi-rope v0.3.0 (https://github.com/google/xi-editor?rev=65911d9#65911d91) [INFO] [stderr] Compiling toml v0.5.6 [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_INIT; [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: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] = note: `#[warn(bare_trait_objects)]` on by default [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: 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] 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: 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: struct `Lock` is never constructed [INFO] [stdout] --> src/channel/mod.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Lock { [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: struct `EventStream` is never constructed [INFO] [stdout] --> src/channel/mod.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub struct EventStream { [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: trait `ClipboardRequest` is never used [INFO] [stdout] --> src/clipboard.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ClipboardRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `into_raw_request_text` is never used [INFO] [stdout] --> src/clipboard.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn into_raw_request_text(func: F) -> gpointer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trampoline_request_text` is never used [INFO] [stdout] --> src/clipboard.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe extern "C" fn trampoline_request_text( [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: trait `ScrollableDrawingAreaExt` is never used [INFO] [stdout] --> src/scrollable_drawing_area.rs:457:11 [INFO] [stdout] | [INFO] [stdout] 457 | pub trait ScrollableDrawingAreaExt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `value_changed_signal_handler_trampoline` is never used [INFO] [stdout] --> src/scrollable_drawing_area.rs:573:22 [INFO] [stdout] | [INFO] [stdout] 573 | unsafe extern "C" fn value_changed_signal_handler_trampoline

( [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] = note: `Properties` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scrollable_drawing_area_size_allocate` is never used [INFO] [stdout] --> src/scrollable_drawing_area.rs:398:30 [INFO] [stdout] | [INFO] [stdout] 398 | pub unsafe extern "C" fn scrollable_drawing_area_size_allocate( [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 1m 38s [INFO] running `Command { std: "docker" "inspect" "9b6e8459cc83506584976b6ebbbdcd49572358946cef4c3b3a0885733cb8e67f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b6e8459cc83506584976b6ebbbdcd49572358946cef4c3b3a0885733cb8e67f", kill_on_drop: false }` [INFO] [stdout] 9b6e8459cc83506584976b6ebbbdcd49572358946cef4c3b3a0885733cb8e67f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ab6080efc1277b9fc2408992ebc8be49608ee8ac07ed3940182a412723a20c8 [INFO] running `Command { std: "docker" "start" "-a" "8ab6080efc1277b9fc2408992ebc8be49608ee8ac07ed3940182a412723a20c8", 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_INIT; [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: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] = note: `#[warn(bare_trait_objects)]` on by default [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: 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] 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: 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: struct `Lock` is never constructed [INFO] [stdout] --> src/channel/mod.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Lock { [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: struct `EventStream` is never constructed [INFO] [stdout] --> src/channel/mod.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub struct EventStream { [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: trait `ClipboardRequest` is never used [INFO] [stdout] --> src/clipboard.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ClipboardRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `into_raw_request_text` is never used [INFO] [stdout] --> src/clipboard.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn into_raw_request_text(func: F) -> gpointer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trampoline_request_text` is never used [INFO] [stdout] --> src/clipboard.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe extern "C" fn trampoline_request_text( [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: trait `ScrollableDrawingAreaExt` is never used [INFO] [stdout] --> src/scrollable_drawing_area.rs:457:11 [INFO] [stdout] | [INFO] [stdout] 457 | pub trait ScrollableDrawingAreaExt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `value_changed_signal_handler_trampoline` is never used [INFO] [stdout] --> src/scrollable_drawing_area.rs:573:22 [INFO] [stdout] | [INFO] [stdout] 573 | unsafe extern "C" fn value_changed_signal_handler_trampoline

( [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] = note: `Properties` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scrollable_drawing_area_size_allocate` is never used [INFO] [stdout] --> src/scrollable_drawing_area.rs:398:30 [INFO] [stdout] | [INFO] [stdout] 398 | pub unsafe extern "C" fn scrollable_drawing_area_size_allocate( [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 2.11s [INFO] running `Command { std: "docker" "inspect" "8ab6080efc1277b9fc2408992ebc8be49608ee8ac07ed3940182a412723a20c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ab6080efc1277b9fc2408992ebc8be49608ee8ac07ed3940182a412723a20c8", kill_on_drop: false }` [INFO] [stdout] 8ab6080efc1277b9fc2408992ebc8be49608ee8ac07ed3940182a412723a20c8