about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-06 13:27:41 +0100
committerGitHub <noreply@github.com>2022-12-06 13:27:41 +0100
commit48172ff64b17b3e927e97af0b1f19a8754cade83 (patch)
tree840e50f24319ff9c1d0ff1d8711eccc9ed2e86b2 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentbe3ad5d6b0d3292d53599b3325cb9e6bdf656749 (diff)
parent0e19fb92e1eb7f91aa5570b2ac782c9a42a6e329 (diff)
downloadrust-48172ff64b17b3e927e97af0b1f19a8754cade83.tar.gz
rust-48172ff64b17b3e927e97af0b1f19a8754cade83.zip
Rollup merge of #105098 - lyming2007:issue-103869-fix, r=eholk
propagate the error from parsing enum variant to the parser and emit out

While parsing enum variant, the error message always disappear
Because the error message that emit out is from main error of parser
The information of enum variant disappears while parsing enum variant with error
We only check the syntax of expecting token, i.e, in case https://github.com/rust-lang/rust/issues/103869
It will error it without telling the message that this error is from pasring enum variant.
Propagate the sub-error from parsing enum variant to the main error of parser by chaining it with map_err
Check the sub-error before emitting the main error of parser and attach it.
Fix https://github.com/rust-lang/rust/issues/103869
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions