about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-30 07:18:10 +0200
committerGitHub <noreply@github.com>2023-08-30 07:18:10 +0200
commit639116505a6c27a1fe4453aa6c108bc4e4976b2b (patch)
tree9f3edc370126ce75bc07f05f5f6850a13c1b5eef /compiler/rustc_codegen_llvm/src/errors.rs
parentdafea5f9198c9a187e9c623853cab2d4fe2e8416 (diff)
parent3ed435f8cbb1bde962b777edebc5637353b5b7ae (diff)
downloadrust-639116505a6c27a1fe4453aa6c108bc4e4976b2b.tar.gz
rust-639116505a6c27a1fe4453aa6c108bc4e4976b2b.zip
Rollup merge of #114704 - bvanjoi:fix-114636, r=compiler-errors
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.(https://github.com/rust-lang/rust/issues/114636#issuecomment-1670228715). Furthermore, if you think https://github.com/rust-lang/rust/issues/114636#issuecomment-1670228715 is a better solution, feel free to close this PR.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions