We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b43765 commit 23a7d59Copy full SHA for 23a7d59
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