about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-02 13:04:07 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-02 14:35:46 +1100
commit5fd824de449575d3de21f3a6a25104d708665664 (patch)
tree5813896ab161a955a9aa7c85ca2b4d3b1fba7b49 /compiler/rustc_codegen_gcc
parent3a02ebcac27fd730ba89cf1565400d516f296815 (diff)
downloadrust-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