mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Resolve associated types with type anchors
This commit is contained in:
parent
444f6caaba
commit
9fe10a9606
3 changed files with 42 additions and 12 deletions
|
@ -146,7 +146,7 @@ impl<'a> TyLoweringContext<'a> {
|
|||
self.lower_ty_ext(type_ref).0
|
||||
}
|
||||
|
||||
fn lower_ty_ext(&self, type_ref: &TypeRef) -> (Ty, Option<TypeNs>) {
|
||||
pub fn lower_ty_ext(&self, type_ref: &TypeRef) -> (Ty, Option<TypeNs>) {
|
||||
let mut res = None;
|
||||
let ty = match type_ref {
|
||||
TypeRef::Never => TyKind::Never.intern(&Interner),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue