diff --git a/compiler-core/src/analyse.rs b/compiler-core/src/analyse.rs index 6f7c28877..8cffa8a9e 100644 --- a/compiler-core/src/analyse.rs +++ b/compiler-core/src/analyse.rs @@ -1783,11 +1783,10 @@ fn get_compatible_record_fields( }; // The labels must be the same - #[allow(clippy::nonminimal_bool)] // TODO: Bump to Rust 1.83 - if !argument + if argument .label .as_ref() - .is_some_and(|(_, arg_label)| arg_label == first_label) + .is_none_or(|(_, arg_label)| arg_label != first_label) { continue 'next_argument; }