Repository navigation
Conversation
FredApps
marked this pull request as ready for review
November 17, 2026 17:18
FredApps
marked this pull request as draft
November 17, 2026 17:19
FredApps
marked this pull request as ready for review
November 17, 2026 17:41
I, FredApps <[email protected]>, hereby add my Signed-off-by to this commit: 3945dba I, FredApps <[email protected]>, hereby add my Signed-off-by to this commit: c9e8e5a I, FredApps <[email protected]>, hereby add my Signed-off-by to this commit: ae37fab Signed-off-by: FredApps <[email protected]>
This was referenced Nov 18, 2026
Merged
Member
|
#258 is merged (it brought in #232, #248, #250 and #254), along with #228-#231 and #233, so this branch now conflicts with Could you merge |
adityankale190895
pushed a commit
that referenced
this pull request
Nov 18, 2026
A literal #[path = "..."] on a module declaration is resolved relative to the declaring file (inline module names apply only in crate roots and mod.rs) and accepted when the target is a tracked .rs file in the same package; anything else still falls back. Fixes #226. Signed-off-by: FredApps <[email protected]>
Member
|
Merged to main as 167c2a8 (squashed, authorship kept). It conflicted with main only on the |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #226
Literal
#[path]modules that stay inside their own crate no longer make the repository fall back. That includes the common platform pattern:How it resolves (Rust reference rules, checked against rustc):
mod a { … }blocks, also relative to those module names (for crate roots andmod.rs).Every target must be a tracked
.rsfile, realpath'd inside the repository and owned by the same package. It's already a source of that crate, so crate-granular selection stays correct, and it also gets animportedge from the declaring file. Each target's directory is added to the inventory check, because modules it declares are looked up from there.Still falls back:
#[path]on an inline module;#![path];pathanywhere other than directly in the attribute or as acfg_attritem;#[path]inside an inline module of a file that isn't a crate root ormod.rs, because there the base depends on how that file was itself loaded.The new test covers the accepted forms, the inventory check for an out-of-tree target, and each fallback.
Validation (Linux, Node 22, Cargo 1.100):
npm run typecheckand the Rust test files (tests/repo/rust-*.test.ts,tests/planner/rust-command.test.ts) pass. The new test fails onmainand passes here.Merge order (#131 series: #232, #234, #248, #250, #252, #254, #256, #277, #258). These all edit the one-line Rust paragraph in
docs/using-diffci.md, and some also touchrust.ts/types.ts, so they conflict textually with each other. #258 already includes #232, #248, #250 and #254 with those conflicts resolved. The simplest path: merge #258 (GitHub marks those four as merged), then #234, #252, #256 and #277. After each one lands I mergemaininto the next and resolve the docs line. Merging them one at a time in number order works too, with the samemainmerge after each.