mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Record assoc item resolution
This commit is contained in:
parent
7b7133ec58
commit
c7cedea270
2 changed files with 58 additions and 1 deletions
|
@ -230,7 +230,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
|
|||
&mut self,
|
||||
ty: Ty,
|
||||
name: &Name,
|
||||
_id: ExprOrPatId,
|
||||
id: ExprOrPatId,
|
||||
) -> Option<(ValueNs, Option<Substs>)> {
|
||||
let krate = self.resolver.krate()?;
|
||||
|
||||
|
@ -276,6 +276,8 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
|
|||
trait_: t,
|
||||
substs: trait_substs,
|
||||
}));
|
||||
|
||||
self.write_assoc_resolution(id, *item);
|
||||
return Some((ValueNs::Function(f), Some(substs)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue