[INFO] cloning repository https://github.com/kkspeed/metal-placebo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kkspeed/metal-placebo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkkspeed%2Fmetal-placebo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkkspeed%2Fmetal-placebo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 63665057c8369a620fb33fc8d85c1c99a3de81ea [INFO] testing kkspeed/metal-placebo against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkkspeed%2Fmetal-placebo" "/workspace/builds/worker-25/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-25/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kkspeed/metal-placebo on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kkspeed/metal-placebo [INFO] finished tweaking git repo https://github.com/kkspeed/metal-placebo [INFO] tweaked toml for git repo https://github.com/kkspeed/metal-placebo written to /workspace/builds/worker-25/source/Cargo.toml [INFO] crate git repo https://github.com/kkspeed/metal-placebo already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mustache v0.8.0 [INFO] [stderr] Downloaded serde-value v0.3.1 [INFO] [stderr] Downloaded metadeps v1.1.1 [INFO] [stderr] Downloaded serde v0.8.22 [INFO] [stderr] Downloaded log4rs v0.5.2 [INFO] [stderr] Downloaded x11 v2.12.0 [INFO] [stderr] Downloaded serde_yaml v0.5.0 [INFO] [stderr] Downloaded serde_test v0.8.22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2583f6d9f48b466ba9b9fe3dbf3eb72d370993c7c5294199ae1f619c3cc1fa0b [INFO] running `Command { std: "docker" "start" "-a" "2583f6d9f48b466ba9b9fe3dbf3eb72d370993c7c5294199ae1f619c3cc1fa0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2583f6d9f48b466ba9b9fe3dbf3eb72d370993c7c5294199ae1f619c3cc1fa0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2583f6d9f48b466ba9b9fe3dbf3eb72d370993c7c5294199ae1f619c3cc1fa0b", kill_on_drop: false }` [INFO] [stdout] 2583f6d9f48b466ba9b9fe3dbf3eb72d370993c7c5294199ae1f619c3cc1fa0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a8fd65537cfb65ed9f90c56233552fa91ae8a64b77e5557e8b5ecc2cce4fb2ab [INFO] running `Command { std: "docker" "start" "-a" "a8fd65537cfb65ed9f90c56233552fa91ae8a64b77e5557e8b5ecc2cce4fb2ab", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.1.36 [INFO] [stderr] Compiling serde v0.8.22 [INFO] [stderr] Compiling libc v0.2.19 [INFO] [stderr] Compiling error-chain v0.7.2 [INFO] [stderr] Compiling toml v0.2.1 [INFO] [stderr] Compiling pkg-config v0.3.8 [INFO] [stderr] Compiling traitobject v0.0.3 [INFO] [stderr] Compiling log v0.3.6 [INFO] [stderr] Compiling dtoa v0.2.2 [INFO] [stderr] Compiling quick-error v1.1.0 [INFO] [stderr] Compiling rustc-serialize v0.3.22 [INFO] [stderr] Compiling fnv v1.0.5 [INFO] [stderr] Compiling crossbeam v0.2.10 [INFO] [stderr] Compiling unsafe-any v0.4.1 [INFO] [stderr] Compiling time v0.1.35 [INFO] [stderr] Compiling metadeps v1.1.1 [INFO] [stderr] Compiling num-integer v0.1.32 [INFO] [stderr] Compiling ordered-float v0.2.3 [INFO] [stderr] Compiling humantime v1.0.0 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling num-iter v0.1.32 [INFO] [stderr] Compiling num v0.1.36 [INFO] [stderr] Compiling x11 v2.12.0 [INFO] [stderr] Compiling chrono v0.2.25 [INFO] [stderr] Compiling mustache v0.8.0 [INFO] [stderr] Compiling serde_test v0.8.22 [INFO] [stderr] Compiling serde-value v0.3.1 [INFO] [stderr] Compiling linked-hash-map v0.3.0 [INFO] [stderr] Compiling yaml-rust v0.3.5 [INFO] [stderr] Compiling serde_yaml v0.5.0 [INFO] [stderr] Compiling log4rs v0.5.2 [INFO] [stderr] Compiling rswm v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/util.rs:57:24 [INFO] [stdout] | [INFO] [stdout] 57 | let mut list: *mut (*mut c_char) = unsafe { zeroed() }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 57 - let mut list: *mut (*mut c_char) = unsafe { zeroed() }; [INFO] [stdout] 57 + let mut list: *mut *mut c_char = unsafe { zeroed() }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FullScreen`, `Overview` [INFO] [stdout] --> src/core.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | use layout::{FullScreen, Layout, Overview, Tile}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientL` [INFO] [stdout] --> src/config.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use client::{ClientL, ClientW}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mustache::MapBuilder` [INFO] [stdout] --> src/loggers.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use mustache::MapBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/layout.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/workspace.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `c_int` [INFO] [stdout] --> src/workspace.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use std::os::raw::{c_int, c_uchar, c_uint}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/prompt.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | try!(child.wait()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/prompt.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | try!(child.stdout.unwrap().read_to_string(&mut result)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/prompt.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | let mut child = try!(process::Command::new("dmenu") [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/prompt.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | try!(writeln!(child.stdin.as_mut().unwrap(), "{}", c)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/core.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | logger: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 122 - logger: Box, [INFO] [stdout] 122 + logger: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:22:25 [INFO] [stdout] | [INFO] [stdout] 22 | pub type WmAction = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - pub type WmAction = Box; [INFO] [stdout] 22 + pub type WmAction = Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | pub type ClientPredicate = Box bool>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 - pub type ClientPredicate = Box bool>; [INFO] [stdout] 23 + pub type ClientPredicate = Box bool>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | pub type ClientAction = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - pub type ClientAction = Box; [INFO] [stdout] 24 + pub type ClientAction = Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | pub type StartAction = Box; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - pub type StartAction = Box; [INFO] [stdout] 25 + pub type StartAction = Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:42:39 [INFO] [stdout] | [INFO] [stdout] 42 | pub tag_layout: Vec<(c_uchar, Box)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 42 - pub tag_layout: Vec<(c_uchar, Box)>, [INFO] [stdout] 42 + pub tag_layout: Vec<(c_uchar, Box)>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | layout: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 - layout: Box, [INFO] [stdout] 27 + layout: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | prev_iter: Box + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 365 - prev_iter: Box + 'a>, [INFO] [stdout] 365 + prev_iter: Box + 'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:366:20 [INFO] [stdout] | [INFO] [stdout] 366 | next_iter: Box + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 366 - next_iter: Box + 'a>, [INFO] [stdout] 366 + next_iter: Box + 'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:385:20 [INFO] [stdout] | [INFO] [stdout] 385 | prev_iter: Box + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 385 - prev_iter: Box + 'a>, [INFO] [stdout] 385 + prev_iter: Box + 'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:386:20 [INFO] [stdout] | [INFO] [stdout] 386 | next_iter: Box + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 386 - next_iter: Box + 'a>, [INFO] [stdout] 386 + next_iter: Box + 'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:148:21 [INFO] [stdout] | [INFO] [stdout] 148 | pub layout: Box, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 148 - pub layout: Box, [INFO] [stdout] 148 + pub layout: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:589:35 [INFO] [stdout] | [INFO] [stdout] 589 | predicate: &Fn(&Self::Item) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 589 - predicate: &Fn(&Self::Item) -> bool, [INFO] [stdout] 589 + predicate: &dyn Fn(&Self::Item) -> bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:591:36 [INFO] [stdout] | [INFO] [stdout] 591 | yes_action: &Fn(&mut Self::Item), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 591 - yes_action: &Fn(&mut Self::Item), [INFO] [stdout] 591 + yes_action: &dyn Fn(&mut Self::Item), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:592:35 [INFO] [stdout] | [INFO] [stdout] 592 | no_action: &Fn(&mut Self::Item)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 592 - no_action: &Fn(&mut Self::Item)) [INFO] [stdout] 592 + no_action: &dyn Fn(&mut Self::Item)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:619:35 [INFO] [stdout] | [INFO] [stdout] 619 | predicate: &Fn(&ClientW) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 619 - predicate: &Fn(&ClientW) -> bool, [INFO] [stdout] 619 + predicate: &dyn Fn(&ClientW) -> bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:621:36 [INFO] [stdout] | [INFO] [stdout] 621 | yes_action: &Fn(&mut ClientW), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 621 - yes_action: &Fn(&mut ClientW), [INFO] [stdout] 621 + yes_action: &dyn Fn(&mut ClientW), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:622:35 [INFO] [stdout] | [INFO] [stdout] 622 | no_action: &Fn(&mut ClientW)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 622 - no_action: &Fn(&mut ClientW)) [INFO] [stdout] 622 + no_action: &dyn Fn(&mut ClientW)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/core.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | fn lookup_layout(config: Rc, tag: c_uchar) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 - fn lookup_layout(config: Rc, tag: c_uchar) -> Box { [INFO] [stdout] 23 + fn lookup_layout(config: Rc, tag: c_uchar) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/core.rs:318:46 [INFO] [stdout] | [INFO] [stdout] 318 | pub fn set_logger(&mut self, logger: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 318 - pub fn set_logger(&mut self, logger: Box) { [INFO] [stdout] 318 + pub fn set_logger(&mut self, logger: Box) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:175:59 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn tag_layout(mut self, layout: Vec<(c_uchar, Box)>) -> Config { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 175 - pub fn tag_layout(mut self, layout: Vec<(c_uchar, Box)>) -> Config { [INFO] [stdout] 175 + pub fn tag_layout(mut self, layout: Vec<(c_uchar, Box)>) -> Config { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | impl Clone for Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 - impl Clone for Box { [INFO] [stdout] 27 + impl Clone for Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 16 | fn clone_layout(&self) -> Box; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - fn clone_layout(&self) -> Box; [INFO] [stdout] 16 + fn clone_layout(&self) -> Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | fn clone_layout(&self) -> Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - fn clone_layout(&self) -> Box { [INFO] [stdout] 22 + fn clone_layout(&self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | fn clone(&self) -> Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 - fn clone(&self) -> Box { [INFO] [stdout] 28 + fn clone(&self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | layout: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 38 - layout: Box, [INFO] [stdout] 38 + layout: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:252:41 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn select_clients(&self, pred: &Fn(&ClientW) -> bool) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 252 - pub fn select_clients(&self, pred: &Fn(&ClientW) -> bool) -> Vec { [INFO] [stdout] 252 + pub fn select_clients(&self, pred: &dyn Fn(&ClientW) -> bool) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/core.rs:1106:36 [INFO] [stdout] | [INFO] [stdout] 1106 | fn on_expose_notify(&mut self, event: xlib::XExposeEvent) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/core.rs:1176:36 [INFO] [stdout] | [INFO] [stdout] 1176 | fn on_motion_notify(&mut self, event: xlib::XMotionEvent) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/core.rs:1187:25 [INFO] [stdout] | [INFO] [stdout] 1187 | let tag = c.tag(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/config.rs:50:53 [INFO] [stdout] | [INFO] [stdout] 50 | vec![(mod_mask, keysym::XK_q, Box::new(|w| process::exit(0))), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `global_config` [INFO] [stdout] --> src/loggers.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | global_config: &Config, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_global_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/layout.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | fn post(&self, message: &str, window_manager: &mut core::WindowManager) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_manager` [INFO] [stdout] --> src/layout.rs:12:35 [INFO] [stdout] | [INFO] [stdout] 12 | fn post(&self, message: &str, window_manager: &mut core::WindowManager) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/layout.rs:91:28 [INFO] [stdout] | [INFO] [stdout] 91 | fn layout_rects(&self, config: Rc, n: usize, rect: Rect) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core.rs:865:17 [INFO] [stdout] | [INFO] [stdout] 865 | for (_, mut w) in self.workspaces.iter_mut() { [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/core.rs:1181:21 [INFO] [stdout] | [INFO] [stdout] 1181 | if let Some(mut c) = self.get_client_by_window(event.window).as_mut() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `anchor_window` [INFO] [stdout] --> src/client.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | anchor_window: xlib::Window, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_dialog` [INFO] [stdout] --> src/client.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | is_dialog: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `old_border` [INFO] [stdout] --> src/client.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | old_border: c_int, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TRACE` [INFO] [stdout] --> src/core.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const TRACE: bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/core.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | fn peek(&self) -> Option<&ClientW> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `screen` [INFO] [stdout] --> src/core.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | screen: c_int, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `current_returned` [INFO] [stdout] --> src/workspace.rs:367:5 [INFO] [stdout] | [INFO] [stdout] 367 | current_returned: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `net_wm_state_sticky` [INFO] [stdout] --> src/atoms.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn net_wm_state_sticky() -> xlib::Atom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/atoms.rs:152:69 [INFO] [stdout] | [INFO] [stdout] 152 | unsafe { xlib::XInternAtom(display, CString::new(atom).unwrap().as_ptr(), 0) } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/loggers.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | / write!(self.child.stdin.as_mut().unwrap(), [INFO] [stdout] 174 | | "{}", [INFO] [stdout] 175 | | self.config.separator); [INFO] [stdout] | |_____________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/loggers.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | write!(self.child.stdin.as_mut().unwrap(), "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rswm::client::ClientW` [INFO] [stdout] --> main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rswm::client::ClientW; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Layout`, `Tile` [INFO] [stdout] --> main.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | use rswm::layout::{Tile, Tile13, FullScreen, Overview, Layout}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.32s [INFO] running `Command { std: "docker" "inspect" "a8fd65537cfb65ed9f90c56233552fa91ae8a64b77e5557e8b5ecc2cce4fb2ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8fd65537cfb65ed9f90c56233552fa91ae8a64b77e5557e8b5ecc2cce4fb2ab", kill_on_drop: false }` [INFO] [stdout] a8fd65537cfb65ed9f90c56233552fa91ae8a64b77e5557e8b5ecc2cce4fb2ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9340f1f9bc7a02576104022e60ecca428f2ac65aa85fdcb102913cea87059a14 [INFO] running `Command { std: "docker" "start" "-a" "9340f1f9bc7a02576104022e60ecca428f2ac65aa85fdcb102913cea87059a14", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/util.rs:57:24 [INFO] [stdout] | [INFO] [stdout] 57 | let mut list: *mut (*mut c_char) = unsafe { zeroed() }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 57 - let mut list: *mut (*mut c_char) = unsafe { zeroed() }; [INFO] [stdout] 57 + let mut list: *mut *mut c_char = unsafe { zeroed() }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FullScreen`, `Overview` [INFO] [stdout] --> src/core.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | use layout::{FullScreen, Layout, Overview, Tile}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientL` [INFO] [stdout] --> src/config.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use client::{ClientL, ClientW}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mustache::MapBuilder` [INFO] [stdout] --> src/loggers.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use mustache::MapBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/layout.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/workspace.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `c_int` [INFO] [stdout] --> src/workspace.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use std::os::raw::{c_int, c_uchar, c_uint}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/prompt.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | try!(child.wait()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/prompt.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | try!(child.stdout.unwrap().read_to_string(&mut result)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/prompt.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | let mut child = try!(process::Command::new("dmenu") [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/prompt.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | try!(writeln!(child.stdin.as_mut().unwrap(), "{}", c)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/core.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | logger: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 122 - logger: Box, [INFO] [stdout] 122 + logger: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:22:25 [INFO] [stdout] | [INFO] [stdout] 22 | pub type WmAction = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - pub type WmAction = Box; [INFO] [stdout] 22 + pub type WmAction = Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | pub type ClientPredicate = Box bool>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 - pub type ClientPredicate = Box bool>; [INFO] [stdout] 23 + pub type ClientPredicate = Box bool>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | pub type ClientAction = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - pub type ClientAction = Box; [INFO] [stdout] 24 + pub type ClientAction = Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | pub type StartAction = Box; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - pub type StartAction = Box; [INFO] [stdout] 25 + pub type StartAction = Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:42:39 [INFO] [stdout] | [INFO] [stdout] 42 | pub tag_layout: Vec<(c_uchar, Box)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 42 - pub tag_layout: Vec<(c_uchar, Box)>, [INFO] [stdout] 42 + pub tag_layout: Vec<(c_uchar, Box)>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | layout: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 - layout: Box, [INFO] [stdout] 27 + layout: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | prev_iter: Box + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 365 - prev_iter: Box + 'a>, [INFO] [stdout] 365 + prev_iter: Box + 'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:366:20 [INFO] [stdout] | [INFO] [stdout] 366 | next_iter: Box + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 366 - next_iter: Box + 'a>, [INFO] [stdout] 366 + next_iter: Box + 'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:385:20 [INFO] [stdout] | [INFO] [stdout] 385 | prev_iter: Box + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 385 - prev_iter: Box + 'a>, [INFO] [stdout] 385 + prev_iter: Box + 'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:386:20 [INFO] [stdout] | [INFO] [stdout] 386 | next_iter: Box + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 386 - next_iter: Box + 'a>, [INFO] [stdout] 386 + next_iter: Box + 'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:148:21 [INFO] [stdout] | [INFO] [stdout] 148 | pub layout: Box, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 148 - pub layout: Box, [INFO] [stdout] 148 + pub layout: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:589:35 [INFO] [stdout] | [INFO] [stdout] 589 | predicate: &Fn(&Self::Item) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 589 - predicate: &Fn(&Self::Item) -> bool, [INFO] [stdout] 589 + predicate: &dyn Fn(&Self::Item) -> bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:591:36 [INFO] [stdout] | [INFO] [stdout] 591 | yes_action: &Fn(&mut Self::Item), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 591 - yes_action: &Fn(&mut Self::Item), [INFO] [stdout] 591 + yes_action: &dyn Fn(&mut Self::Item), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:592:35 [INFO] [stdout] | [INFO] [stdout] 592 | no_action: &Fn(&mut Self::Item)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 592 - no_action: &Fn(&mut Self::Item)) [INFO] [stdout] 592 + no_action: &dyn Fn(&mut Self::Item)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:619:35 [INFO] [stdout] | [INFO] [stdout] 619 | predicate: &Fn(&ClientW) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 619 - predicate: &Fn(&ClientW) -> bool, [INFO] [stdout] 619 + predicate: &dyn Fn(&ClientW) -> bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:621:36 [INFO] [stdout] | [INFO] [stdout] 621 | yes_action: &Fn(&mut ClientW), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 621 - yes_action: &Fn(&mut ClientW), [INFO] [stdout] 621 + yes_action: &dyn Fn(&mut ClientW), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:622:35 [INFO] [stdout] | [INFO] [stdout] 622 | no_action: &Fn(&mut ClientW)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 622 - no_action: &Fn(&mut ClientW)) [INFO] [stdout] 622 + no_action: &dyn Fn(&mut ClientW)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/core.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | fn lookup_layout(config: Rc, tag: c_uchar) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 - fn lookup_layout(config: Rc, tag: c_uchar) -> Box { [INFO] [stdout] 23 + fn lookup_layout(config: Rc, tag: c_uchar) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/core.rs:318:46 [INFO] [stdout] | [INFO] [stdout] 318 | pub fn set_logger(&mut self, logger: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 318 - pub fn set_logger(&mut self, logger: Box) { [INFO] [stdout] 318 + pub fn set_logger(&mut self, logger: Box) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:175:59 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn tag_layout(mut self, layout: Vec<(c_uchar, Box)>) -> Config { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 175 - pub fn tag_layout(mut self, layout: Vec<(c_uchar, Box)>) -> Config { [INFO] [stdout] 175 + pub fn tag_layout(mut self, layout: Vec<(c_uchar, Box)>) -> Config { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | impl Clone for Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 - impl Clone for Box { [INFO] [stdout] 27 + impl Clone for Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 16 | fn clone_layout(&self) -> Box; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - fn clone_layout(&self) -> Box; [INFO] [stdout] 16 + fn clone_layout(&self) -> Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | fn clone_layout(&self) -> Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - fn clone_layout(&self) -> Box { [INFO] [stdout] 22 + fn clone_layout(&self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | fn clone(&self) -> Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 - fn clone(&self) -> Box { [INFO] [stdout] 28 + fn clone(&self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rswm v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | layout: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 38 - layout: Box, [INFO] [stdout] 38 + layout: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:252:41 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn select_clients(&self, pred: &Fn(&ClientW) -> bool) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 252 - pub fn select_clients(&self, pred: &Fn(&ClientW) -> bool) -> Vec { [INFO] [stdout] 252 + pub fn select_clients(&self, pred: &dyn Fn(&ClientW) -> bool) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/core.rs:1106:36 [INFO] [stdout] | [INFO] [stdout] 1106 | fn on_expose_notify(&mut self, event: xlib::XExposeEvent) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/core.rs:1176:36 [INFO] [stdout] | [INFO] [stdout] 1176 | fn on_motion_notify(&mut self, event: xlib::XMotionEvent) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/core.rs:1187:25 [INFO] [stdout] | [INFO] [stdout] 1187 | let tag = c.tag(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/config.rs:50:53 [INFO] [stdout] | [INFO] [stdout] 50 | vec![(mod_mask, keysym::XK_q, Box::new(|w| process::exit(0))), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `global_config` [INFO] [stdout] --> src/loggers.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | global_config: &Config, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_global_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/layout.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | fn post(&self, message: &str, window_manager: &mut core::WindowManager) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_manager` [INFO] [stdout] --> src/layout.rs:12:35 [INFO] [stdout] | [INFO] [stdout] 12 | fn post(&self, message: &str, window_manager: &mut core::WindowManager) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/layout.rs:91:28 [INFO] [stdout] | [INFO] [stdout] 91 | fn layout_rects(&self, config: Rc, n: usize, rect: Rect) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core.rs:865:17 [INFO] [stdout] | [INFO] [stdout] 865 | for (_, mut w) in self.workspaces.iter_mut() { [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/core.rs:1181:21 [INFO] [stdout] | [INFO] [stdout] 1181 | if let Some(mut c) = self.get_client_by_window(event.window).as_mut() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `anchor_window` [INFO] [stdout] --> src/client.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | anchor_window: xlib::Window, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_dialog` [INFO] [stdout] --> src/client.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | is_dialog: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `old_border` [INFO] [stdout] --> src/client.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | old_border: c_int, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TRACE` [INFO] [stdout] --> src/core.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const TRACE: bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/core.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | fn peek(&self) -> Option<&ClientW> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `screen` [INFO] [stdout] --> src/core.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | screen: c_int, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `current_returned` [INFO] [stdout] --> src/workspace.rs:367:5 [INFO] [stdout] | [INFO] [stdout] 367 | current_returned: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `net_wm_state_sticky` [INFO] [stdout] --> src/atoms.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn net_wm_state_sticky() -> xlib::Atom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/atoms.rs:152:69 [INFO] [stdout] | [INFO] [stdout] 152 | unsafe { xlib::XInternAtom(display, CString::new(atom).unwrap().as_ptr(), 0) } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/loggers.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | / write!(self.child.stdin.as_mut().unwrap(), [INFO] [stdout] 174 | | "{}", [INFO] [stdout] 175 | | self.config.separator); [INFO] [stdout] | |_____________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/loggers.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | write!(self.child.stdin.as_mut().unwrap(), "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rswm::client::ClientW` [INFO] [stdout] --> main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rswm::client::ClientW; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Layout`, `Tile` [INFO] [stdout] --> main.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | use rswm::layout::{Tile, Tile13, FullScreen, Overview, Layout}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/util.rs:57:24 [INFO] [stdout] | [INFO] [stdout] 57 | let mut list: *mut (*mut c_char) = unsafe { zeroed() }; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 57 - let mut list: *mut (*mut c_char) = unsafe { zeroed() }; [INFO] [stdout] 57 + let mut list: *mut *mut c_char = unsafe { zeroed() }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FullScreen`, `Overview` [INFO] [stdout] --> src/core.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | use layout::{FullScreen, Layout, Overview, Tile}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ClientL` [INFO] [stdout] --> src/config.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use client::{ClientL, ClientW}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mustache::MapBuilder` [INFO] [stdout] --> src/loggers.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use mustache::MapBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/layout.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/workspace.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `c_int` [INFO] [stdout] --> src/workspace.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use std::os::raw::{c_int, c_uchar, c_uint}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/prompt.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | try!(child.wait()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/prompt.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | try!(child.stdout.unwrap().read_to_string(&mut result)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/prompt.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | let mut child = try!(process::Command::new("dmenu") [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/prompt.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | try!(writeln!(child.stdin.as_mut().unwrap(), "{}", c)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/core.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | logger: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 122 - logger: Box, [INFO] [stdout] 122 + logger: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:22:25 [INFO] [stdout] | [INFO] [stdout] 22 | pub type WmAction = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - pub type WmAction = Box; [INFO] [stdout] 22 + pub type WmAction = Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | pub type ClientPredicate = Box bool>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 - pub type ClientPredicate = Box bool>; [INFO] [stdout] 23 + pub type ClientPredicate = Box bool>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | pub type ClientAction = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - pub type ClientAction = Box; [INFO] [stdout] 24 + pub type ClientAction = Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | pub type StartAction = Box; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - pub type StartAction = Box; [INFO] [stdout] 25 + pub type StartAction = Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:42:39 [INFO] [stdout] | [INFO] [stdout] 42 | pub tag_layout: Vec<(c_uchar, Box)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 42 - pub tag_layout: Vec<(c_uchar, Box)>, [INFO] [stdout] 42 + pub tag_layout: Vec<(c_uchar, Box)>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | layout: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 - layout: Box, [INFO] [stdout] 27 + layout: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | prev_iter: Box + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 365 - prev_iter: Box + 'a>, [INFO] [stdout] 365 + prev_iter: Box + 'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:366:20 [INFO] [stdout] | [INFO] [stdout] 366 | next_iter: Box + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 366 - next_iter: Box + 'a>, [INFO] [stdout] 366 + next_iter: Box + 'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:385:20 [INFO] [stdout] | [INFO] [stdout] 385 | prev_iter: Box + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 385 - prev_iter: Box + 'a>, [INFO] [stdout] 385 + prev_iter: Box + 'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:386:20 [INFO] [stdout] | [INFO] [stdout] 386 | next_iter: Box + 'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 386 - next_iter: Box + 'a>, [INFO] [stdout] 386 + next_iter: Box + 'a>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:148:21 [INFO] [stdout] | [INFO] [stdout] 148 | pub layout: Box, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 148 - pub layout: Box, [INFO] [stdout] 148 + pub layout: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:589:35 [INFO] [stdout] | [INFO] [stdout] 589 | predicate: &Fn(&Self::Item) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 589 - predicate: &Fn(&Self::Item) -> bool, [INFO] [stdout] 589 + predicate: &dyn Fn(&Self::Item) -> bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:591:36 [INFO] [stdout] | [INFO] [stdout] 591 | yes_action: &Fn(&mut Self::Item), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 591 - yes_action: &Fn(&mut Self::Item), [INFO] [stdout] 591 + yes_action: &dyn Fn(&mut Self::Item), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:592:35 [INFO] [stdout] | [INFO] [stdout] 592 | no_action: &Fn(&mut Self::Item)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 592 - no_action: &Fn(&mut Self::Item)) [INFO] [stdout] 592 + no_action: &dyn Fn(&mut Self::Item)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:619:35 [INFO] [stdout] | [INFO] [stdout] 619 | predicate: &Fn(&ClientW) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 619 - predicate: &Fn(&ClientW) -> bool, [INFO] [stdout] 619 + predicate: &dyn Fn(&ClientW) -> bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:621:36 [INFO] [stdout] | [INFO] [stdout] 621 | yes_action: &Fn(&mut ClientW), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 621 - yes_action: &Fn(&mut ClientW), [INFO] [stdout] 621 + yes_action: &dyn Fn(&mut ClientW), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/client.rs:622:35 [INFO] [stdout] | [INFO] [stdout] 622 | no_action: &Fn(&mut ClientW)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 622 - no_action: &Fn(&mut ClientW)) [INFO] [stdout] 622 + no_action: &dyn Fn(&mut ClientW)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/core.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | fn lookup_layout(config: Rc, tag: c_uchar) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 - fn lookup_layout(config: Rc, tag: c_uchar) -> Box { [INFO] [stdout] 23 + fn lookup_layout(config: Rc, tag: c_uchar) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/core.rs:318:46 [INFO] [stdout] | [INFO] [stdout] 318 | pub fn set_logger(&mut self, logger: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 318 - pub fn set_logger(&mut self, logger: Box) { [INFO] [stdout] 318 + pub fn set_logger(&mut self, logger: Box) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:175:59 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn tag_layout(mut self, layout: Vec<(c_uchar, Box)>) -> Config { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 175 - pub fn tag_layout(mut self, layout: Vec<(c_uchar, Box)>) -> Config { [INFO] [stdout] 175 + pub fn tag_layout(mut self, layout: Vec<(c_uchar, Box)>) -> Config { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | impl Clone for Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 - impl Clone for Box { [INFO] [stdout] 27 + impl Clone for Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 16 | fn clone_layout(&self) -> Box; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - fn clone_layout(&self) -> Box; [INFO] [stdout] 16 + fn clone_layout(&self) -> Box; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | fn clone_layout(&self) -> Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - fn clone_layout(&self) -> Box { [INFO] [stdout] 22 + fn clone_layout(&self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/layout.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | fn clone(&self) -> Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 28 - fn clone(&self) -> Box { [INFO] [stdout] 28 + fn clone(&self) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | layout: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 38 - layout: Box, [INFO] [stdout] 38 + layout: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/workspace.rs:252:41 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn select_clients(&self, pred: &Fn(&ClientW) -> bool) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 252 - pub fn select_clients(&self, pred: &Fn(&ClientW) -> bool) -> Vec { [INFO] [stdout] 252 + pub fn select_clients(&self, pred: &dyn Fn(&ClientW) -> bool) -> Vec { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/core.rs:1106:36 [INFO] [stdout] | [INFO] [stdout] 1106 | fn on_expose_notify(&mut self, event: xlib::XExposeEvent) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/core.rs:1176:36 [INFO] [stdout] | [INFO] [stdout] 1176 | fn on_motion_notify(&mut self, event: xlib::XMotionEvent) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/core.rs:1187:25 [INFO] [stdout] | [INFO] [stdout] 1187 | let tag = c.tag(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/config.rs:50:53 [INFO] [stdout] | [INFO] [stdout] 50 | vec![(mod_mask, keysym::XK_q, Box::new(|w| process::exit(0))), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `global_config` [INFO] [stdout] --> src/loggers.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | global_config: &Config, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_global_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/layout.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | fn post(&self, message: &str, window_manager: &mut core::WindowManager) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_manager` [INFO] [stdout] --> src/layout.rs:12:35 [INFO] [stdout] | [INFO] [stdout] 12 | fn post(&self, message: &str, window_manager: &mut core::WindowManager) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/layout.rs:91:28 [INFO] [stdout] | [INFO] [stdout] 91 | fn layout_rects(&self, config: Rc, n: usize, rect: Rect) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core.rs:865:17 [INFO] [stdout] | [INFO] [stdout] 865 | for (_, mut w) in self.workspaces.iter_mut() { [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/core.rs:1181:21 [INFO] [stdout] | [INFO] [stdout] 1181 | if let Some(mut c) = self.get_client_by_window(event.window).as_mut() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `anchor_window` [INFO] [stdout] --> src/client.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | anchor_window: xlib::Window, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_dialog` [INFO] [stdout] --> src/client.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | is_dialog: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `old_border` [INFO] [stdout] --> src/client.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | old_border: c_int, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TRACE` [INFO] [stdout] --> src/core.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const TRACE: bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/core.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | fn peek(&self) -> Option<&ClientW> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `screen` [INFO] [stdout] --> src/core.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | screen: c_int, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `current_returned` [INFO] [stdout] --> src/workspace.rs:367:5 [INFO] [stdout] | [INFO] [stdout] 367 | current_returned: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `net_wm_state_sticky` [INFO] [stdout] --> src/atoms.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn net_wm_state_sticky() -> xlib::Atom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/atoms.rs:152:69 [INFO] [stdout] | [INFO] [stdout] 152 | unsafe { xlib::XInternAtom(display, CString::new(atom).unwrap().as_ptr(), 0) } [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/loggers.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | / write!(self.child.stdin.as_mut().unwrap(), [INFO] [stdout] 174 | | "{}", [INFO] [stdout] 175 | | self.config.separator); [INFO] [stdout] | |_____________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/loggers.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | write!(self.child.stdin.as_mut().unwrap(), "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.86s [INFO] running `Command { std: "docker" "inspect" "9340f1f9bc7a02576104022e60ecca428f2ac65aa85fdcb102913cea87059a14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9340f1f9bc7a02576104022e60ecca428f2ac65aa85fdcb102913cea87059a14", kill_on_drop: false }` [INFO] [stdout] 9340f1f9bc7a02576104022e60ecca428f2ac65aa85fdcb102913cea87059a14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 30536ed27a3351afdbdf68eda34b43d1086c1daef90e8384b185ad352d3bc0d7 [INFO] running `Command { std: "docker" "start" "-a" "30536ed27a3351afdbdf68eda34b43d1086c1daef90e8384b185ad352d3bc0d7", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/util.rs:57:24 [INFO] [stderr] | [INFO] [stderr] 57 | let mut list: *mut (*mut c_char) = unsafe { zeroed() }; [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 57 - let mut list: *mut (*mut c_char) = unsafe { zeroed() }; [INFO] [stderr] 57 + let mut list: *mut *mut c_char = unsafe { zeroed() }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::borrow::Cow` [INFO] [stderr] --> src/client.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::borrow::Cow; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FullScreen`, `Overview` [INFO] [stderr] --> src/core.rs:15:14 [INFO] [stderr] | [INFO] [stderr] 15 | use layout::{FullScreen, Layout, Overview, Tile}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ClientL` [INFO] [stderr] --> src/config.rs:7:14 [INFO] [stderr] | [INFO] [stderr] 7 | use client::{ClientL, ClientW}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `mustache::MapBuilder` [INFO] [stderr] --> src/loggers.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use mustache::MapBuilder; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Write` [INFO] [stderr] --> src/layout.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Write; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Write` [INFO] [stderr] --> src/workspace.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::io::Write; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `c_int` [INFO] [stderr] --> src/workspace.rs:4:20 [INFO] [stderr] | [INFO] [stderr] 4 | use std::os::raw::{c_int, c_uchar, c_uint}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/prompt.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | try!(child.wait()); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/prompt.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 35 | try!(child.stdout.unwrap().read_to_string(&mut result)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/prompt.rs:25:25 [INFO] [stderr] | [INFO] [stderr] 25 | let mut child = try!(process::Command::new("dmenu") [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/prompt.rs:31:13 [INFO] [stderr] | [INFO] [stderr] 31 | try!(writeln!(child.stdin.as_mut().unwrap(), "{}", c)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/core.rs:122:17 [INFO] [stderr] | [INFO] [stderr] 122 | logger: Box, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 122 - logger: Box, [INFO] [stderr] 122 + logger: Box, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/config.rs:22:25 [INFO] [stderr] | [INFO] [stderr] 22 | pub type WmAction = Box; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 22 - pub type WmAction = Box; [INFO] [stderr] 22 + pub type WmAction = Box; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/config.rs:23:32 [INFO] [stderr] | [INFO] [stderr] 23 | pub type ClientPredicate = Box bool>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 23 - pub type ClientPredicate = Box bool>; [INFO] [stderr] 23 + pub type ClientPredicate = Box bool>; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/config.rs:24:29 [INFO] [stderr] | [INFO] [stderr] 24 | pub type ClientAction = Box; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 24 - pub type ClientAction = Box; [INFO] [stderr] 24 + pub type ClientAction = Box; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/config.rs:25:28 [INFO] [stderr] | [INFO] [stderr] 25 | pub type StartAction = Box; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 25 - pub type StartAction = Box; [INFO] [stderr] 25 + pub type StartAction = Box; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/config.rs:42:39 [INFO] [stderr] | [INFO] [stderr] 42 | pub tag_layout: Vec<(c_uchar, Box)>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 42 - pub tag_layout: Vec<(c_uchar, Box)>, [INFO] [stderr] 42 + pub tag_layout: Vec<(c_uchar, Box)>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/workspace.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | layout: Box, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 27 - layout: Box, [INFO] [stderr] 27 + layout: Box, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/workspace.rs:365:20 [INFO] [stderr] | [INFO] [stderr] 365 | prev_iter: Box + 'a>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 365 - prev_iter: Box + 'a>, [INFO] [stderr] 365 + prev_iter: Box + 'a>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/workspace.rs:366:20 [INFO] [stderr] | [INFO] [stderr] 366 | next_iter: Box + 'a>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 366 - next_iter: Box + 'a>, [INFO] [stderr] 366 + next_iter: Box + 'a>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/workspace.rs:385:20 [INFO] [stderr] | [INFO] [stderr] 385 | prev_iter: Box + 'a>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 385 - prev_iter: Box + 'a>, [INFO] [stderr] 385 + prev_iter: Box + 'a>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/workspace.rs:386:20 [INFO] [stderr] | [INFO] [stderr] 386 | next_iter: Box + 'a>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 386 - next_iter: Box + 'a>, [INFO] [stderr] 386 + next_iter: Box + 'a>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/layout.rs:148:21 [INFO] [stderr] | [INFO] [stderr] 148 | pub layout: Box, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 148 - pub layout: Box, [INFO] [stderr] 148 + pub layout: Box, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/client.rs:589:35 [INFO] [stderr] | [INFO] [stderr] 589 | predicate: &Fn(&Self::Item) -> bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 589 - predicate: &Fn(&Self::Item) -> bool, [INFO] [stderr] 589 + predicate: &dyn Fn(&Self::Item) -> bool, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/client.rs:591:36 [INFO] [stderr] | [INFO] [stderr] 591 | yes_action: &Fn(&mut Self::Item), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 591 - yes_action: &Fn(&mut Self::Item), [INFO] [stderr] 591 + yes_action: &dyn Fn(&mut Self::Item), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/client.rs:592:35 [INFO] [stderr] | [INFO] [stderr] 592 | no_action: &Fn(&mut Self::Item)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 592 - no_action: &Fn(&mut Self::Item)) [INFO] [stderr] 592 + no_action: &dyn Fn(&mut Self::Item)) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/client.rs:619:35 [INFO] [stderr] | [INFO] [stderr] 619 | predicate: &Fn(&ClientW) -> bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 619 - predicate: &Fn(&ClientW) -> bool, [INFO] [stderr] 619 + predicate: &dyn Fn(&ClientW) -> bool, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/client.rs:621:36 [INFO] [stderr] | [INFO] [stderr] 621 | yes_action: &Fn(&mut ClientW), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 621 - yes_action: &Fn(&mut ClientW), [INFO] [stderr] 621 + yes_action: &dyn Fn(&mut ClientW), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/client.rs:622:35 [INFO] [stderr] | [INFO] [stderr] 622 | no_action: &Fn(&mut ClientW)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 622 - no_action: &Fn(&mut ClientW)) [INFO] [stderr] 622 + no_action: &dyn Fn(&mut ClientW)) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/core.rs:23:59 [INFO] [stderr] | [INFO] [stderr] 23 | fn lookup_layout(config: Rc, tag: c_uchar) -> Box { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 23 - fn lookup_layout(config: Rc, tag: c_uchar) -> Box { [INFO] [stderr] 23 + fn lookup_layout(config: Rc, tag: c_uchar) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/core.rs:318:46 [INFO] [stderr] | [INFO] [stderr] 318 | pub fn set_logger(&mut self, logger: Box) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 318 - pub fn set_logger(&mut self, logger: Box) { [INFO] [stderr] 318 + pub fn set_logger(&mut self, logger: Box) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/config.rs:175:59 [INFO] [stderr] | [INFO] [stderr] 175 | pub fn tag_layout(mut self, layout: Vec<(c_uchar, Box)>) -> Config { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 175 - pub fn tag_layout(mut self, layout: Vec<(c_uchar, Box)>) -> Config { [INFO] [stderr] 175 + pub fn tag_layout(mut self, layout: Vec<(c_uchar, Box)>) -> Config { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/layout.rs:27:20 [INFO] [stderr] | [INFO] [stderr] 27 | impl Clone for Box { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 27 - impl Clone for Box { [INFO] [stderr] 27 + impl Clone for Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/layout.rs:16:35 [INFO] [stderr] | [INFO] [stderr] 16 | fn clone_layout(&self) -> Box; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 16 - fn clone_layout(&self) -> Box; [INFO] [stderr] 16 + fn clone_layout(&self) -> Box; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/layout.rs:22:35 [INFO] [stderr] | [INFO] [stderr] 22 | fn clone_layout(&self) -> Box { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 22 - fn clone_layout(&self) -> Box { [INFO] [stderr] 22 + fn clone_layout(&self) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/layout.rs:28:28 [INFO] [stderr] | [INFO] [stderr] 28 | fn clone(&self) -> Box { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 28 - fn clone(&self) -> Box { [INFO] [stderr] 28 + fn clone(&self) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/workspace.rs:38:21 [INFO] [stderr] | [INFO] [stderr] 38 | layout: Box, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 38 - layout: Box, [INFO] [stderr] 38 + layout: Box, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/workspace.rs:252:41 [INFO] [stderr] | [INFO] [stderr] 252 | pub fn select_clients(&self, pred: &Fn(&ClientW) -> bool) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 252 - pub fn select_clients(&self, pred: &Fn(&ClientW) -> bool) -> Vec { [INFO] [stderr] 252 + pub fn select_clients(&self, pred: &dyn Fn(&ClientW) -> bool) -> Vec { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `event` [INFO] [stderr] --> src/core.rs:1106:36 [INFO] [stderr] | [INFO] [stderr] 1106 | fn on_expose_notify(&mut self, event: xlib::XExposeEvent) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `event` [INFO] [stderr] --> src/core.rs:1176:36 [INFO] [stderr] | [INFO] [stderr] 1176 | fn on_motion_notify(&mut self, event: xlib::XMotionEvent) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tag` [INFO] [stderr] --> src/core.rs:1187:25 [INFO] [stderr] | [INFO] [stderr] 1187 | let tag = c.tag(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `w` [INFO] [stderr] --> src/config.rs:50:53 [INFO] [stderr] | [INFO] [stderr] 50 | vec![(mod_mask, keysym::XK_q, Box::new(|w| process::exit(0))), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `global_config` [INFO] [stderr] --> src/loggers.rs:128:13 [INFO] [stderr] | [INFO] [stderr] 128 | global_config: &Config, [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_global_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `message` [INFO] [stderr] --> src/layout.rs:12:20 [INFO] [stderr] | [INFO] [stderr] 12 | fn post(&self, message: &str, window_manager: &mut core::WindowManager) {} [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `window_manager` [INFO] [stderr] --> src/layout.rs:12:35 [INFO] [stderr] | [INFO] [stderr] 12 | fn post(&self, message: &str, window_manager: &mut core::WindowManager) {} [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window_manager` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/layout.rs:91:28 [INFO] [stderr] | [INFO] [stderr] 91 | fn layout_rects(&self, config: Rc, n: usize, rect: Rect) -> Vec { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/core.rs:865:17 [INFO] [stderr] | [INFO] [stderr] 865 | for (_, mut w) in self.workspaces.iter_mut() { [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/core.rs:1181:21 [INFO] [stderr] | [INFO] [stderr] 1181 | if let Some(mut c) = self.get_client_by_window(event.window).as_mut() { [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: field is never read: `anchor_window` [INFO] [stderr] --> src/client.rs:63:5 [INFO] [stderr] | [INFO] [stderr] 63 | anchor_window: xlib::Window, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `is_dialog` [INFO] [stderr] --> src/client.rs:72:5 [INFO] [stderr] | [INFO] [stderr] 72 | is_dialog: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `old_border` [INFO] [stderr] --> src/client.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 88 | old_border: c_int, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `TRACE` [INFO] [stderr] --> src/core.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | const TRACE: bool = true; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `peek` [INFO] [stderr] --> src/core.rs:74:8 [INFO] [stderr] | [INFO] [stderr] 74 | fn peek(&self) -> Option<&ClientW> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `screen` [INFO] [stderr] --> src/core.rs:113:5 [INFO] [stderr] | [INFO] [stderr] 113 | screen: c_int, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `current_returned` [INFO] [stderr] --> src/workspace.rs:367:5 [INFO] [stderr] | [INFO] [stderr] 367 | current_returned: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `net_wm_state_sticky` [INFO] [stderr] --> src/atoms.rs:55:8 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn net_wm_state_sticky() -> xlib::Atom { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/atoms.rs:152:69 [INFO] [stderr] | [INFO] [stderr] 152 | unsafe { xlib::XInternAtom(display, CString::new(atom).unwrap().as_ptr(), 0) } [INFO] [stderr] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/loggers.rs:173:9 [INFO] [stderr] | [INFO] [stderr] 173 | / write!(self.child.stdin.as_mut().unwrap(), [INFO] [stderr] 174 | | "{}", [INFO] [stderr] 175 | | self.config.separator); [INFO] [stderr] | |_____________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/loggers.rs:196:9 [INFO] [stderr] | [INFO] [stderr] 196 | write!(self.child.stdin.as_mut().unwrap(), "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `rswm` (lib) generated 60 warnings [INFO] [stderr] warning: `rswm` (lib test) generated 60 warnings (60 duplicates) [INFO] [stderr] warning: unused import: `rswm::client::ClientW` [INFO] [stderr] --> main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use rswm::client::ClientW; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Layout`, `Tile` [INFO] [stderr] --> main.rs:17:20 [INFO] [stderr] | [INFO] [stderr] 17 | use rswm::layout::{Tile, Tile13, FullScreen, Overview, Layout}; [INFO] [stderr] | ^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rswm` (bin "rswm" test) generated 2 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.28s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rswm-1bc938bf6b65fed6) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rswm-e6f23e13e734c75d) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests rswm [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/workdir/src/util.rs:57:24 [INFO] [stderr] | [INFO] [stderr] 57 | let mut list: *mut (*mut c_char) = unsafe { zeroed() }; [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 57 - let mut list: *mut (*mut c_char) = unsafe { zeroed() }; [INFO] [stderr] 57 + let mut list: *mut *mut c_char = unsafe { zeroed() }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "30536ed27a3351afdbdf68eda34b43d1086c1daef90e8384b185ad352d3bc0d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30536ed27a3351afdbdf68eda34b43d1086c1daef90e8384b185ad352d3bc0d7", kill_on_drop: false }` [INFO] [stdout] 30536ed27a3351afdbdf68eda34b43d1086c1daef90e8384b185ad352d3bc0d7