rust/compiler/rustc_parse/src/parser
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
..
attr_wrapper.rs ast: Introduce some traits to get AST node properties generically 2022-05-11 12:43:27 +03:00
attr.rs Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
diagnostics.rs Auto merge of #97121 - pvdrz:do-subdiagnostics-later, r=davidtwco 2022-05-24 10:25:13 +00:00
expr.rs Minor improvement on else-no-if diagnostic 2022-05-24 15:22:13 -07:00
generics.rs Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
item.rs Rollup merge of #97172 - SparrowLii:unsafe_extern, r=compiler-errors 2022-05-30 15:57:27 -07:00
mod.rs Merge crate and restricted visibilities 2022-05-21 17:02:55 -04:00
nonterminal.rs ast: Introduce some traits to get AST node properties generically 2022-05-11 12:43:27 +03:00
pat.rs errors: span_suggestion takes impl ToString 2022-04-29 02:05:20 +01:00
path.rs rustc_ast: Harmonize delimiter naming with proc_macro::Delimiter 2022-04-28 10:04:29 +03:00
stmt.rs Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
ty.rs Introduce BareFnTy::decl_span and fix generics span. 2022-05-20 12:26:37 +02:00