-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Rust: Handle pub extern crate in path resolution
#20842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust: Handle pub extern crate in path resolution
#20842
Conversation
e06b4d5 to
d46ecad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements support for pub extern crate declarations in path resolution. Previously, all extern crate declarations were treated as internal-only, but now public extern crates are properly exposed to external modules.
Key changes:
- Updated
externCrateEdgepredicate to accept aSuccessorKindparameter and determine visibility based on whether the extern crate is public - Modified
ExternCrateItemNode.getVisibility()to return the actual visibility instead ofnone()
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
geoffw0
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to have a test for this.
d46ecad to
3d49eff
Compare
I have added an integration test for this (we cannot do it with a normal QL test). |
geoffw0
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added an integration test for this (we cannot do it with a normal QL test).
Thanks.
LGTM.
DCA reports a small increase in resolved calls.