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

Description
This is needed for the new rustdoc. Right now it is possible to get defs that are exported through pub use, but we have no way to distinguish them from naturally exported items.
Ideally rustdoc would be able to get all defs and imports, and by looping through the imports, determine if the import is an export or a re-export of a given def.
What should the API for this look like?