Skip to content

docs: correct stale gate_reflect_on_crate_feature doc comments#261

Open
iainmcgin wants to merge 1 commit into
mainfrom
iain/fix-stale-reflect-gate-docs
Open

docs: correct stale gate_reflect_on_crate_feature doc comments#261
iainmcgin wants to merge 1 commit into
mainfrom
iain/fix-stale-reflect-gate-docs

Conversation

@iainmcgin

Copy link
Copy Markdown
Collaborator

Doc-only fix for a one-PR-at-a-time artifact: the doc comment on buffa_build::Config::gate_reflect_on_crate_feature still said the method was paired with generate_reflection_vtable "until the public ReflectMode selector lands". That selector landed — reflect_mode() is public on the same type and ReflectMode is re-exported at the crate root — and the linked method no longer exists, so the intra-doc link was broken (rustdoc::broken_intra_doc_links fires on it).

Changes:

  • buffa-build/src/lib.rs: replace the stale pairing sentence with a description of what the knob does today — it controls only the crate-feature gate on emitted reflection impls, while the codegen mode is selected via the public reflect_mode() selector. The method stays experimental and #[doc(hidden)].
  • buffa-codegen/src/lib.rs: drop the same stale "paired with the experimental vtable flag" claim from the gate_reflect_on_crate_feature field doc.

Verified with RUSTDOCFLAGS="-D rustdoc::broken_intra_doc_links" cargo doc --no-deps -p buffa-build -p buffa-codegen — clean.

The doc on buffa_build::Config::gate_reflect_on_crate_feature still said it
was paired with generate_reflection_vtable "until the public ReflectMode
selector lands" - that selector landed (reflect_mode() is public on the same
type) and the linked method no longer exists, so the intra-doc link was
broken. The codegen-side field doc repeated the same stale pairing claim.
@github-actions

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@iainmcgin iainmcgin marked this pull request as ready for review June 29, 2026 03:16
@iainmcgin iainmcgin requested a review from azdagron June 29, 2026 03:17
@iainmcgin iainmcgin enabled auto-merge June 29, 2026 03:17
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