Repository navigation
fix(analysis): isolate module import aliases by scope - #3550
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedNext included review available in 37 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Exact-head substantive review for |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a87b83a5a7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… review)
A one-liner `mod nested { call(); }` records the parent module depth
before its opening brace, so the depth-range nested check missed the
line and module_path_at resolved the parent alias for a call that Rust
would reject without an explicit child import. The scanner now records
every module-opening line, and the import binding marks those lines
nested so inline resolution fails closed instead of strengthening
exposure with wrong-owner evidence.
Regression: the inline one-liner case resolves None on the opening line
and the parent alias after it; with the open-line recording disabled the
new assertion fails (mutation-checked).
Summary
Fixes #3544. Module import aliases now carry nested-module line ranges and are not resolved inside child modules that did not import them. Existing nearest-binding, ambiguity, block, and mid-line close behavior remains unchanged; nested modules with their own alias retain their own target.
Proof
cargo test --locked -p ripr --lib analysis::test_grip_evidence::tests— 249 passed.cargo clippy --locked -p ripr --lib -- -D warnings— pass.cargo fmt --check— pass.git diff --check— pass.Claim boundary
This repairs static module-alias scope attribution only. It does not add general Rust name resolution, cross-crate reachability, macro expansion, or release readiness.