is_closure_like
This commit is contained in:
parent
899c895ba4
commit
cb024ba6e3
17 changed files with 40 additions and 37 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_or_coroutine(def_id) {
|
||||
if !tcx.is_closure_like(def_id) {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue