RUSTICL creating a shared reference to mutable static is discouraged and will become a hard error
Mesa trunk rev 72e1e6e1
Rust compiler for the host machine: rustc -C linker=cc (rustc 1.77.0)
Rust linker for the host machine: rustc -C linker=cc ld.bfd 2.42.0
[2303/2326] Compiling Rust source ../mesa/src/gallium/frontends/rusticl/lib.rs
warning: creating a mutable reference to mutable static is discouraged
--> ../mesa/src/gallium/frontends/rusticl/core/platform.rs:76:26
|
76 | let debug = unsafe { &mut PLATFORM_DBG };
| ^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see issue #114447 <https://github.com/rust-lang/rust/issues/114447>
= note: this will be a hard error in the 2024 edition
= note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior
= note: `#[warn(static_mut_refs)]` on by default
help: use `addr_of_mut!` instead to create a raw pointer
The above message is repeated several times.
mesa-minimal-git-24.1.0_devel.186662.72e1e6e1206-1-x86_64-build.log