Skip to content

Commit f74b116

Browse files
Remove unused functions from ast CoroutineKind
1 parent 594de02 commit f74b116

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

compiler/rustc_ast/src/ast.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2610,14 +2610,6 @@ impl CoroutineKind {
26102610
}
26112611
}
26122612

2613-
pub fn is_async(self) -> bool {
2614-
matches!(self, CoroutineKind::Async { .. })
2615-
}
2616-
2617-
pub fn is_gen(self) -> bool {
2618-
matches!(self, CoroutineKind::Gen { .. })
2619-
}
2620-
26212613
pub fn closure_id(self) -> NodeId {
26222614
match self {
26232615
CoroutineKind::Async { closure_id, .. }

0 commit comments

Comments
 (0)