Skip to content

Commit

Permalink
Rollup merge of #114704 - bvanjoi:fix-114636, r=compiler-errors
Browse files Browse the repository at this point in the history
parser: not insert dummy field in struct

Fixes #114636

This PR eliminates the dummy field, initially introduced in #113999, thereby enabling unrestricted use of `ident.unwrap()`. A side effect of this action is that we can only report the error of the first macro invocation field within the struct node.

An alternative solution might be giving a virtual name to the macro, but it appears more complex.(rust-lang/rust#114636 (comment)). Furthermore, if you think rust-lang/rust#114636 (comment) is a better solution, feel free to close this PR.
  • Loading branch information
matthiaskrgr committed Aug 30, 2023
2 parents ba13d4f + 0642584 commit 16cfd9a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 16cfd9a

Please sign in to comment.