about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2021-01-15 15:51:32 +0300
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2021-01-16 06:55:29 +0300
commiteef383fa00be7565123f62e2dddd325e10e3ec21 (patch)
tree111cf20a65ef46a0e9e291db2b00158c1ceb4da3 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent6c869d34ae2d87d21db9892d4dc088639bcbe041 (diff)
downloadrust-eef383fa00be7565123f62e2dddd325e10e3ec21.tar.gz
rust-eef383fa00be7565123f62e2dddd325e10e3ec21.zip
doctest: Reset errors before dropping the parse session
The first parse is to collect whether the code contains macros, has
`main`, and uses other crates. In that pass we ignore errors as those
will be reported when the test file is actually built.

For that we need to reset errors in the `Diagnostic` otherwise when
dropping it unhandled errors will be reported as compiler bugs.

Fixes #80992
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions