rusticl: silence new warnings from rustc versions above our rustc target

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36747>
(cherry picked from commit 20b2944274)
This commit is contained in:
Karol Herbst 2025-08-12 23:31:06 +02:00 committed by Eric Engestrom
parent 9c8853efba
commit 8d535efa7c
2 changed files with 7 additions and 1 deletions

View file

@ -3464,7 +3464,7 @@
"description": "rusticl: silence new warnings from rustc versions above our rustc target",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -76,6 +76,12 @@ rusticl_args = [
'-Aclippy::type_complexity',
]
# Disable warnings from future rustc versions.
# TODO: replace with rustc.get_supported_arguments when requiring meson-1.8+
if rustc.version().version_compare('>= 1.89')
rusticl_args += ['-Amismatched_lifetime_syntaxes']
endif
rusticl_drivers_enable = get_option('gallium-rusticl-enable-drivers')
foreach driver : rusticl_drivers_enable
rusticl_args += [