Skip to content

fix(macros): document or hide every generated public item - #236

Merged
blackopsrepl merged 1 commit into
mainfrom
fix/document-generated-items
Nov 10, 2026
Merged

blackopsrepl merged 1 commit into
mainfrom
fix/document-generated-items

Conversation

@blackopsrepl

Copy link
Copy Markdown
Collaborator

Closes #235. Local gate on the branch tip: make ci-local and make lint passed (1715 tests, 0 failed, 116 result lines; clippy --all-targets --all-features -D warnings; public API, facade reachability, doc names, file length, deps). New test generated_items_documented fails without either half of the fix.

The planning macros emitted public items without docs, so a user crate
that enables missing_docs got warnings it could not fix, pointing at the
attribute. Internal plumbing (descriptor, entity_count, entity_descriptor,
problem_fact_descriptor and __SOLVERFORGE_LIST_VARIABLE_COUNT) is now
#[doc(hidden)] like the macros' other hidden accessors, and the collection
source methods, the generated <Solution>ConstraintStreams trait and its
methods carry generated docs.

The generated_items_documented test denies missing_docs over a planning
model that re-exports the stream trait; it fails without either half of
the change. The macros WIREFRAME records which generated items are hidden.

Closes #235
@blackopsrepl
blackopsrepl merged commit 73ead60 into main Nov 10, 2026
7 checks passed
@blackopsrepl
blackopsrepl deleted the fix/document-generated-items branch November 10, 2026 01:42
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.

fix(macros): generated public items trip missing_docs in user crates

1 participant