@@ -213,7 +213,7 @@ LL | #[cfg_attr(true, cfg(crate))]
213213 | ^^^^-----^
214214 | | |
215215 | | expected a valid identifier here
216- | help: must be of the form: `#[ cfg(predicate)] `
216+ | help: must be of the form: `cfg(predicate)`
217217 |
218218 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
219219
@@ -224,7 +224,7 @@ LL | #[cfg_attr(true, cfg(super))]
224224 | ^^^^-----^
225225 | | |
226226 | | expected a valid identifier here
227- | help: must be of the form: `#[ cfg(predicate)] `
227+ | help: must be of the form: `cfg(predicate)`
228228 |
229229 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
230230
@@ -235,7 +235,7 @@ LL | #[cfg_attr(true, cfg(self))]
235235 | ^^^^----^
236236 | | |
237237 | | expected a valid identifier here
238- | help: must be of the form: `#[ cfg(predicate)] `
238+ | help: must be of the form: `cfg(predicate)`
239239 |
240240 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
241241
@@ -246,7 +246,7 @@ LL | #[cfg_attr(true, cfg(Self))]
246246 | ^^^^----^
247247 | | |
248248 | | expected a valid identifier here
249- | help: must be of the form: `#[ cfg(predicate)] `
249+ | help: must be of the form: `cfg(predicate)`
250250 |
251251 = note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
252252
@@ -439,7 +439,7 @@ LL | #[cfg_attr(true, cfg($crate))]
439439 | ^^^^------^
440440 | | |
441441 | | expected a valid identifier here
442- | help: must be of the form: `#[ cfg(predicate)] `
442+ | help: must be of the form: `cfg(predicate)`
443443...
444444LL | foo!();
445445 | ------ in this macro invocation
0 commit comments