about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJakub Kądziołka <kuba@kadziolka.net>2022-01-01 05:12:56 +0100
committerJakub Kądziołka <kuba@kadziolka.net>2022-01-01 05:21:36 +0100
commit193342eb8d38afb7327642ced3434730b6f4fa00 (patch)
tree94b345629e4f4311727daa40bfa6d5dd64df061e /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent8ed935e92dfb09ae388344b12284bf5110cf9265 (diff)
downloadrust-193342eb8d38afb7327642ced3434730b6f4fa00.tar.gz
rust-193342eb8d38afb7327642ced3434730b6f4fa00.zip
Emit an error for `--cfg=)`
Fixes #73026

See also: #64467, #89468

The issue stems from a `FatalError` being silently raised in
`panictry_buffer`. Normally this is not a problem, because
`panictry_buffer` emits the causes of the error, but they are not
themselves fatal, so they get filtered out by the silent emitter.

To fix this, we use a parser entrypoint which doesn't use
`panictry_buffer`, and we handle the error ourselves.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions