diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-02 13:04:07 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-02 14:35:46 +1100 |
| commit | 5fd824de449575d3de21f3a6a25104d708665664 (patch) | |
| tree | 5813896ab161a955a9aa7c85ca2b4d3b1fba7b49 /compiler/rustc_codegen_gcc | |
| parent | 3a02ebcac27fd730ba89cf1565400d516f296815 (diff) | |
| download | rust-5fd824de449575d3de21f3a6a25104d708665664.tar.gz rust-5fd824de449575d3de21f3a6a25104d708665664.zip | |
Remove `BorrowckErrors::tainted_by_errors`.
`BorrowckErrors` stores a mix of error and non-error diags in `buffered`. As a result, it downgrades `DiagnosticBuilder`s to `Diagnostic`s, losing the emission guarantees, and so has to use a `tainted_by_errors` field to record whether an error has occurred. This commit splits `buffered` into `buffered_errors` and `buffered_non_errors`, keeping them as `DiagnosticBuilder`s and preserving the emission guarantees. This also requires fixing a bunch of incorrect lifetimes on `DiagnosticBuilder` use points.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
