diff options
| 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 |
| commit | eef383fa00be7565123f62e2dddd325e10e3ec21 (patch) | |
| tree | 111cf20a65ef46a0e9e291db2b00158c1ceb4da3 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 6c869d34ae2d87d21db9892d4dc088639bcbe041 (diff) | |
| download | rust-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
