Issue Description
The project currently uses a pinned nightly Rust toolchain (nightly-2025-07-22) primarily due to the usage of the doc_cfg feature in documentation.
Current State
rust-toolchain.toml pins to nightly channel
docs/rust-doctest-dry-guide.md:486 uses #![feature(doc_cfg)] which is nightly-only
Potential Solutions
- Remove or isolate the
doc_cfg feature so it doesn't run under cargo test --doc on stable
- Wrap the feature in conditional compilation to only use it when nightly is available
- Document the requirement explicitly in README and rust-toolchain.toml if nightly is necessary
Benefits of Migration
- Lower maintenance overhead (stable releases have less churn)
- Better compatibility with downstream users
- More predictable build environment
Context
This issue was identified during PR review when adding llvm-tools-preview component for coverage testing.
Related:
Issue Description
The project currently uses a pinned nightly Rust toolchain (
nightly-2025-07-22) primarily due to the usage of thedoc_cfgfeature in documentation.Current State
rust-toolchain.tomlpins to nightly channeldocs/rust-doctest-dry-guide.md:486uses#![feature(doc_cfg)]which is nightly-onlyPotential Solutions
doc_cfgfeature so it doesn't run undercargo test --docon stableBenefits of Migration
Context
This issue was identified during PR review when adding
llvm-tools-previewcomponent for coverage testing.Related: