rust/compiler/rustc_parse
Michael Goulet 22da719762
Rollup merge of #97172 - SparrowLii:unsafe_extern, r=compiler-errors
Optimize the diagnostic generation for `extern unsafe`

This PR does the following about diagnostic generation when parsing foreign mod:
1. Fixes the FIXME about avoiding depending on the error message text.
2. Continue parsing when `unsafe` is followed by `{` (just like `unsafe extern {...}`).
3. Add test case.
2022-05-30 15:57:27 -07:00
..
src Rollup merge of #97172 - SparrowLii:unsafe_extern, r=compiler-errors 2022-05-30 15:57:27 -07:00
Cargo.toml migrate ambiguous plus diagnostic 2022-04-25 22:55:15 +02:00