diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-03-05 16:53:24 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-03-11 09:12:19 +1100 |
| commit | a09b1d33a703d4ed412e70d3197e73ba7e0937f9 (patch) | |
| tree | 7959dfa20498f06843d046aa3f31e3acf4de080a /compiler/rustc_metadata/src | |
| parent | 256d802233215bcd6e6791fb57c94bc98d762d4f (diff) | |
| download | rust-a09b1d33a703d4ed412e70d3197e73ba7e0937f9.tar.gz rust-a09b1d33a703d4ed412e70d3197e73ba7e0937f9.zip | |
Rename `IntoDiagnosticArg` as `IntoDiagArg`.
Also rename `into_diagnostic_arg` as `into_diag_arg`, and `NotIntoDiagnosticArg` as `NotInotDiagArg`.
Diffstat (limited to 'compiler/rustc_metadata/src')
| -rw-r--r-- | compiler/rustc_metadata/src/locator.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_metadata/src/locator.rs b/compiler/rustc_metadata/src/locator.rs index 10bbebb3871..7de03be6da6 100644 --- a/compiler/rustc_metadata/src/locator.rs +++ b/compiler/rustc_metadata/src/locator.rs @@ -220,7 +220,7 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet}; use rustc_data_structures::memmap::Mmap; use rustc_data_structures::owned_slice::slice_owned; use rustc_data_structures::svh::Svh; -use rustc_errors::{DiagArgValue, IntoDiagnosticArg}; +use rustc_errors::{DiagArgValue, IntoDiagArg}; use rustc_fs_util::try_canonicalize; use rustc_session::config; use rustc_session::cstore::CrateSource; @@ -290,8 +290,8 @@ impl fmt::Display for CrateFlavor { } } -impl IntoDiagnosticArg for CrateFlavor { - fn into_diagnostic_arg(self) -> rustc_errors::DiagArgValue { +impl IntoDiagArg for CrateFlavor { + fn into_diag_arg(self) -> rustc_errors::DiagArgValue { match self { CrateFlavor::Rlib => DiagArgValue::Str(Cow::Borrowed("rlib")), CrateFlavor::Rmeta => DiagArgValue::Str(Cow::Borrowed("rmeta")), |
