mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
use is_none_or in some places in the compiler
This commit is contained in:
parent
2a6d88b6f8
commit
588eb6b6ad
1 changed files with 1 additions and 0 deletions
|
@ -1387,6 +1387,7 @@ fn generic_args_sans_defaults<'ga>(
|
||||||
}
|
}
|
||||||
// otherwise, if the arg is equal to the param default, hide it (unless the
|
// 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)
|
// 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| {
|
default_parameters.get(i).is_none_or(|default_parameter| {
|
||||||
// !is_err(default_parameter.skip_binders())
|
// !is_err(default_parameter.skip_binders())
|
||||||
// &&
|
// &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue