Implement IntoDiagArg for hir Namespace
This commit is contained in:
parent
506512391b
commit
3b979aebfe
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue