From af781dc7c80f96e9126df91985ee44cb0c3a22d8 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 6 Oct 2025 15:56:09 +0200 Subject: [PATCH] meson/rust: allow `else { if {} }` Part-of: --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index de9ec52c487..cd6d246128f 100644 --- a/meson.build +++ b/meson.build @@ -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 = [