Rename IntoDiagnosticArg as IntoDiagArg.
Also rename `into_diagnostic_arg` as `into_diag_arg`, and `NotIntoDiagnosticArg` as `NotInotDiagArg`.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/thir.html
|
||||
|
||||
use rustc_ast::{InlineAsmOptions, InlineAsmTemplatePiece};
|
||||
use rustc_errors::{DiagArgValue, IntoDiagnosticArg};
|
||||
use rustc_errors::{DiagArgValue, IntoDiagArg};
|
||||
use rustc_hir as hir;
|
||||
use rustc_hir::def_id::DefId;
|
||||
use rustc_hir::RangeEnd;
|
||||
@@ -676,9 +676,9 @@ impl<'tcx> Pat<'tcx> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'tcx> IntoDiagnosticArg for Pat<'tcx> {
|
||||
fn into_diagnostic_arg(self) -> DiagArgValue {
|
||||
format!("{self}").into_diagnostic_arg()
|
||||
impl<'tcx> IntoDiagArg for Pat<'tcx> {
|
||||
fn into_diag_arg(self) -> DiagArgValue {
|
||||
format!("{self}").into_diag_arg()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user