diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-02-12 10:46:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-12 10:46:40 +0100 |
| commit | 30bd1b53b3d5354fffc25d50fa2ab131f4875c4e (patch) | |
| tree | 4dd2da6a1d640466cd6cb9101bd56b1da7b0deed /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | 9fa2557d8eb8a78c5399f66bd4827468661fc235 (diff) | |
| parent | 32fd1a7b7205d1f8ccf168c22dada83ea38e3adb (diff) | |
Rollup merge of #136900 - workingjubilee:format-externabi-directly, r=oli-obk
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.
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/errors.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors.rs b/compiler/rustc_hir_analysis/src/errors.rs index 12750543f4b..0d0fe9d981f 100644 --- a/compiler/rustc_hir_analysis/src/errors.rs +++ b/compiler/rustc_hir_analysis/src/errors.rs @@ -1,5 +1,6 @@ //! Errors emitted by `rustc_hir_analysis`. +use rustc_abi::ExternAbi; use rustc_errors::codes::*; use rustc_errors::{ Applicability, Diag, DiagCtxtHandle, Diagnostic, EmissionGuarantee, Level, MultiSpan, @@ -1689,7 +1690,7 @@ pub(crate) struct CmseInputsStackSpill { #[label] pub span: Span, pub plural: bool, - pub abi_name: &'static str, + pub abi: ExternAbi, } #[derive(Diagnostic)] @@ -1700,7 +1701,7 @@ pub(crate) struct CmseOutputStackSpill { #[primary_span] #[label] pub span: Span, - pub abi_name: &'static str, + pub abi: ExternAbi, } #[derive(Diagnostic)] |
