You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= help: to expect this configuration use `--check-cfg=cfg(foo)`
8
+
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
Copy file name to clipboardExpand all lines: tests/rustdoc-ui/doc-cfg.stderr
+23-3Lines changed: 23 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,37 @@ 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
+
13
33
error: `cfg` predicate is not specified
14
-
--> $DIR/doc-cfg.rs:7:7
34
+
--> $DIR/doc-cfg.rs:9:7
15
35
|
16
36
LL | #[doc(cfg())]
17
37
| ^^^^^ help: expected syntax is: `cfg(/* predicate */)`
18
38
19
39
error: multiple `cfg` predicates are specified
20
-
--> $DIR/doc-cfg.rs:8:16
40
+
--> $DIR/doc-cfg.rs:10:16
21
41
|
22
42
LL | #[doc(cfg(foo, bar))]
23
43
| ^^^
24
44
25
-
error: aborting due to 4 previous errors
45
+
error: aborting due to 4 previous errors; 2 warnings emitted
0 commit comments