← Back to Pull requests

Clean up WrongNamespace handling in intra-doc link resolution #167005

Merged
vedantchalke36 merged 1 files (41 lines) on Dec 04, 2026 04:14 UTC
View on GitHub
vedantchalke36 vedantchalke36 commented on Dec 03, 2026 15:06 UTC
Author

Fixes rust-lang/rust#77150.

This moves the wrong-namespace fallback out of resolve_with_disambiguator and into resolution_failure, so detection and rendering of WrongNamespace live in one place. The FIXME left by rust-lang/rust#76955 is removed.

Diagnostics are unchanged. The existing intra-doc UI tests cover the disambiguator mismatch cases.

Diff: 41 lines (+23 / -18) across 1 files Reviewer: GuillaumeGomez Review duration: 788m
All Vouch review confidence checks passed
Residual risk 0.08 = Change Risk (0.25) × (1 − Review Confidence (0.68)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.25 · 41 lines diff across 1 files
0.25
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.57 · 4 substantive comment(s)
0.57
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
67%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.224
Real PR Conversation Timeline
6 items
rustbot rustbot commented on Dec 03, 2026 15:06 UTC
Contributor

:warning: Warning :warning:

There are issue links (such as #123) in the commit messages of the following commits.
Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtrees.*
- bbdc1d07fa4010e352f792b21561405eb56c1982

rustbot rustbot commented on Dec 03, 2026 15:06 UTC
Contributor

Error: Failed to set assignee to jyn514: invalid assignee

Note: Only org members with at least the repository "read" role, users with write permissions, or people who have commented on the PR may be assigned.

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip.

GuillaumeGomez GuillaumeGomez approved these changes on Dec 03, 2026 15:41 UTC
Approved Reviewer

Approved these changes.

GuillaumeGomez GuillaumeGomez commented on Dec 03, 2026 15:41 UTC
Contributor

Thanks!

@bors r+ rollup

rust-bors[bot] rust-bors[bot] commented on Dec 03, 2026 15:41 UTC
Bot

:star2: Commit 0ebc593d38bab68659fc27e10716955432b3d6a8 has been tentatively approved by GuillaumeGomez

It will be put into the queue for this repository once PR CI succeeds.

Assignees
vedantchalke36 vedantchalke36
Labels
risk: low confidence: 67.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 25.4% (LOW) · Higher = larger blast radius
25.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 67.8% · Lower = rushed or shallow review
67.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 8.2% · Safe to merge
8.2%
Repository