Skip to content

Commit

Permalink
Rollup merge of #126328 - RalfJung:is_none_or, r=workingjubilee
Browse files Browse the repository at this point in the history
Add Option::is_none_or

ACP: rust-lang/libs-team#212
  • Loading branch information
workingjubilee authored Jun 13, 2024
2 parents 55fc418 + 588eb6b commit f7669c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/hir-ty/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
// &&
Expand Down

0 comments on commit f7669c1

Please sign in to comment.