Docs for §65.1 match the code (review M-3)
generate-label-rename README: "What changed" covers reworks 1-5 and the review fixes; the stale "engine and verifier unchanged in code" claim is replaced (what a rename rewrites is unchanged; the verifier gained no normalization, only path-qualified file names). Status lists reworks 2-5, P1/P2, §65.6 and the review; work log entries for M-2 and M-3, including that QA's P1/P2 were fixed in the tree with no log entry. refactor-rename README: dated correction. topo row 40: second half answered by row 43. CHANGELOG: the two scoping bullets merged into one that matches rework 5 plus the H-1/H-2 fix. qa_warning_scope.rs P1/P2 test comments and the rename module doc updated (comments only; that suite: 24 passed). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
6d1957076a
commit
a062f62581
7 files changed
+104
-35
No files matched your search
@@ -65,8 +65,31 @@ resolution print watches it unchanged.
|
||||
name.
|
||||
- `lucisv_mcp/src/tools/edit.rs`: the `block`-kind rename refusal is removed.
|
||||
|
||||
The rename engine (`vlog_refactor/src/rename/`) and the verifier
|
||||
(`check/`) are unchanged in code: the verifier gained no normalization.
|
||||
That was the first pass. The reworks and the review fixes then changed the
|
||||
engine's *warnings* and *messages*, never what a rename rewrites:
|
||||
|
||||
- `vlog_refactor/src/rename/paths.rs` (rework 1, F1): a hierarchical path
|
||||
segment spelling the name that resolved to nothing, in any file of the
|
||||
set, is warned about with its lines.
|
||||
- `rename/arms.rs` (rework 1, F2): the same-named member of another arm of
|
||||
the renamed member's generate label is warned about.
|
||||
- `bind/mod.rs`, `vlog_linter` `duplicate-declaration` (rework 1, F3): a
|
||||
label beside a net is a duplicate, not a use; `lib.rs::member_key`
|
||||
qualifies a subroutine's block (F4).
|
||||
- `scope.rs::name_of` / `name_at` (rework 2, R1): a file whose base name
|
||||
another file of the set shares is named by its path in every
|
||||
refactoring's messages, the verifier's included; counted once per set
|
||||
(`BaseNames`, review M-2).
|
||||
- `rename/home.rs`, `rename/scoped.rs` (reworks 3–5): rename warnings scoped
|
||||
to the declaration's home set; `lucisv_mcp/src/tools/mentions.rs`
|
||||
(`Focus::local`) scopes mentions the same way.
|
||||
- `rename/carry.rs` (review H-1/H-2): a macro argument the macro carries to
|
||||
the declaration is warned about wherever it is written.
|
||||
- `scoped.rs::fragment_use_warnings` (review M-1): a use the rename edits is
|
||||
not reported as left unchanged.
|
||||
|
||||
The verifier (`check/`) gained no normalization: its only change is how it
|
||||
names files in its messages (R1).
|
||||
|
||||
## Assumptions
|
||||
|
||||
@@ -241,6 +264,16 @@ The rename engine (`vlog_refactor/src/rename/`) and the verifier
|
||||
- [x] rework F3: a label beside a net is a duplicate, not a use
|
||||
- [x] rework F4: function/task-local block keys never collide
|
||||
- [x] TODO §65.4 filed (root lookup for `tb.…` paths)
|
||||
- [x] rework 2 (R1–R4): path-qualified file names; `WholeSet::rooted` built
|
||||
once per set
|
||||
- [x] rework 3: rename warnings and mentions scoped to the declaration
|
||||
- [x] rework 4 (H1–H4): the home set; fragments' plain uses said
|
||||
- [x] rework 5 (K1–K3, N1–N3): unscoped on any doubt
|
||||
- [x] QA closing-check P1 (a shadowing parameter no longer hides a dotted
|
||||
body spelling) and P2 (a default argument spelling the name is said)
|
||||
- [x] TODO §65.6 filed (rename inside included fragments)
|
||||
- [x] independent review (`oct_review.md`): H-1, H-2, M-1, M-2 fixed; M-3
|
||||
(these docs)
|
||||
|
||||
## Work log
|
||||
|
||||
@@ -565,6 +598,33 @@ launching the freshly linked `vlog_semantic/tests/struct_members` binary
|
||||
(`syspolicyd` at 71 % CPU: the §65.3 stall), limit not raised; the
|
||||
identical re-run passed.
|
||||
|
||||
**2026-10-07 — fix for review M-2.** `Scope::name_of` scanned every source
|
||||
per call, and `define_warnings` / `macro_use_warnings` named every file of
|
||||
the set before looking for a site — two quadratic passes, about 0.5 s of an
|
||||
opentitan rename. The base-name counts are now built once per set
|
||||
(`scope::BaseNames`, kept on the `Scope` and on the port offers' `Files`;
|
||||
`name_among` folded into it). Engine probe, whole `hw`,
|
||||
`entropy_src_main_sm.state_q`: 2.95 s → 2.23 s (defines 326 → 7 ms, macro
|
||||
arguments 394 → 77 ms), the same 47 warnings. Unit test
|
||||
`scope.rs` `a_file_name_another_file_shares_is_named_by_its_path`.
|
||||
|
||||
**2026-10-07 — docs for review M-3.** "What changed" now covers the reworks
|
||||
and the review fixes; the claim that the engine and the verifier were
|
||||
"unchanged in code" was stale after rework 2 (the verifier names files by
|
||||
`name_of`) and rework 3 (the warning modules) — what a rename *rewrites* is
|
||||
unchanged, and the verifier still gained no normalization. Status lists
|
||||
reworks 2–5, P1/P2 and §65.6. **P1/P2:** QA's closing check left
|
||||
`rework5_a_shadowing_parameter_does_not_hide_a_dotted_body_spelling` and
|
||||
`rework5_a_default_argument_spelling_the_name_is_said` ignored, but at
|
||||
review time the tree already held the fix with no work-log entry: in
|
||||
`scoped.rs::keeps_define_body` the unscoped fallback and a dotted body
|
||||
spelling come before the shadowing-parameter check, and a parameter named
|
||||
like the declaration silences nothing when a default argument spells the
|
||||
name bare (`DefineSite::default_bare`, scanned in
|
||||
`warnings.rs::define_sites_with`). Both tests run un-ignored and pass; their
|
||||
stale doc comment ("rework 5 does not") is corrected. Topo row 40's second
|
||||
half is marked answered; the CHANGELOG's two scoping bullets are merged.
|
||||
|
||||
## QA log
|
||||
|
||||
**2026-09-30 — QA agent (Opus).** Verdict: **PASS with findings** — no
|
||||
|
||||
@@ -1381,6 +1381,14 @@ surface under `module.label`), after which a missed segment is a reference
|
||||
that stops resolving and the existing resolution print refuses it — pinned by
|
||||
eight attacks in `check/qa_block_paths.rs`. `docs/features/generate-label-rename`.
|
||||
|
||||
**2026-10-07 — correction (independent review M-3).** The 2026-09-30 entry
|
||||
above says the engine and the verifier are "unchanged in code"; that held
|
||||
for the first pass only. The §65.1 reworks added rename-warning modules
|
||||
(`rename/paths.rs`, `arms.rs`, `home.rs`, `scoped.rs`, later `carry.rs`) and
|
||||
path-qualified file names in every refactoring's messages, the verifier's
|
||||
included (`Scope::name_of`). What a rename rewrites, and what the verifier
|
||||
forgives, did not change. `docs/features/generate-label-rename`.
|
||||
|
||||
## QA log
|
||||
|
||||
**2026-08-24 — QA agent.**
|
||||
|
||||
Reference in new issue
Block a user