meson: Disable unsafe_op_in_unsafe_fn in bindgen for now

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36849>
This commit is contained in:
Faith Ekstrand 2025-08-20 11:20:17 -04:00 committed by Marge Bot
parent 5db8727ed1
commit b15cd5dea0

View file

@ -798,6 +798,8 @@ if with_gallium_rusticl or with_nouveau_vk or with_tools.contains('etnaviv') or
'--raw-line', '#![allow(non_camel_case_types)]',
'--raw-line', '#![allow(non_snake_case)]',
'--raw-line', '#![allow(non_upper_case_globals)]',
# This is fixed in 0.72 but we don't have that in CI yet
'--raw-line', '#![allow(unsafe_op_in_unsafe_fn)]',
]
if rustc.version().version_compare('>= 1.88')
bindgen_output_args += ['--raw-line', '#![allow(unnecessary_transmutes)]']