about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-05-30 15:57:27 -0700
committerGitHub <noreply@github.com>2022-05-30 15:57:27 -0700
commit22da719762c1d101c20f59620f1445f5eaf75bba (patch)
treef823806dacf96d81cbb1385152f08feed9c87f3d /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent3c0b9d50ae43eb4c13390fcc363e7cc4d4d661d3 (diff)
parent0be2ca96fa7d723db870fb2f96df0f07d32c0774 (diff)
downloadrust-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