meson/rust: allow else { if {} }

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
Eric Engestrom 2025-10-06 15:56:09 +02:00
parent 47ebdbab81
commit af781dc7c8

View file

@ -821,6 +821,9 @@ if with_gallium_rusticl or with_nouveau_vk or with_tools.contains('etnaviv') or
endif
rust_global_args = [
# We want to be able to write `else { if {} }` when it makes more sense than
# collapsing it into `else if {}`.
'-Aclippy::collapsible_else_if',
]
rust_2024_lint_args = [