mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add chalk_ir::Const to TyKind::Array
This commit is contained in:
parent
047b531301
commit
9fbba7bc45
12 changed files with 109 additions and 45 deletions
|
@ -1888,7 +1888,7 @@ impl Type {
|
|||
substs.iter(&Interner).filter_map(|a| a.ty(&Interner)).any(go)
|
||||
}
|
||||
|
||||
TyKind::Array(ty)
|
||||
TyKind::Array(ty, _)
|
||||
| TyKind::Slice(ty)
|
||||
| TyKind::Raw(_, ty)
|
||||
| TyKind::Ref(_, _, ty) => go(ty),
|
||||
|
@ -2151,7 +2151,7 @@ impl Type {
|
|||
|
||||
TyKind::Ref(_, _, ty)
|
||||
| TyKind::Raw(_, ty)
|
||||
| TyKind::Array(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