Skip to content

Commit a5ecffa

Browse files
committed
Use doc_cfg to allow nightly docs to build
1 parent e7ca4fb commit a5ecffa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
77

88
## [Unreleased]
99

10+
- Change `feature(doc_auto_cfg)` to `feature(doc_cfg)` to allow nightly docs to build.
1011
- Add unsafe block around `DEVICE_PERIPHERALS = true` in `Peripherals::steal()`
1112
to support Rust 2024 edition.
1213

src/generate/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
5959
#![allow(non_camel_case_types)]
6060
#![allow(non_snake_case)]
6161
#![no_std]
62-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
62+
#![cfg_attr(docsrs, feature(doc_cfg))]
6363
});
6464
}
6565

0 commit comments

Comments
 (0)