Fix type walking about type of async block

This commit is contained in:
oxalica 2020-09-12 01:03:28 +08:00
parent cc4e287bb5
commit 529c369c9b
No known key found for this signature in database
GPG key ID: CED392DE0C483D00
3 changed files with 78 additions and 14 deletions

View file

@ -1602,6 +1602,11 @@ impl Type {
cb(type_.derived(ty.clone()));
}
}
TypeCtor::OpaqueType(..) => {
if let Some(bounds) = ty.impl_trait_bounds(db) {
walk_bounds(db, &type_.derived(ty.clone()), &bounds, cb);
}
}
_ => (),
}