summary refs log tree commit diff
path: root/compiler/rustc_expand/src/errors.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2024-06-22 19:14:16 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2024-06-22 19:57:19 +0300
commit0a265957ddebf3517e5d1105541ba7931d1974bb (patch)
treeced5c061c417b37ca27e22fa24803f6447f0e603 /compiler/rustc_expand/src/errors.rs
parentac47dbad504b892bc0f3be8fa097537c6e0544a3 (diff)
downloadrust-0a265957ddebf3517e5d1105541ba7931d1974bb.tar.gz
rust-0a265957ddebf3517e5d1105541ba7931d1974bb.zip
delegation: Do not crash on qpaths without a trait
Diffstat (limited to 'compiler/rustc_expand/src/errors.rs')
-rw-r--r--compiler/rustc_expand/src/errors.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_expand/src/errors.rs b/compiler/rustc_expand/src/errors.rs
index c883121fb40..0be7403f25b 100644
--- a/compiler/rustc_expand/src/errors.rs
+++ b/compiler/rustc_expand/src/errors.rs
@@ -449,6 +449,13 @@ pub(crate) struct GlobDelegationOutsideImpls {
     pub span: Span,
 }
 
+#[derive(Diagnostic)]
+#[diag(expand_glob_delegation_traitless_qpath)]
+pub(crate) struct GlobDelegationTraitlessQpath {
+    #[primary_span]
+    pub span: Span,
+}
+
 // This used to be the `proc_macro_back_compat` lint (#83125). It was later
 // turned into a hard error.
 #[derive(Diagnostic)]