mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
fix: replace errors in receiver type when iterating method candidates
This commit is contained in:
parent
009e6ceb1d
commit
11aed78e2b
2 changed files with 23 additions and 3 deletions
|
@ -2601,9 +2601,7 @@ impl Type {
|
|||
) {
|
||||
// There should be no inference vars in types passed here
|
||||
// FIXME check that?
|
||||
// FIXME replace Unknown by bound vars here
|
||||
let canonical =
|
||||
Canonical { value: self.ty.clone(), binders: CanonicalVarKinds::empty(&Interner) };
|
||||
let canonical = hir_ty::replace_errors_with_variables(&self.ty);
|
||||
|
||||
let env = self.env.clone();
|
||||
let krate = krate.id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue