1
Fork 0

Explicitly mention Self

This commit is contained in:
Michael Goulet 2024-04-20 11:39:43 -04:00
parent fa0428c9d0
commit 57085a06d9
6 changed files with 34 additions and 12 deletions

View file

@ -12,6 +12,16 @@ pub struct ParamNotCaptured {
pub kind: &'static str,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_self_ty_not_captured)]
#[note]
pub struct SelfTyNotCaptured {
#[primary_span]
pub opaque_span: Span,
#[label]
pub trait_span: Span,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_lifetime_not_captured)]
pub struct LifetimeNotCaptured {