Skip to content

docs: convert restating comments to rustdoc in small crates - #3430

Merged
oferchen merged 1 commit into
masterfrom
docs/comment-audit-small-crates
Apr 29, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/comment-audit-small-crates

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Removes three restating-the-code // comments from production paths in crates/branding/src/workspace/version.rs (the FromStr impl and parse_component helper).
  • The remaining small crates (logging-sink, embedding, windows-gnu-eh, test-support) were already clean: their only // comments are inside #[cfg(test)] mod tests blocks, SAFETY blocks documenting unsafe invariants, or non-obvious WHY notes (kernel/ABI/runtime context) that the audit rules require preserving.
  • Zero // upstream: references were touched. All SAFETY comments and module-level //! docs are unchanged.

Test plan

  • No production logic changed (comment-only edits in version.rs).
  • CI: fmt + clippy.
  • CI: nextest stable.

Closes #1849.

Removes three restating-the-code line comments inside production paths
of branding::workspace::version. The remaining small crates
(logging-sink, embedding, windows-gnu-eh, test-support) were already
clean: their only `//` comments are inside `#[cfg(test)]` test modules,
SAFETY blocks, or non-obvious WHY notes that must be preserved.

Closes #1849.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Apr 29, 2026
@oferchen
oferchen merged commit 967c872 into master Apr 29, 2026
41 of 42 checks passed
@oferchen
oferchen deleted the docs/comment-audit-small-crates branch April 29, 2026 10:21
oferchen added a commit that referenced this pull request May 1, 2026
)

Removes three restating-the-code line comments inside production paths
of branding::workspace::version. The remaining small crates
(logging-sink, embedding, windows-gnu-eh, test-support) were already
clean: their only `//` comments are inside `#[cfg(test)]` test modules,
SAFETY blocks, or non-obvious WHY notes that must be preserved.

Closes #1849.
oferchen added a commit that referenced this pull request May 5, 2026
)

Removes three restating-the-code line comments inside production paths
of branding::workspace::version. The remaining small crates
(logging-sink, embedding, windows-gnu-eh, test-support) were already
clean: their only `//` comments are inside `#[cfg(test)]` test modules,
SAFETY blocks, or non-obvious WHY notes that must be preserved.

Closes #1849.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant