Skip to content

Commit

Permalink
Merge pull request rust-lang#624 from ehuss/cfg-generic
Browse files Browse the repository at this point in the history
Update for cfg on generic parameter.
  • Loading branch information
Centril authored Jun 20, 2019
2 parents 65673ee + cc356b0 commit 7a5aab5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/conditional-compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ fn needs_not_foo() {
}
```

The `cfg` attribute is allowed anywhere attributes are allowed except on
generic parameters.
The `cfg` attribute is allowed anywhere attributes are allowed.

### The `cfg_attr` attribute

Expand Down Expand Up @@ -289,8 +288,7 @@ fn bewitched() {}
> is valid. This example would be equivalent to
> `#[cfg_attr(all(linux, feature ="multithreaded"), some_other_attribute)]`.
The `cfg_attr` attribute is allowed anywhere attributes are allowed except on
generic parameters.
The `cfg_attr` attribute is allowed anywhere attributes are allowed.

### The `cfg` macro

Expand Down

0 comments on commit 7a5aab5

Please sign in to comment.