Skip to content

Commit df188fc

Browse files
authored
Update stderr
1 parent 4f2b25c commit df188fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/ui/cfg/path-kw-as-cfg-pred.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
...
444444
LL | foo!();
445445
| ------ in this macro invocation

0 commit comments

Comments
 (0)