https://rustc-dev-guide.rust-lang.org/diagnostics/error-codes.html mentions things that no longer exist, such as `register_diagnostics!` (removed in https://github.com/rust-lang/rust/pull/119972/)