mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Fix type walking about type of async block
This commit is contained in:
parent
cc4e287bb5
commit
529c369c9b
3 changed files with 78 additions and 14 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue