1
Fork 0

delegation: Do not crash on qpaths without a trait

This commit is contained in:
Vadim Petrochenkov 2024-06-22 19:14:16 +03:00
parent ac47dbad50
commit 0a265957dd
5 changed files with 45 additions and 2 deletions

View file

@ -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)]