mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 18:57:19 +00:00

There are only three. It's simpler to make the type `DiagnosticBuilder<'_, ()>` from the start, no matter the level, than to change the guarantee later.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.