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 11
11
#![ feature( doc_cfg) ]
12
12
13
13
#[ doc( cfg( foo) ) ]
14
- //[cfg_empty]~^ WARN unexpected `cfg` condition name: `foo`
14
+ // FIXME: Should emit: WARN unexpected `cfg` condition name: `foo`
15
15
pub fn foo ( ) { }
16
16
17
17
pub mod module {
Original file line number Diff line number Diff line change 4
4
//~^ ERROR
5
5
//~^^ ERROR
6
6
#[ 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`
9
9
#[ doc( cfg( ) ) ] //~ ERROR
10
10
#[ doc( cfg( foo, bar) ) ] //~ ERROR
11
11
pub fn foo ( ) { }
Original file line number Diff line number Diff line change @@ -10,26 +10,6 @@ error: multiple `cfg` predicates are specified
10
10
LL | #[doc(cfg(), cfg(foo, bar))]
11
11
| ^^^
12
12
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
-
33
13
error: `cfg` predicate is not specified
34
14
--> $DIR/doc-cfg.rs:9:7
35
15
|
@@ -42,5 +22,5 @@ error: multiple `cfg` predicates are specified
42
22
LL | #[doc(cfg(foo, bar))]
43
23
| ^^^
44
24
45
- error: aborting due to 4 previous errors; 2 warnings emitted
25
+ error: aborting due to 4 previous errors
46
26
You can’t perform that action at this time.
0 commit comments