From cc356b0135e9635c42b77bd6cd81a81c594ae79e Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 20 Jun 2019 08:15:30 -0700 Subject: [PATCH] Update for cfg on generic parameter. --- src/conditional-compilation.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/conditional-compilation.md b/src/conditional-compilation.md index 25e69394aea92..911a8c330d894 100644 --- a/src/conditional-compilation.md +++ b/src/conditional-compilation.md @@ -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 @@ -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