Skip to content

Commit 72c1dad

Browse files
1 parent fcc8b38 commit 72c1dad

File tree

4 files changed

+4
-36
lines changed

4 files changed

+4
-36
lines changed

tests/rustdoc-ui/doc-cfg-check-cfg.cfg_empty.stderr

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/rustdoc-ui/doc-cfg-check-cfg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#![feature(doc_cfg)]
1212

1313
#[doc(cfg(foo))]
14-
//[cfg_empty]~^ WARN unexpected `cfg` condition name: `foo`
14+
// FIXME: Should emit: WARN unexpected `cfg` condition name: `foo`
1515
pub fn foo() {}
1616

1717
pub mod module {

tests/rustdoc-ui/doc-cfg.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
//~^ ERROR
55
//~^^ ERROR
66
#[doc(cfg(foo), cfg(bar))]
7-
//~^ WARN unexpected `cfg` condition name: `foo`
8-
//~^^ WARN unexpected `cfg` condition name: `bar`
7+
// FIXME: Should emit: WARN unexpected `cfg` condition name: `foo`
8+
// FIXME: Should emit: WARN unexpected `cfg` condition name: `bar`
99
#[doc(cfg())] //~ ERROR
1010
#[doc(cfg(foo, bar))] //~ ERROR
1111
pub fn foo() {}

tests/rustdoc-ui/doc-cfg.stderr

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,6 @@ error: multiple `cfg` predicates are specified
1010
LL | #[doc(cfg(), cfg(foo, bar))]
1111
| ^^^
1212

13-
warning: unexpected `cfg` condition name: `foo`
14-
--> $DIR/doc-cfg.rs:6:11
15-
|
16-
LL | #[doc(cfg(foo), cfg(bar))]
17-
| ^^^
18-
|
19-
= help: expected names are: `FALSE` and `test` and 31 more
20-
= help: to expect this configuration use `--check-cfg=cfg(foo)`
21-
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
22-
= note: `#[warn(unexpected_cfgs)]` on by default
23-
24-
warning: unexpected `cfg` condition name: `bar`
25-
--> $DIR/doc-cfg.rs:6:21
26-
|
27-
LL | #[doc(cfg(foo), cfg(bar))]
28-
| ^^^
29-
|
30-
= help: to expect this configuration use `--check-cfg=cfg(bar)`
31-
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
32-
3313
error: `cfg` predicate is not specified
3414
--> $DIR/doc-cfg.rs:9:7
3515
|
@@ -42,5 +22,5 @@ error: multiple `cfg` predicates are specified
4222
LL | #[doc(cfg(foo, bar))]
4323
| ^^^
4424

45-
error: aborting due to 4 previous errors; 2 warnings emitted
25+
error: aborting due to 4 previous errors
4626

0 commit comments

Comments
 (0)