Implement IntoDiagArg for hir Namespace
This commit is contained in:
parent
506512391b
commit
3b979aebfe
@ -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>);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user