Commit 05a1590
- [ ] Added a `CHANGELOG.md` entry
Replace the removed `doc_auto_cfg` feature with the `doc_cfg` feature.
Avoid compilation errors when building documentation.
`doc_auto_cfg` was merged into `doc_cfg` in rust-lang/rust#138907.
When `docsrs` is enabled, the old `doc_auto_cfg` results in the
following errors on the latest nightlies:
```
error[E0557]: feature has been removed
--> src/lib.rs:56:29
|
56 | #![cfg_attr(docsrs, feature(doc_auto_cfg))]
| ^^^^^^^^^^^^ feature has been removed
|
= note: removed in CURRENT_RUSTC_VERSION; see <rust-lang/rust#138907> for more information
= note: merged into `doc_cfg`
```
```
error[E0557]: feature has been removed
--> rand_core/src/lib.rs:36:29
|
36 | #![cfg_attr(docsrs, feature(doc_auto_cfg))]
| ^^^^^^^^^^^^ feature has been removed
|
= note: removed in CURRENT_RUSTC_VERSION; see <rust-lang/rust#138907> for more information
= note: merged into `doc_cfg`
```
The new `doc_cfg` retains the automatic `cfg` generation that
`doc_auto_cfg` used to provide.
1 parent ed3e53e commit 05a1590
2 files changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
0 commit comments