1 //! Errors emitted by symbol_mangling.
3 use rustc_errors::{DiagnosticArgValue, IntoDiagnosticArg};
4 use rustc_macros::Diagnostic;
8 #[diag(symbol_mangling_test_output)]
9 pub struct TestOutput {
23 impl IntoDiagnosticArg for Kind {
24 fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> {
25 let kind = match self {
26 Kind::SymbolName => "symbol-name",
27 Kind::Demangling => "demangling",
28 Kind::DemanglingAlt => "demangling-alt",
29 Kind::DefPath => "def-path",
32 DiagnosticArgValue::Str(kind)