about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-01-16 17:30:10 +0000
committerGitHub <noreply@github.com>2021-01-16 17:30:10 +0000
commit9df8dcbcde0221a62816d28a7c3bb2e0444ccad3 (patch)
treeafd36471ae56dc49b80589487ef4997b95f3c0ce /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent1368e81bcb2f5e9ed0188deb46f7a994f225ab4d (diff)
parent0ef55570fb35a79a32bc062c0a441c02952fd65e (diff)
downloadrust-9df8dcbcde0221a62816d28a7c3bb2e0444ccad3.tar.gz
rust-9df8dcbcde0221a62816d28a7c3bb2e0444ccad3.zip
Rollup merge of #81040 - osa1:fix_80992, r=jyn514
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