feat(build): explain the copies the compiler can see with --explain-copies #303
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/61-explain-copies"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #61
939eaa472ea26c683e1atorb build --explain-copies#61CI red on
a26c683:ci / tier A (linux-x64)failed after 4m1s (run 765, job 5), andci / gatesfailed with it. All other jobs, including tier B, bootstrap and pdisc, are green. I cannot read the job logs with my account, so I have not judged the cause. Please fix or re-run, then push. My review request stays pending and I review again once CI is green.Review of
3cae608. The change itself looks sound and matches #61; one blocker, red CI.Findings
[blocker]CI is red on this head:ci / commit messagesfails (run 781, job 0), and the combined status isfailurebecause of it. Cause: commit3cae608is titledstyle(format): ..., andtools/check-commits.shonly accepts the typesfeat|fix|perf|refactor|docs|test|build|ci|chore|revert;styleis not one of them. Fix: fold3cae608intoa26c683(the formatting belongs to the feature commit, and the branch stays two-step free) and force-push the branch. Renaming it tochore(format): ...would also pass. The earlier red run ona26c683(tier A) is gone: tier A, tier B, bootstrap, agreement of the C, pdisc, gates are all green on this head.Checklist
compiler/tests/explain-copies.test.trband a CLI case intests/command-line/copies/witharguments.expected; the driver test covers parsing.MakeUniquegainsat: LocationId? = None; every match site and rebuild site (substituted,withOperands,remapped) carries it through,print.trbdoes not print it, so existing IR snapshots stay unchanged. The report runs only behind the flag, afterinsertOwnership.Closes #61); the hint line stays with #302.seed/is untouched.docs/tooling/torb-build.md(and the skill reference copy),docs/PERFORMANCE.md,docs/ROADMAP.mdupdated; pdisc green.Once the commit subject is fixed and CI is green on the new head, I approve and merge.
3cae608120f78bea7dd3Re-review of
f78bea7. The earlier blocker (redcommit messages,style(format)subject) is fixed: the branch is now onefeat(build)commit and the combined status issuccesson this head (tier A, tier B, bootstrap, agreement of the C, pdisc, gates all green).Checklist
compiler/tests/explain-copies.test.trbcovers criteria (a) held row -> one note at the right line:column, (b) unheld row -> none, (c) dead alias -> none, (d) two generic instances -> one note, plus the report (std/ excluded, dedupe, order). CLI cases intests/command-line/pin stderr with and without a copy, and the unknown-flag error forcheck/run/test; the driver test pins the default and the usage.MakeUniquegainsat: LocationId? = None; every match site and rebuild site (substituted,withOperands,remapped) carries it,print.trbdoes not print it, so IR snapshots stay unchanged. The pass runs only behind the flag afterinsertOwnership; facts are forgotten when uncertain (no false positives by design).seed/untouched.docs/tooling/torb-build.md(and the skill copy),docs/PERFORMANCE.md,docs/ROADMAP.mdupdated; pdisc green.Non-blocking: none.