Skip to content

fix(rust): respect member and nested-worktree scan boundaries - #741

Open
AashrayAnand wants to merge 1 commit into
peteromallet:mainfrom
AashrayAnand:fix/rust-member-scan-worktrees
Open

fix(rust): respect member and nested-worktree scan boundaries#741
AashrayAnand wants to merge 1 commit into
peteromallet:mainfrom
AashrayAnand:fix/rust-member-scan-worktrees

Conversation

@AashrayAnand

Copy link
Copy Markdown

Summary

  • Stop Cargo workspace discovery at the nearest workspace, so a worktree nested beneath another checkout cannot resolve back into the outer checkout.
  • Preserve all targets/features and diagnostic flags while limiting member scans to their enclosing Cargo manifest; workspace-root scans remain workspace-wide.
  • Restrict rustdoc package selection to the scanned member or subtree.
  • Parse Cargo metadata JSON from stdout without appending warnings emitted on stderr.

Validation

  • All 140 Rust language tests pass.
  • Added synthetic regressions for nested worktrees, paths containing spaces, member versus workspace selection, metadata warnings, and explicit metadata failures.

No detector is disabled and no findings are suppressed.

Parse Cargo metadata from stdout without mixing diagnostic stderr. Scope check, Clippy, and rustdoc to the selected workspace member while preserving workspace-wide scans.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant