@@ -188,7 +188,7 @@ pub fn eq_expr(l: &Expr, r: &Expr) -> bool {
188
188
Closure ( box ast:: Closure {
189
189
binder : lb,
190
190
capture_clause : lc,
191
- coro_kind : la,
191
+ coroutine_kind : la,
192
192
movability : lm,
193
193
fn_decl : lf,
194
194
body : le,
@@ -197,7 +197,7 @@ pub fn eq_expr(l: &Expr, r: &Expr) -> bool {
197
197
Closure ( box ast:: Closure {
198
198
binder : rb,
199
199
capture_clause : rc,
200
- coro_kind : ra,
200
+ coroutine_kind : ra,
201
201
movability : rm,
202
202
fn_decl : rf,
203
203
body : re,
@@ -563,7 +563,7 @@ pub fn eq_fn_sig(l: &FnSig, r: &FnSig) -> bool {
563
563
eq_fn_decl ( & l. decl , & r. decl ) && eq_fn_header ( & l. header , & r. header )
564
564
}
565
565
566
- fn eq_opt_coro_kind ( l : Option < CoroutineKind > , r : Option < CoroutineKind > ) -> bool {
566
+ fn eq_opt_coroutine_kind ( l : Option < CoroutineKind > , r : Option < CoroutineKind > ) -> bool {
567
567
match ( l, r) {
568
568
( Some ( CoroutineKind :: Async { .. } ) , Some ( CoroutineKind :: Async { .. } ) )
569
569
| ( Some ( CoroutineKind :: Gen { .. } ) , Some ( CoroutineKind :: Gen { .. } ) ) => true ,
@@ -574,7 +574,7 @@ fn eq_opt_coro_kind(l: Option<CoroutineKind>, r: Option<CoroutineKind>) -> bool
574
574
575
575
pub fn eq_fn_header ( l : & FnHeader , r : & FnHeader ) -> bool {
576
576
matches ! ( l. unsafety, Unsafe :: No ) == matches ! ( r. unsafety, Unsafe :: No )
577
- && eq_opt_coro_kind ( l. coro_kind , r. coro_kind )
577
+ && eq_opt_coroutine_kind ( l. coroutine_kind , r. coroutine_kind )
578
578
&& matches ! ( l. constness, Const :: No ) == matches ! ( r. constness, Const :: No )
579
579
&& eq_ext ( & l. ext , & r. ext )
580
580
}
0 commit comments