Rename some more coro_kind -> coroutine_kind
This commit is contained in:
parent
d5dcd85376
commit
384a49edd0
3 changed files with 9 additions and 8 deletions
|
@ -162,8 +162,8 @@ impl<'a, T: EarlyLintPass> ast_visit::Visitor<'a> for EarlyContextAndPass<'a, T>
|
|||
// Explicitly check for lints associated with 'closure_id', since
|
||||
// it does not have a corresponding AST node
|
||||
if let ast_visit::FnKind::Fn(_, _, sig, _, _, _) = fk {
|
||||
if let Some(coro_kind) = sig.header.coroutine_kind {
|
||||
self.check_id(coro_kind.closure_id());
|
||||
if let Some(coroutine_kind) = sig.header.coroutine_kind {
|
||||
self.check_id(coroutine_kind.closure_id());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -223,9 +223,10 @@ impl<'a, T: EarlyLintPass> ast_visit::Visitor<'a> for EarlyContextAndPass<'a, T>
|
|||
// it does not have a corresponding AST node
|
||||
match e.kind {
|
||||
ast::ExprKind::Closure(box ast::Closure {
|
||||
coroutine_kind: Some(coro_kind), ..
|
||||
coroutine_kind: Some(coroutine_kind),
|
||||
..
|
||||
}) => {
|
||||
self.check_id(coro_kind.closure_id());
|
||||
self.check_id(coroutine_kind.closure_id());
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue