From 588eb6b6ad641a1b13dbdfd1330334ee934d1bd0 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 12 Jun 2024 15:22:23 +0200 Subject: [PATCH] use is_none_or in some places in the compiler --- crates/hir-ty/src/display.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/hir-ty/src/display.rs b/crates/hir-ty/src/display.rs index 5a9621bb69..241690d008 100644 --- a/crates/hir-ty/src/display.rs +++ b/crates/hir-ty/src/display.rs @@ -1387,6 +1387,7 @@ fn generic_args_sans_defaults<'ga>( } // otherwise, if the arg is equal to the param default, hide it (unless the // default is an error which can happen for the trait Self type) + #[allow(unstable_name_collisions)] default_parameters.get(i).is_none_or(|default_parameter| { // !is_err(default_parameter.skip_binders()) // &&