-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow looking up
ImplementedTrait
even if the trait item is missing. (
#530) (#541) * Allow looking up `ImplementedTrait` even if the trait item is missing. (#530) The trait item is only present if the trait is local to our crate, or if it's one of a handful of common Rust built-in traits whose definitions we manually inline. The previous behavior of the adapter was to _not produce_ an `ImplementedTrait` vertex if the item wasn't present. This made it look like generics were missing some bounds, etc. This PR implements a better choice: it produces an `ImplementedTrait` always, and instead makes it so that the edge to the underlying `Trait` might be missing. We also provide the trait ID and a renaming-proof trait name, to further improve the robustness of this code and make it possible for downstream use cases to look up the foreign trait by ID. * Fix compilation error. * Update edges.rs
- Loading branch information
1 parent
245c5a3
commit bb14968
Showing
8 changed files
with
258 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.