-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split doc_cfg and doc_auto_cfg features
- Loading branch information
1 parent
dca3f1b
commit d50a475
Showing
7 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -549,6 +549,7 @@ symbols! { | |
div_assign, | ||
doc, | ||
doc_alias, | ||
doc_auto_cfg, | ||
doc_cfg, | ||
doc_cfg_hide, | ||
doc_keyword, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#![feature(doc_auto_cfg)] | ||
|
||
#![crate_name = "foo"] | ||
|
||
// @has foo/fn.foo.html | ||
// @has - '//*[@class="item-info"]/*[@class="stab portability"]' 'non-test' | ||
#[cfg(not(test))] | ||
pub fn foo() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#![feature(doc_cfg)] | ||
|
||
#![crate_name = "foo"] | ||
|
||
// @has foo/fn.foo.html | ||
// @count - '//*[@class="item-info"]/*[@class="stab portability"]' 0 | ||
#[cfg(not(test))] | ||
pub fn foo() {} |