Files
rust/compiler/rustc_errors/src
Nicholas Nethercote 09bf6de39e Remove EmissionGuarantee
It's a trait that is used to give `Diag::emit` different return types
depending on the `G` in `Diag<'_, G>`. It works, but it's overkill.
There are only four different `G` types in practice (`BugAbort`,
`FatalAbort`, `ErrorGuaranteed`, and `()`) and having inherent `emit`
methods for each of those four concrete `Diag<'_, G>` types is good
enough.

This commit makes that change. This removes `EmissionGuarantee`
trait bounds from many places, which is nice.
2026-09-12 11:21:03 +10:00
..
2026-02-11 17:52:00 +01:00
2026-09-12 11:21:03 +10:00
2026-09-12 11:21:03 +10:00
2026-09-11 06:46:46 +10:00
2026-09-12 11:21:03 +10:00
2025-06-23 08:50:17 +02:00