Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Nov 15, 2025

DCA reports a small increase in resolved calls.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Nov 15, 2025
@hvitved hvitved force-pushed the rust/path-resolution-extern-crate-visibility branch from e06b4d5 to d46ecad Compare November 15, 2025 15:50
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Nov 15, 2025
@hvitved hvitved marked this pull request as ready for review November 15, 2025 19:05
@hvitved hvitved requested a review from a team as a code owner November 15, 2025 19:05
Copilot AI review requested due to automatic review settings November 15, 2025 19:05
Copilot finished reviewing on behalf of hvitved November 15, 2025 19:06
Copy link
Contributor

Copilot AI left a 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 externCrateEdge predicate to accept a SuccessorKind parameter and determine visibility based on whether the extern crate is public
  • Modified ExternCrateItemNode.getVisibility() to return the actual visibility instead of none()

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@geoffw0 geoffw0 left a 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.

@hvitved hvitved force-pushed the rust/path-resolution-extern-crate-visibility branch from d46ecad to 3d49eff Compare November 19, 2025 08:39
@hvitved
Copy link
Contributor Author

hvitved commented Nov 19, 2025

Would be nice to have a test for this.

I have added an integration test for this (we cannot do it with a normal QL test).

Copy link
Contributor

@geoffw0 geoffw0 left a 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.

@hvitved hvitved merged commit 0f40b3c into github:main Nov 20, 2025
22 checks passed
@hvitved hvitved deleted the rust/path-resolution-extern-crate-visibility branch November 20, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants