about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-10 00:00:26 +0200
committerGitHub <noreply@github.com>2022-08-10 00:00:26 +0200
commitcf7a9ae8699033c5d2dd860dc0b2360851c49356 (patch)
tree1086193f641d33bcf8810791270b0cf2ead7eb89 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent0dc39c7bd9795927b903c8c24e89a00788ce3e33 (diff)
parent27b9b166d13024ca103dc8d611724b06c32302da (diff)
downloadrust-cf7a9ae8699033c5d2dd860dc0b2360851c49356.tar.gz
rust-cf7a9ae8699033c5d2dd860dc0b2360851c49356.zip
Rollup merge of #100040 - ChrisDenton:broken-pipe, r=davidtwco
Error on broken pipe but do not backtrace or ICE

Windows will report a broken pipe as a normal error which in turn `println!` will panic on. Currently this causes rustc to produce a backtrace and ICE. However, this is not a bug with rustc so a backtrace is overly verbose and ultimately unhelpful to the user.

Kind of fixes #98700. Although this is admittedly a bit of a hack because at panic time all we have is a string to inspect. On zulip it was suggested that libstd might someday provide a way to indicate a soft panic but that day isn't today.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions