Skip to content

fix(ic-certification): drop removed doc_auto_cfg feature attribute - #506

Closed
claude[bot] wants to merge 1 commit into
mainfrom
fix/ic-certification-doc-auto-cfg
Closed

claude[bot] wants to merge 1 commit into
mainfrom
fix/ic-certification-doc-auto-cfg

Conversation

@claude

@claude claude Bot commented Oct 28, 2026

Copy link
Copy Markdown

Requested by Daniel Wong · Slack thread

Before: packages/ic-certification/src/lib.rs enables the nightly feature doc_auto_cfg when built with --cfg docsrs. That feature was merged into doc_cfg and removed from rustc in 1.92.0 (rust-lang/rust#138907), so the docs.rs build of the crate (see build 4579659) fails with error[E0557]: feature has been removed and no documentation is published.

After: The crate attribute only enables doc_cfg, which still exists on nightly, so cargo +nightly doc with --cfg docsrs succeeds and docs.rs can build and publish the documentation again.

How: remove doc_auto_cfg from the #[cfg_attr(docsrs, feature(...))] line on line 4; nothing else changes. Verified locally with cargo check -p ic-certification (stable 1.88) and RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc -p ic-certification --no-deps, which reproduced the E0557 error before the change and passes after it.


Generated by Claude Code

The doc_auto_cfg nightly feature was merged into doc_cfg and removed from
rustc, so docs.rs builds of this crate fail with
`error[E0557]: feature has been removed`. Drop `doc_auto_cfg` from the
cfg_attr and keep `doc_cfg`.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QaNdVsxCZhg3dDjpFHiRdZ
@claude
claude Bot requested a review from a team as a code owner October 28, 2026 09:52
@lwshang

lwshang commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Duplicate of #505

@lwshang lwshang marked this as a duplicate of #505 Oct 28, 2026
@lwshang lwshang closed this Oct 28, 2026
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.

2 participants