compiler: replace ExternAbi::name calls with formatters

Most of these just format the ABI string, so... just format ExternAbi?
This makes it more consistent and less jank when we can do it.
This commit is contained in:
Jubilee Young 2025-02-11 19:40:29 -08:00
parent 34a5ea911c
commit 32fd1a7b72
16 changed files with 27 additions and 34 deletions

View file

@ -93,6 +93,7 @@ into_diag_arg_using_display!(
SplitDebuginfo,
ExitStatus,
ErrCode,
rustc_abi::ExternAbi,
);
impl<I: rustc_type_ir::Interner> IntoDiagArg for rustc_type_ir::TraitRef<I> {