diff options
| author | Michael Goulet <michael@errs.io> | 2022-05-30 15:57:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-30 15:57:27 -0700 |
| commit | 22da719762c1d101c20f59620f1445f5eaf75bba (patch) | |
| tree | f823806dacf96d81cbb1385152f08feed9c87f3d /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 3c0b9d50ae43eb4c13390fcc363e7cc4d4d661d3 (diff) | |
| parent | 0be2ca96fa7d723db870fb2f96df0f07d32c0774 (diff) | |
| download | rust-22da719762c1d101c20f59620f1445f5eaf75bba.tar.gz rust-22da719762c1d101c20f59620f1445f5eaf75bba.zip | |
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
