rust/compiler/rustc_parse
Yiming Lei 0e19fb92e1 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 #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 #103869
2022-12-01 22:48:52 -08:00
..
src While parsing enum variant, the error message always disappear 2022-12-01 22:48:52 -08:00
Cargo.toml Use ThinVec in ast::Path. 2022-11-17 13:56:38 +11:00