File tree Expand file tree Collapse file tree 4 files changed +4
-36
lines changed
Expand file tree Collapse file tree 4 files changed +4
-36
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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`
1515pub fn foo ( ) { }
1616
1717pub mod module {
Original file line number Diff line number Diff line change 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
1111pub fn foo ( ) { }
Original file line number Diff line number Diff line change @@ -10,26 +10,6 @@ error: multiple `cfg` predicates are specified
1010LL | #[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-
3313error: `cfg` predicate is not specified
3414 --> $DIR/doc-cfg.rs:9:7
3515 |
@@ -42,5 +22,5 @@ error: multiple `cfg` predicates are specified
4222LL | #[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
You can’t perform that action at this time.
0 commit comments