mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Don't use Substs for Ref/Raw/Array/Slice
This commit is contained in:
parent
af466f8542
commit
42217738e0
10 changed files with 103 additions and 116 deletions
|
@ -435,8 +435,7 @@ fn iterate_method_candidates_with_autoref(
|
|||
}
|
||||
let refed = Canonical {
|
||||
kinds: deref_chain[0].kinds.clone(),
|
||||
value: TyKind::Ref(Mutability::Not, Substs::single(deref_chain[0].value.clone()))
|
||||
.intern(&Interner),
|
||||
value: TyKind::Ref(Mutability::Not, deref_chain[0].value.clone()).intern(&Interner),
|
||||
};
|
||||
if iterate_method_candidates_by_receiver(
|
||||
&refed,
|
||||
|
@ -452,8 +451,7 @@ fn iterate_method_candidates_with_autoref(
|
|||
}
|
||||
let ref_muted = Canonical {
|
||||
kinds: deref_chain[0].kinds.clone(),
|
||||
value: TyKind::Ref(Mutability::Mut, Substs::single(deref_chain[0].value.clone()))
|
||||
.intern(&Interner),
|
||||
value: TyKind::Ref(Mutability::Mut, deref_chain[0].value.clone()).intern(&Interner),
|
||||
};
|
||||
if iterate_method_candidates_by_receiver(
|
||||
&ref_muted,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue