mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
fix: Properly handle local trait impls
This commit is contained in:
parent
284c1741d6
commit
342fd2b9f3
13 changed files with 138 additions and 95 deletions
|
@ -3331,7 +3331,7 @@ impl Type {
|
|||
binders: CanonicalVarKinds::empty(Interner),
|
||||
};
|
||||
|
||||
db.trait_solve(self.env.krate, goal).is_some()
|
||||
db.trait_solve(self.env.krate, self.env.block, goal).is_some()
|
||||
}
|
||||
|
||||
pub fn normalize_trait_assoc_type(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue