Implement IntoDiagArg for hir Namespace

This commit is contained in:
Xiretza 2024-04-17 20:21:38 +00:00
parent 506512391b
commit 3b979aebfe

View File

@ -282,6 +282,12 @@ impl IntoDiagArg for ClosureKind {
}
}
impl IntoDiagArg for hir::def::Namespace {
fn into_diag_arg(self) -> DiagArgValue {
DiagArgValue::Str(Cow::Borrowed(self.descr()))
}
}
#[derive(Clone)]
pub struct DiagSymbolList(Vec<Symbol>);