Skip to content

Commit 3978a1c

Browse files
Add entry to "future possibilities" about making doc(cfg_auto()) attribute not limited to crate-level
1 parent e5d1eeb commit 3978a1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

text/000-rustdoc-cfgs-handling.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ When re-exporting items with different cfgs there are two things that can happen
269269
# Future possibilities
270270
[future possibilities]: #future-possibilities
271271

272+
The `#[cfg(cfg_auto(enable))]`/`#[cfg(cfg_auto(disable))]` attribute is crate-level only for now as it doesn't really seem useful to be used on a specific item at the moment. However, if needed, this restriction could be lifted in the future if new needs come to appear.
273+
272274
## Boolean simplification
273275
[boolean simplification]: #boolean-simplification
274276

0 commit comments

Comments
 (0)