mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add Lifetime to TyKind::Ref
This commit is contained in:
parent
4bc8a01830
commit
96756f1b1d
13 changed files with 74 additions and 43 deletions
|
@ -1888,9 +1888,10 @@ impl Type {
|
|||
substs.iter(&Interner).filter_map(|a| a.ty(&Interner)).any(go)
|
||||
}
|
||||
|
||||
TyKind::Array(ty) | TyKind::Slice(ty) | TyKind::Raw(_, ty) | TyKind::Ref(_, ty) => {
|
||||
go(ty)
|
||||
}
|
||||
TyKind::Array(ty)
|
||||
| TyKind::Slice(ty)
|
||||
| TyKind::Raw(_, ty)
|
||||
| TyKind::Ref(_, _, ty) => go(ty),
|
||||
|
||||
TyKind::Scalar(_)
|
||||
| TyKind::Str
|
||||
|
@ -2148,7 +2149,10 @@ impl Type {
|
|||
);
|
||||
}
|
||||
|
||||
TyKind::Ref(_, ty) | TyKind::Raw(_, ty) | TyKind::Array(ty) | TyKind::Slice(ty) => {
|
||||
TyKind::Ref(_, _, ty)
|
||||
| TyKind::Raw(_, ty)
|
||||
| TyKind::Array(ty)
|
||||
| TyKind::Slice(ty) => {
|
||||
walk_type(db, &type_.derived(ty.clone()), cb);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue