Explicitly mention Self
This commit is contained in:
parent
fa0428c9d0
commit
57085a06d9
6 changed files with 34 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue