Skip to content

Commit 588eb6b

Browse files
committed
use is_none_or in some places in the compiler
1 parent 2a6d88b commit 588eb6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/hir-ty/src/display.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,7 @@ fn generic_args_sans_defaults<'ga>(
13871387
}
13881388
// otherwise, if the arg is equal to the param default, hide it (unless the
13891389
// default is an error which can happen for the trait Self type)
1390+
#[allow(unstable_name_collisions)]
13901391
default_parameters.get(i).is_none_or(|default_parameter| {
13911392
// !is_err(default_parameter.skip_binders())
13921393
// &&

0 commit comments

Comments
 (0)