Skip to content

docs(common,tests): discipline comments per comment spec - #24

Open
Boreas618 wants to merge 1 commit into
mainfrom
docs/comment-discipline-common
Open

docs(common,tests): discipline comments per comment spec#24
Boreas618 wants to merge 1 commit into
mainfrom
docs/comment-discipline-common

Conversation

@Boreas618

Copy link
Copy Markdown
Contributor

Comment-discipline sweep of main.rs, common/bitset.rs, common/graph.rs, experimental.rs, and tests/tests.rs, per the repo comment specification:

  • Removed 12 divider banners in tests/tests.rs (§5.4 — the spec supersedes the recent "divider comments" style commit), plus stage-narrations and floating section headers (§5.1/§9.3).
  • main.rs: removed early-exit narrations; kept the borrow-scope WHY; precision fixes in the module/CLI docs (an asm stage is not an "intermediate representation").
  • common/graph.rs: Graph::from_nodes doc now states the invariant its construction order exists for (forward label references), not the step narration.
  • bitset.rs/experimental.rs verified compliant, no edits.

Comments-only; cargo build clean; no new rustdoc warnings.

- removed 12 divider banners (§5.4): 7 top-level section banners and 5
  in-test step banners in tests/tests.rs
- removed 7 narrations of the obvious (§5.1): 2 early-exit comments and
  1 target-resolution comment in src/main.rs, 4 "Step N" comments in
  test_ir in tests/tests.rs
- removed 2 floating section-header lines (§9.3) in tests/tests.rs
- rewrote 3 comments for form: optimizer-scope narration to the
  borrow-lifetime constraint in src/main.rs, from_nodes step narration to
  the forward-branch-target invariant in src/common/graph.rs, and the
  dead_code rationale in tests/tests.rs stripped of future framing (§3.1)
- fixed 3 imprecise docs (§4.1/§8.1) in src/main.rs: module doc says the
  pipeline (not the output stage) stops early; EmitTarget and the --emit
  field no longer call a stage an "intermediate representation"
- trimmed 1 annotation block duplicating the asmt_tests doc (§2.2) in
  tests/tests.rs; kept the per-feature cargo invocations
@Boreas618
Boreas618 force-pushed the docs/comment-discipline-common branch from 2ca21f6 to 29097fd Compare August 1, 2026 11:00
@Boreas618
Boreas618 changed the base branch from assign3 to main August 1, 2026 11:13
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