Diagnostic::new_with_code
Its single use can be replaced with `Diagnostic::new_with_messages`.
rustc_*/Cargo.toml