mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
refactor: use cast()
instead of interning GenericArgData
This commit is contained in:
parent
5c28ad1932
commit
f8f5a5ea57
5 changed files with 34 additions and 61 deletions
|
@ -152,7 +152,7 @@ impl TyExt for Ty {
|
|||
TyKind::FnDef(def, parameters) => {
|
||||
let callable_def = db.lookup_intern_callable_def((*def).into());
|
||||
let sig = db.callable_item_signature(callable_def);
|
||||
Some(sig.substitute(Interner, ¶meters))
|
||||
Some(sig.substitute(Interner, parameters))
|
||||
}
|
||||
TyKind::Closure(.., substs) => {
|
||||
let sig_param = substs.at(Interner, 0).assert_ty_ref(Interner);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue