Merge commit '7901289135' into clippy-subtree-update
This commit is contained in:
parent
249210e8d8
commit
b61fcbee76
566 changed files with 7442 additions and 2576 deletions
|
|
@ -242,13 +242,16 @@ pub fn eq_expr(l: &Expr, r: &Expr) -> bool {
|
|||
}
|
||||
|
||||
fn eq_coroutine_kind(a: Option<CoroutineKind>, b: Option<CoroutineKind>) -> bool {
|
||||
match (a, b) {
|
||||
matches!(
|
||||
(a, b),
|
||||
(Some(CoroutineKind::Async { .. }), Some(CoroutineKind::Async { .. }))
|
||||
| (Some(CoroutineKind::Gen { .. }), Some(CoroutineKind::Gen { .. }))
|
||||
| (Some(CoroutineKind::AsyncGen { .. }), Some(CoroutineKind::AsyncGen { .. }))
|
||||
| (None, None) => true,
|
||||
_ => false,
|
||||
}
|
||||
| (Some(CoroutineKind::Gen { .. }), Some(CoroutineKind::Gen { .. }))
|
||||
| (
|
||||
Some(CoroutineKind::AsyncGen { .. }),
|
||||
Some(CoroutineKind::AsyncGen { .. })
|
||||
)
|
||||
| (None, None)
|
||||
)
|
||||
}
|
||||
|
||||
pub fn eq_field(l: &ExprField, r: &ExprField) -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue