We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2ec115 commit 14ac0a3Copy full SHA for 14ac0a3
src/tools/rust-analyzer/crates/hir-ty/src/display.rs
@@ -1462,7 +1462,7 @@ fn generic_args_sans_defaults<'ga>(
1462
// otherwise, if the arg is equal to the param default, hide it (unless the
1463
// default is an error which can happen for the trait Self type)
1464
#[allow(unstable_name_collisions)]
1465
- default_parameters.get(i).is_none_or(|default_parameter| {
+ IsNoneOr::is_none_or(default_parameters.get(i), |default_parameter| {
1466
// !is_err(default_parameter.skip_binders())
1467
// &&
1468
arg != &default_parameter.clone().substitute(Interner, ¶meters)
0 commit comments