about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-22 09:10:54 +0000
committerbors <bors@rust-lang.org>2024-05-22 09:10:54 +0000
commit7fd1429754504f67a7c80ef7e936065fc6f257b3 (patch)
treeeaf3d31beea40cea092cc0e44be917b6386494f1 /compiler/rustc_errors/src
parent41c006e21ac0d49ea7677cb2eb14ecb1609a9508 (diff)
parentabbe244a814d34c7eedd4c9526de53d401a01d21 (diff)
downloadrust-7fd1429754504f67a7c80ef7e936065fc6f257b3.tar.gz
rust-7fd1429754504f67a7c80ef7e936065fc6f257b3.zip
Auto merge of #3623 - RalfJung:rustup, r=RalfJung
Rustup
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/diagnostic_impls.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_impls.rs b/compiler/rustc_errors/src/diagnostic_impls.rs
index 4bf7dccab92..662c8a7b8be 100644
--- a/compiler/rustc_errors/src/diagnostic_impls.rs
+++ b/compiler/rustc_errors/src/diagnostic_impls.rs
@@ -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>);