Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.

Missing links for types in Fn types #37

Closed
nrc opened this issue Feb 24, 2017 · 1 comment
Closed

Missing links for types in Fn types #37

nrc opened this issue Feb 24, 2017 · 1 comment
Labels

Comments

@nrc
Copy link
Member

nrc commented Feb 24, 2017

e.g., fn for_each_sphere_light<F: Fn(&SphereLight) -> Colour>(&self, _f: F) -> Colour is missing links for SphereLight and Colour inside the Fn bound.

@nrc nrc added the bug label Mar 8, 2017
@nrc
Copy link
Member Author

nrc commented Oct 31, 2017

In fact, the ref for Colour points to the def of Fn

nrc added a commit to nrc/rust that referenced this issue Nov 2, 2017
This special cases the function type sugar in paths and deals with traits bounds as just the path parts. That required refactoring the path collector to distinguish between variable decls and references in patterns, basically just to please the borrow checker.

cc rust-dev-tools/rls-analysis#37
@nrc nrc closed this as completed Nov 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant