Skip to content

Commit 3089d61

Browse files
committed
Add cfg.cfg_attr.duplicates
1 parent ad81b59 commit 3089d61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/conditional-compilation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ CfgAttrs -> Attr (`,` Attr)* `,`?
410410
r[cfg.cfg_attr.allowed-positions]
411411
The `cfg_attr` attribute is allowed anywhere attributes are allowed.
412412

413+
r[cfg.cfg_attr.duplicates]
414+
Multiple `cfg_attr` attributes may be specified.
413415

414416
r[cfg.cfg_attr.behaviour]
415417
When the configuration predicate is true, this attribute expands out to the attributes listed after the predicate. For example, the following module will either be found at `linux.rs` or `windows.rs` based on the target.

0 commit comments

Comments
 (0)