[INFO] cloning repository https://github.com/embik/nightshift [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/embik/nightshift" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fembik%2Fnightshift", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fembik%2Fnightshift'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6d803dce5043faa410c1b73e1a5b3455965fe89b [INFO] linting embik/nightshift against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fembik%2Fnightshift" "/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/embik/nightshift [INFO] finished tweaking git repo https://github.com/embik/nightshift [INFO] tweaked toml for git repo https://github.com/embik/nightshift written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/embik/nightshift on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/embik/nightshift 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libloading v0.4.3 [INFO] [stderr] Downloaded token_store v0.1.2 [INFO] [stderr] Downloaded wayland-scanner v0.12.4 [INFO] [stderr] Downloaded wayland-client v0.12.4 [INFO] [stderr] Downloaded dlib v0.4.0 [INFO] [stderr] Downloaded wayland-sys v0.12.4 [INFO] [stderr] Downloaded libc v0.2.24 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ec43bc01b22d0c37da0f3006b2abf2dfce1171d0c8bf72fab603800dc7ebf596 [INFO] running `Command { std: "docker" "start" "-a" "ec43bc01b22d0c37da0f3006b2abf2dfce1171d0c8bf72fab603800dc7ebf596", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ec43bc01b22d0c37da0f3006b2abf2dfce1171d0c8bf72fab603800dc7ebf596", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec43bc01b22d0c37da0f3006b2abf2dfce1171d0c8bf72fab603800dc7ebf596", kill_on_drop: false }` [INFO] [stdout] ec43bc01b22d0c37da0f3006b2abf2dfce1171d0c8bf72fab603800dc7ebf596 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4dbc1b7b21e5defbdc5d7a3845a62dc8f1297863546f3cd842744e7a2aa24b53 [INFO] running `Command { std: "docker" "start" "-a" "4dbc1b7b21e5defbdc5d7a3845a62dc8f1297863546f3cd842744e7a2aa24b53", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Compiling libloading v0.4.3 [INFO] [stderr] Checking token_store v0.1.2 [INFO] [stderr] Checking libc v0.2.24 [INFO] [stderr] Checking xml-rs v0.7.0 [INFO] [stderr] Checking dlib v0.4.0 [INFO] [stderr] Checking wayland-sys v0.12.4 [INFO] [stderr] Checking wayland-scanner v0.12.4 [INFO] [stderr] Compiling wayland-client v0.12.4 [INFO] [stderr] Compiling nightshift v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `GammaControl` [INFO] [stdout] --> src/wayland/gamma_control.rs:1:68 [INFO] [stdout] | [INFO] [stdout] 1 | pub use wayland::gamma_control::generated::client::gamma_control::{GammaControl, Implementation}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | GammaControlManager { ptr: ptr, data: Some((&*data).2.clone()) } [INFO] [stdout] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:74:39 [INFO] [stdout] | [INFO] [stdout] 74 | GammaControlManager { ptr: ptr, data: Some((&*data).2.clone()) } [INFO] [stdout] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:76:39 [INFO] [stdout] | [INFO] [stdout] 76 | GammaControlManager { ptr: ptr, data: Option::None } [INFO] [stdout] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GammaControl` [INFO] [stdout] --> src/wayland/gamma_control.rs:1:68 [INFO] [stdout] | [INFO] [stdout] 1 | pub use wayland::gamma_control::generated::client::gamma_control::{GammaControl, Implementation}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | GammaControlManager { ptr: ptr, data: Some((&*data).2.clone()) } [INFO] [stdout] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:74:39 [INFO] [stdout] | [INFO] [stdout] 74 | GammaControlManager { ptr: ptr, data: Some((&*data).2.clone()) } [INFO] [stdout] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:76:39 [INFO] [stdout] | [INFO] [stdout] 76 | GammaControlManager { ptr: ptr, data: Option::None } [INFO] [stdout] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:182:28 [INFO] [stdout] | [INFO] [stdout] 182 | GammaControl { ptr: ptr, data: Some((&*data).2.clone()) } [INFO] [stdout] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:182:28 [INFO] [stdout] | [INFO] [stdout] 182 | GammaControl { ptr: ptr, data: Some((&*data).2.clone()) } [INFO] [stdout] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:191:32 [INFO] [stdout] | [INFO] [stdout] 191 | GammaControl { ptr: ptr, data: Some((&*data).2.clone()) } [INFO] [stdout] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:193:32 [INFO] [stdout] | [INFO] [stdout] 193 | GammaControl { ptr: ptr, data: Option::None } [INFO] [stdout] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:191:32 [INFO] [stdout] | [INFO] [stdout] 191 | GammaControl { ptr: ptr, data: Some((&*data).2.clone()) } [INFO] [stdout] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:193:32 [INFO] [stdout] | [INFO] [stdout] 193 | GammaControl { ptr: ptr, data: Option::None } [INFO] [stdout] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:46:56 [INFO] [stdout] | [INFO] [stdout] 46 | type UserData = (*mut EventQueueHandle, Option>, Arc<(AtomicBool, AtomicPtr<()>)>); [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] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 | type UserData = (*mut EventQueueHandle, Option>, Arc<(AtomicBool, AtomicPtr<()>)>); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:46:56 [INFO] [stdout] | [INFO] [stdout] 46 | type UserData = (*mut EventQueueHandle, Option>, Arc<(AtomicBool, AtomicPtr<()>)>); [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] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 | type UserData = (*mut EventQueueHandle, Option>, Arc<(AtomicBool, AtomicPtr<()>)>); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:163:56 [INFO] [stdout] | [INFO] [stdout] 163 | type UserData = (*mut EventQueueHandle, Option>, Arc<(AtomicBool, AtomicPtr<()>)>); [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 163 | type UserData = (*mut EventQueueHandle, Option>, Arc<(AtomicBool, AtomicPtr<()>)>); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:163:56 [INFO] [stdout] | [INFO] [stdout] 163 | type UserData = (*mut EventQueueHandle, Option>, Arc<(AtomicBool, AtomicPtr<()>)>); [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 163 | type UserData = (*mut EventQueueHandle, Option>, Arc<(AtomicBool, AtomicPtr<()>)>); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `0 as *const _` detected [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:34:32 [INFO] [stdout] | [INFO] [stdout] 34 | const NULLPTR: *const c_void = 0 as *const c_void; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::null::()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zero_ptr [INFO] [stdout] = note: `#[warn(clippy::zero_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `0 as *const _` detected [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:34:32 [INFO] [stdout] | [INFO] [stdout] 34 | const NULLPTR: *const c_void = 0 as *const c_void; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::null::()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zero_ptr [INFO] [stdout] = note: `#[warn(clippy::zero_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:276:23 [INFO] [stdout] | [INFO] [stdout] 276 | pub fn to_raw(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] = note: `#[warn(clippy::wrong_self_convention)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:295:13 [INFO] [stdout] | [INFO] [stdout] 295 | / true [INFO] [stdout] 296 | | && (self.gamma_size as usize == other.gamma_size as usize) [INFO] [stdout] | |______________________________________________________________________^ help: try: `(self.gamma_size as usize == other.gamma_size as usize)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:276:23 [INFO] [stdout] | [INFO] [stdout] 276 | pub fn to_raw(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] = note: `#[warn(clippy::wrong_self_convention)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:295:13 [INFO] [stdout] | [INFO] [stdout] 295 | / true [INFO] [stdout] 296 | | && (self.gamma_size as usize == other.gamma_size as usize) [INFO] [stdout] | |______________________________________________________________________^ help: try: `(self.gamma_size as usize == other.gamma_size as usize)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | unsafe { &gamma_control_interface as *const wl_interface }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 45 | unsafe { &raw const gamma_control_interface as *const wl_interface }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 46 | unsafe { &wl_output_interface as *const wl_interface }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 46 | unsafe { &raw const wl_output_interface as *const wl_interface }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:49:132 [INFO] [stdout] | [INFO] [stdout] 49 | ...nst u8 as *const c_char, types: unsafe { &types_null as *const _ } }, [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 49 | wl_message { name: b"destroy\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &raw const types_null as *const _ } }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:50:144 [INFO] [stdout] | [INFO] [stdout] 50 | ...r, types: unsafe { &gamma_control_manager_requests_get_gamma_control_types as *const _ } }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 50 | wl_message { name: b"get_gamma_control\0" as *const u8 as *const c_char, signature: b"no\0" as *const u8 as *const c_char, types: unsafe { &raw const gamma_control_manager_requests_get_gamma_control_types as *const _ } }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:57:24 [INFO] [stdout] | [INFO] [stdout] 57 | requests: unsafe { &gamma_control_manager_requests as *const _ }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 57 | requests: unsafe { &raw const gamma_control_manager_requests as *const _ }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:65:132 [INFO] [stdout] | [INFO] [stdout] 65 | ...nst u8 as *const c_char, types: unsafe { &types_null as *const _ } }, [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 65 | wl_message { name: b"destroy\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &raw const types_null as *const _ } }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:66:137 [INFO] [stdout] | [INFO] [stdout] 66 | ...nst u8 as *const c_char, types: unsafe { &types_null as *const _ } }, [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 66 | wl_message { name: b"set_gamma\0" as *const u8 as *const c_char, signature: b"aaa\0" as *const u8 as *const c_char, types: unsafe { &raw const types_null as *const _ } }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:67:136 [INFO] [stdout] | [INFO] [stdout] 67 | ...nst u8 as *const c_char, types: unsafe { &types_null as *const _ } }, [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 67 | wl_message { name: b"reset_gamma\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &raw const types_null as *const _ } }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:70:136 [INFO] [stdout] | [INFO] [stdout] 70 | ...nst u8 as *const c_char, types: unsafe { &types_null as *const _ } }, [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 70 | wl_message { name: b"gamma_size\0" as *const u8 as *const c_char, signature: b"u\0" as *const u8 as *const c_char, types: unsafe { &raw const types_null as *const _ } }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | requests: unsafe { &gamma_control_requests as *const _ }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 77 | requests: unsafe { &raw const gamma_control_requests as *const _ }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | events: unsafe { &gamma_control_events as *const _ }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 79 | events: unsafe { &raw const gamma_control_events as *const _ }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:80:62 [INFO] [stdout] | [INFO] [stdout] 80 | fn interface_ptr() -> *const wl_interface { unsafe { &gamma_control_manager_interface } } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 80 | fn interface_ptr() -> *const wl_interface { unsafe { &raw const gamma_control_manager_interface } } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:141:152 [INFO] [stdout] | [INFO] [stdout] 141 | ...ONTROL_MANAGER_GET_GAMMA_CONTROL, &gamma_control_interface, ptr::null_mut::(), output.ptr()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 141 | let ptr = unsafe { ffi_dispatch!(WAYLAND_CLIENT_HANDLE, wl_proxy_marshal_constructor, self.ptr(), GAMMA_CONTROL_MANAGER_GET_GAMMA_CONTROL, &raw const gamma_control_interface, ptr::null_mut::(), output.ptr()) }; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:197:62 [INFO] [stdout] | [INFO] [stdout] 197 | fn interface_ptr() -> *const wl_interface { unsafe { &gamma_control_interface } } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 197 | fn interface_ptr() -> *const wl_interface { unsafe { &raw const gamma_control_interface } } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | unsafe { &gamma_control_interface as *const wl_interface }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 45 | unsafe { &raw const gamma_control_interface as *const wl_interface }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 46 | unsafe { &wl_output_interface as *const wl_interface }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 46 | unsafe { &raw const wl_output_interface as *const wl_interface }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:49:132 [INFO] [stdout] | [INFO] [stdout] 49 | ...nst u8 as *const c_char, types: unsafe { &types_null as *const _ } }, [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 49 | wl_message { name: b"destroy\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &raw const types_null as *const _ } }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:50:144 [INFO] [stdout] | [INFO] [stdout] 50 | ...r, types: unsafe { &gamma_control_manager_requests_get_gamma_control_types as *const _ } }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 50 | wl_message { name: b"get_gamma_control\0" as *const u8 as *const c_char, signature: b"no\0" as *const u8 as *const c_char, types: unsafe { &raw const gamma_control_manager_requests_get_gamma_control_types as *const _ } }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:57:24 [INFO] [stdout] | [INFO] [stdout] 57 | requests: unsafe { &gamma_control_manager_requests as *const _ }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 57 | requests: unsafe { &raw const gamma_control_manager_requests as *const _ }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:65:132 [INFO] [stdout] | [INFO] [stdout] 65 | ...nst u8 as *const c_char, types: unsafe { &types_null as *const _ } }, [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 65 | wl_message { name: b"destroy\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &raw const types_null as *const _ } }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:66:137 [INFO] [stdout] | [INFO] [stdout] 66 | ...nst u8 as *const c_char, types: unsafe { &types_null as *const _ } }, [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 66 | wl_message { name: b"set_gamma\0" as *const u8 as *const c_char, signature: b"aaa\0" as *const u8 as *const c_char, types: unsafe { &raw const types_null as *const _ } }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:67:136 [INFO] [stdout] | [INFO] [stdout] 67 | ...nst u8 as *const c_char, types: unsafe { &types_null as *const _ } }, [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 67 | wl_message { name: b"reset_gamma\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &raw const types_null as *const _ } }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:70:136 [INFO] [stdout] | [INFO] [stdout] 70 | ...nst u8 as *const c_char, types: unsafe { &types_null as *const _ } }, [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 70 | wl_message { name: b"gamma_size\0" as *const u8 as *const c_char, signature: b"u\0" as *const u8 as *const c_char, types: unsafe { &raw const types_null as *const _ } }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | requests: unsafe { &gamma_control_requests as *const _ }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 77 | requests: unsafe { &raw const gamma_control_requests as *const _ }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_interface.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | events: unsafe { &gamma_control_events as *const _ }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 79 | events: unsafe { &raw const gamma_control_events as *const _ }, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:80:62 [INFO] [stdout] | [INFO] [stdout] 80 | fn interface_ptr() -> *const wl_interface { unsafe { &gamma_control_manager_interface } } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 80 | fn interface_ptr() -> *const wl_interface { unsafe { &raw const gamma_control_manager_interface } } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:141:152 [INFO] [stdout] | [INFO] [stdout] 141 | ...ONTROL_MANAGER_GET_GAMMA_CONTROL, &gamma_control_interface, ptr::null_mut::(), output.ptr()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 141 | let ptr = unsafe { ffi_dispatch!(WAYLAND_CLIENT_HANDLE, wl_proxy_marshal_constructor, self.ptr(), GAMMA_CONTROL_MANAGER_GET_GAMMA_CONTROL, &raw const gamma_control_interface, ptr::null_mut::(), output.ptr()) }; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> /opt/rustwide/target/debug/build/nightshift-3267e59156610a98/out/gamma_control_api.rs:197:62 [INFO] [stdout] | [INFO] [stdout] 197 | fn interface_ptr() -> *const wl_interface { unsafe { &gamma_control_interface } } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 197 | fn interface_ptr() -> *const wl_interface { unsafe { &raw const gamma_control_interface } } [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.44s [INFO] running `Command { std: "docker" "inspect" "4dbc1b7b21e5defbdc5d7a3845a62dc8f1297863546f3cd842744e7a2aa24b53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4dbc1b7b21e5defbdc5d7a3845a62dc8f1297863546f3cd842744e7a2aa24b53", kill_on_drop: false }` [INFO] [stdout] 4dbc1b7b21e5defbdc5d7a3845a62dc8f1297863546f3cd842744e7a2aa24b53