Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![doc = include_str!("../README.md")]
#![cfg_attr(not(doc), no_std)]
#![feature(doc_cfg)]
#![cfg_attr(docsrs, feature(doc_cfg))]
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cfg_attr(docsrs, ...) relies on the docsrs cfg being set. A repo-wide search shows no place that sets/passes --cfg docsrs (e.g., in RUSTDOCFLAGS/RUSTFLAGS or package.metadata.docs.rs), so this feature gate will never be enabled in CI docs builds and may also trigger unexpected_cfgs warnings under -D warnings if check-cfg is active. Consider either switching to cfg_attr(doc, feature(doc_cfg)) (if you want it on any rustdoc build) or explicitly enabling/declaring docsrs (e.g., via Cargo.toml docs.rs metadata and/or the docs workflow flags / rustc check-cfg declarations).

Suggested change
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(doc, feature(doc_cfg))]

Copilot uses AI. Check for mistakes.
#![feature(core_io_borrowed_buf)]
#![cfg_attr(not(borrowedbuf_init), feature(maybe_uninit_fill))]
#![cfg_attr(not(maybe_uninit_slice), feature(maybe_uninit_slice))]
Expand Down
Loading