Use Option::is_some_and
and Result::is_ok_and
in the compiler
This commit is contained in:
parent
70db836922
commit
fb0f74a8c9
87 changed files with 148 additions and 158 deletions
|
@ -659,7 +659,7 @@ fn polymorphize<'tcx>(
|
|||
} else {
|
||||
None
|
||||
};
|
||||
let has_upvars = upvars_ty.map_or(false, |ty| !ty.tuple_fields().is_empty());
|
||||
let has_upvars = upvars_ty.is_some_and(|ty| !ty.tuple_fields().is_empty());
|
||||
debug!("polymorphize: upvars_ty={:?} has_upvars={:?}", upvars_ty, has_upvars);
|
||||
|
||||
struct PolymorphizationFolder<'tcx> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue