f4199a9b21
Creating mutable or shared references to mutable static variables is discouraged, but still possible by taking a detour to a raw pointer via the addr_of! / addr_of_mut! macros. For details, see: https://github.com/rust-lang/rust/issues/114447 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10887 Cc: mesa-stable Reviewed-by: Karol Herbst <kherbst@redhat.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28415>