Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unused: don't track objects in other packages that use us
When converting between two struct types, the fields use each other. However, we mustn't track the fields in a struct type from another package, as they should always be considered used, and we may end up creating nodes for them without ever recording uses. The old implementation of unused behaved correctly; we accidentally dropped a check. Closes gh-1360.
- Loading branch information