@@ -13,6 +13,17 @@ LL | #[doc(cfg(x, y))]
1313 | ^^^^^^^^^------^^
1414 | |
1515 | expected a single argument here
16+ |
17+ help: if the struct should be enabled when all these predicates are, wrap them in `all`
18+ |
19+ LL - #[doc(cfg(x, y))]
20+ LL + #[doc(cfg(all(x, y)))]
21+ |
22+ help: alternately, if the struct should be enabled when any these predicates are, wrap them in `any`
23+ |
24+ LL - #[doc(cfg(x, y))]
25+ LL + #[doc(cfg(any(x, y)))]
26+ |
1627
1728error[E0539]: malformed `doc` attribute input
1829 --> $DIR/invalid-cfg.rs:7:1
@@ -29,6 +40,17 @@ LL | #[doc(cfg(x, y))]
2940 | ^^^^^^^^^------^^
3041 | |
3142 | expected a single argument here
43+ |
44+ help: if the struct should be enabled when all these predicates are, wrap them in `all`
45+ |
46+ LL - #[doc(cfg(x, y))]
47+ LL + #[doc(cfg(all(x, y)))]
48+ |
49+ help: alternately, if the struct should be enabled when any these predicates are, wrap them in `any`
50+ |
51+ LL - #[doc(cfg(x, y))]
52+ LL + #[doc(cfg(any(x, y)))]
53+ |
3254
3355error[E0539]: malformed `doc` attribute input
3456 --> $DIR/invalid-cfg.rs:12:1
@@ -45,6 +67,17 @@ LL | #[doc(cfg(x, y))]
4567 | ^^^^^^^^^------^^
4668 | |
4769 | expected a single argument here
70+ |
71+ help: if the struct should be enabled when all these predicates are, wrap them in `all`
72+ |
73+ LL - #[doc(cfg(x, y))]
74+ LL + #[doc(cfg(all(x, y)))]
75+ |
76+ help: alternately, if the struct should be enabled when any these predicates are, wrap them in `any`
77+ |
78+ LL - #[doc(cfg(x, y))]
79+ LL + #[doc(cfg(any(x, y)))]
80+ |
4881
4982error[E0539]: malformed `doc` attribute input
5083 --> $DIR/invalid-cfg.rs:18:1
@@ -61,6 +94,17 @@ LL | #[doc(cfg(x, y))]
6194 | ^^^^^^^^^------^^
6295 | |
6396 | expected a single argument here
97+ |
98+ help: if the struct should be enabled when all these predicates are, wrap them in `all`
99+ |
100+ LL - #[doc(cfg(x, y))]
101+ LL + #[doc(cfg(all(x, y)))]
102+ |
103+ help: alternately, if the struct should be enabled when any these predicates are, wrap them in `any`
104+ |
105+ LL - #[doc(cfg(x, y))]
106+ LL + #[doc(cfg(any(x, y)))]
107+ |
64108
65109error: aborting due to 8 previous errors
66110
0 commit comments