is_coroutine -> is_coroutine_or_closure
This commit is contained in:
parent
d59f06fc64
commit
07adee7072
15 changed files with 29 additions and 22 deletions
|
@ -11,7 +11,7 @@ use rustc_span::Span;
|
|||
|
||||
pub fn provide(providers: &mut Providers) {
|
||||
providers.upvars_mentioned = |tcx, def_id| {
|
||||
if !tcx.is_closure(def_id) {
|
||||
if !tcx.is_closure_or_coroutine(def_id) {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue