Rename IntoDiagnosticArg
as IntoDiagArg
.
Also rename `into_diagnostic_arg` as `into_diag_arg`, and `NotIntoDiagnosticArg` as `NotInotDiagArg`.
This commit is contained in:
parent
256d802233
commit
a09b1d33a7
38 changed files with 218 additions and 219 deletions
|
@ -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")),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue