[INFO] cloning repository https://github.com/bas1c1/NRWM [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bas1c1/NRWM" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbas1c1%2FNRWM", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbas1c1%2FNRWM'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e49c6f36cbc6ee5d398a1baa5e86a89e8d07f5fe [INFO] checking bas1c1/NRWM against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbas1c1%2FNRWM" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bas1c1/NRWM [INFO] finished tweaking git repo https://github.com/bas1c1/NRWM [INFO] tweaked toml for git repo https://github.com/bas1c1/NRWM written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bas1c1/NRWM on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bas1c1/NRWM already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pkg-config v0.3.31 [INFO] [stderr] Downloaded x11 v2.21.0 [INFO] [stderr] Downloaded log v0.4.22 [INFO] [stderr] Downloaded xcb v0.10.1 [INFO] [stderr] Downloaded quick-xml v0.22.0 [INFO] [stderr] Downloaded libc v0.2.169 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fad22bfe46b134927eb81f5fa3c22daa843f6105748cf7e27932c0ba56d0a1f5 [INFO] running `Command { std: "docker" "start" "-a" "fad22bfe46b134927eb81f5fa3c22daa843f6105748cf7e27932c0ba56d0a1f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fad22bfe46b134927eb81f5fa3c22daa843f6105748cf7e27932c0ba56d0a1f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fad22bfe46b134927eb81f5fa3c22daa843f6105748cf7e27932c0ba56d0a1f5", kill_on_drop: false }` [INFO] [stdout] fad22bfe46b134927eb81f5fa3c22daa843f6105748cf7e27932c0ba56d0a1f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd2ed13b69f64d791be7262f4538ce504331b42504be924d53be7696b762d6a5 [INFO] running `Command { std: "docker" "start" "-a" "fd2ed13b69f64d791be7262f4538ce504331b42504be924d53be7696b762d6a5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling x11 v2.21.0 [INFO] [stderr] Compiling quick-xml v0.22.0 [INFO] [stderr] Compiling xcb v0.10.1 [INFO] [stderr] Checking nrwm v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `c_char` [INFO] [stdout] --> src/main.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use std::os::raw::{c_char, c_ulong, c_uchar}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `vec_pop_if` has been stable since 1.86.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(vec_pop_if)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:112:3 [INFO] [stdout] | [INFO] [stdout] 57 | / loop { [INFO] [stdout] 58 | | xlib::XNextEvent(disp, &mut e as *mut xlib::XEvent); [INFO] [stdout] 59 | | if flag && e.type_ == 19 { [INFO] [stdout] 60 | | flag = false; [INFO] [stdout] ... | [INFO] [stdout] 109 | | updatePanel(disp, _root, panel); [INFO] [stdout] 110 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 111 | [INFO] [stdout] 112 | xlib::XCloseDisplay(disp); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wid` [INFO] [stdout] --> src/main.rs:181:22 [INFO] [stdout] | [INFO] [stdout] 181 | let wid: u32 = xlib::XDisplayWidth(disp, screen).try_into().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_wid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hei` [INFO] [stdout] --> src/main.rs:182:22 [INFO] [stdout] | [INFO] [stdout] 182 | let hei: u32 = xlib::XDisplayHeight(disp, screen).try_into().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hei` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `halfwid` [INFO] [stdout] --> src/main.rs:219:7 [INFO] [stdout] | [INFO] [stdout] 219 | let halfwid: i32 = (wid/2).try_into().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_halfwid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:234:7 [INFO] [stdout] | [INFO] [stdout] 234 | for i in windows.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root_` [INFO] [stdout] --> src/main.rs:212:36 [INFO] [stdout] | [INFO] [stdout] 212 | fn updatePanel(disp: *mut Display, root_: c_ulong, wnd: xlib::Window) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_root_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `cevents` should have an upper case name [INFO] [stdout] --> src/main.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const cevents: i64 = xlib::SubstructureNotifyMask | xlib::StructureNotifyMask | xlib::KeyPressMask | xlib::KeyReleaseMask | [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 13 - const cevents: i64 = xlib::SubstructureNotifyMask | xlib::StructureNotifyMask | xlib::KeyPressMask | xlib::KeyReleaseMask | [INFO] [stdout] 13 + const CEVENTS: i64 = xlib::SubstructureNotifyMask | xlib::StructureNotifyMask | xlib::KeyPressMask | xlib::KeyReleaseMask | [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `wpoint` should have an upper case name [INFO] [stdout] --> src/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | static mut wpoint: i32 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 16 - static mut wpoint: i32 = 0; [INFO] [stdout] 16 + static mut WPOINT: i32 = 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `windows` should have an upper case name [INFO] [stdout] --> src/main.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | static mut windows: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 17 - static mut windows: Vec = Vec::new(); [INFO] [stdout] 17 + static mut WINDOWS: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `panel_hei` should have an upper case name [INFO] [stdout] --> src/main.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const panel_hei: u32 = 50; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 19 - const panel_hei: u32 = 50; [INFO] [stdout] 19 + const PANEL_HEI: u32 = 50; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | if wpoint + 1 <= windows.len() as i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:85:36 [INFO] [stdout] | [INFO] [stdout] 85 | if wpoint >= 1 && wpoint <= windows.len() as i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grabKey` should have a snake case name [INFO] [stdout] --> src/main.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn grabKey(disp: *mut Display, root_: c_ulong, key: c_uchar, modd: u32) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `grab_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mapNotifyFunc` should have a snake case name [INFO] [stdout] --> src/main.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn mapNotifyFunc(disp: *mut Display, e: xlib::XEvent) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `map_notify_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:128:3 [INFO] [stdout] | [INFO] [stdout] 128 | windows.push(ev.window); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | wpoint = (windows.len()) as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unmapNotifyFunc` should have a snake case name [INFO] [stdout] --> src/main.rs:145:4 [INFO] [stdout] | [INFO] [stdout] 145 | fn unmapNotifyFunc(disp: *mut Display, e: xlib::XEvent) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `unmap_notify_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:148:31 [INFO] [stdout] | [INFO] [stdout] 148 | if wpoint >= 1 && wpoint <= windows.len() as i32 && ev.window == windows[(wpoint-1) as usize] { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:149:4 [INFO] [stdout] | [INFO] [stdout] 149 | windows.remove((wpoint-1) as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | if (windows.len() as i32) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | for i in windows.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:165:6 [INFO] [stdout] | [INFO] [stdout] 165 | windows.remove(c); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `showWindow` should have a snake case name [INFO] [stdout] --> src/main.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn showWindow(disp: *mut Display) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `show_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:176:32 [INFO] [stdout] | [INFO] [stdout] 176 | if wpoint >= 1 && wpoint-1 < windows.len() as i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createWindow` should have a snake case name [INFO] [stdout] --> src/main.rs:190:4 [INFO] [stdout] | [INFO] [stdout] 190 | fn createWindow(disp: *mut Display, root_: c_ulong, w: i32, h: i32, x: i32, y: i32) -> xlib::Window { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `create_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createPanel` should have a snake case name [INFO] [stdout] --> src/main.rs:201:4 [INFO] [stdout] | [INFO] [stdout] 201 | fn createPanel(disp: *mut Display, root_: c_ulong) -> xlib::Window { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `create_panel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `updatePanel` should have a snake case name [INFO] [stdout] --> src/main.rs:212:4 [INFO] [stdout] | [INFO] [stdout] 212 | fn updatePanel(disp: *mut Display, root_: c_ulong, wnd: xlib::Window) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `update_panel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:223:6 [INFO] [stdout] | [INFO] [stdout] 223 | if windows.len() as i32 > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | wsize = (wid/windows.len() as i32) as i32; [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:234:12 [INFO] [stdout] | [INFO] [stdout] 234 | for i in windows.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:240:67 [INFO] [stdout] | [INFO] [stdout] 240 | xlib::XDrawString(disp, wnd, gc, ((c+(wsize/2))) as i32, 25, (wpoint.to_string()+"\0").as_ptr() as *const i8, ((wpoint as u32).checke... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `c_char` [INFO] [stdout] --> src/main.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use std::os::raw::{c_char, c_ulong, c_uchar}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `vec_pop_if` has been stable since 1.86.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(vec_pop_if)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:112:3 [INFO] [stdout] | [INFO] [stdout] 57 | / loop { [INFO] [stdout] 58 | | xlib::XNextEvent(disp, &mut e as *mut xlib::XEvent); [INFO] [stdout] 59 | | if flag && e.type_ == 19 { [INFO] [stdout] 60 | | flag = false; [INFO] [stdout] ... | [INFO] [stdout] 109 | | updatePanel(disp, _root, panel); [INFO] [stdout] 110 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 111 | [INFO] [stdout] 112 | xlib::XCloseDisplay(disp); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wid` [INFO] [stdout] --> src/main.rs:181:22 [INFO] [stdout] | [INFO] [stdout] 181 | let wid: u32 = xlib::XDisplayWidth(disp, screen).try_into().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_wid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hei` [INFO] [stdout] --> src/main.rs:182:22 [INFO] [stdout] | [INFO] [stdout] 182 | let hei: u32 = xlib::XDisplayHeight(disp, screen).try_into().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hei` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `halfwid` [INFO] [stdout] --> src/main.rs:219:7 [INFO] [stdout] | [INFO] [stdout] 219 | let halfwid: i32 = (wid/2).try_into().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_halfwid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:234:7 [INFO] [stdout] | [INFO] [stdout] 234 | for i in windows.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root_` [INFO] [stdout] --> src/main.rs:212:36 [INFO] [stdout] | [INFO] [stdout] 212 | fn updatePanel(disp: *mut Display, root_: c_ulong, wnd: xlib::Window) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_root_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `cevents` should have an upper case name [INFO] [stdout] --> src/main.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const cevents: i64 = xlib::SubstructureNotifyMask | xlib::StructureNotifyMask | xlib::KeyPressMask | xlib::KeyReleaseMask | [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 13 - const cevents: i64 = xlib::SubstructureNotifyMask | xlib::StructureNotifyMask | xlib::KeyPressMask | xlib::KeyReleaseMask | [INFO] [stdout] 13 + const CEVENTS: i64 = xlib::SubstructureNotifyMask | xlib::StructureNotifyMask | xlib::KeyPressMask | xlib::KeyReleaseMask | [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `wpoint` should have an upper case name [INFO] [stdout] --> src/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | static mut wpoint: i32 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 16 - static mut wpoint: i32 = 0; [INFO] [stdout] 16 + static mut WPOINT: i32 = 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `windows` should have an upper case name [INFO] [stdout] --> src/main.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | static mut windows: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 17 - static mut windows: Vec = Vec::new(); [INFO] [stdout] 17 + static mut WINDOWS: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `panel_hei` should have an upper case name [INFO] [stdout] --> src/main.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const panel_hei: u32 = 50; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 19 - const panel_hei: u32 = 50; [INFO] [stdout] 19 + const PANEL_HEI: u32 = 50; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | if wpoint + 1 <= windows.len() as i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:85:36 [INFO] [stdout] | [INFO] [stdout] 85 | if wpoint >= 1 && wpoint <= windows.len() as i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `grabKey` should have a snake case name [INFO] [stdout] --> src/main.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn grabKey(disp: *mut Display, root_: c_ulong, key: c_uchar, modd: u32) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `grab_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mapNotifyFunc` should have a snake case name [INFO] [stdout] --> src/main.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn mapNotifyFunc(disp: *mut Display, e: xlib::XEvent) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `map_notify_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:128:3 [INFO] [stdout] | [INFO] [stdout] 128 | windows.push(ev.window); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | wpoint = (windows.len()) as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unmapNotifyFunc` should have a snake case name [INFO] [stdout] --> src/main.rs:145:4 [INFO] [stdout] | [INFO] [stdout] 145 | fn unmapNotifyFunc(disp: *mut Display, e: xlib::XEvent) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `unmap_notify_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:148:31 [INFO] [stdout] | [INFO] [stdout] 148 | if wpoint >= 1 && wpoint <= windows.len() as i32 && ev.window == windows[(wpoint-1) as usize] { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:149:4 [INFO] [stdout] | [INFO] [stdout] 149 | windows.remove((wpoint-1) as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | if (windows.len() as i32) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | for i in windows.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:165:6 [INFO] [stdout] | [INFO] [stdout] 165 | windows.remove(c); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `showWindow` should have a snake case name [INFO] [stdout] --> src/main.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn showWindow(disp: *mut Display) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `show_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:176:32 [INFO] [stdout] | [INFO] [stdout] 176 | if wpoint >= 1 && wpoint-1 < windows.len() as i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createWindow` should have a snake case name [INFO] [stdout] --> src/main.rs:190:4 [INFO] [stdout] | [INFO] [stdout] 190 | fn createWindow(disp: *mut Display, root_: c_ulong, w: i32, h: i32, x: i32, y: i32) -> xlib::Window { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `create_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createPanel` should have a snake case name [INFO] [stdout] --> src/main.rs:201:4 [INFO] [stdout] | [INFO] [stdout] 201 | fn createPanel(disp: *mut Display, root_: c_ulong) -> xlib::Window { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `create_panel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `updatePanel` should have a snake case name [INFO] [stdout] --> src/main.rs:212:4 [INFO] [stdout] | [INFO] [stdout] 212 | fn updatePanel(disp: *mut Display, root_: c_ulong, wnd: xlib::Window) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `update_panel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:223:6 [INFO] [stdout] | [INFO] [stdout] 223 | if windows.len() as i32 > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | wsize = (wid/windows.len() as i32) as i32; [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:234:12 [INFO] [stdout] | [INFO] [stdout] 234 | for i in windows.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:240:67 [INFO] [stdout] | [INFO] [stdout] 240 | xlib::XDrawString(disp, wnd, gc, ((c+(wsize/2))) as i32, 25, (wpoint.to_string()+"\0").as_ptr() as *const i8, ((wpoint as u32).checke... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.67s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: quick-xml v0.22.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "fd2ed13b69f64d791be7262f4538ce504331b42504be924d53be7696b762d6a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd2ed13b69f64d791be7262f4538ce504331b42504be924d53be7696b762d6a5", kill_on_drop: false }` [INFO] [stdout] fd2ed13b69f64d791be7262f4538ce504331b42504be924d53be7696b762d6a5