Check use<..> in RPITIT for refinement
This commit is contained in:
parent
5ec7d6eee7
commit
32d2340dbd
5 changed files with 204 additions and 1 deletions
|
@ -1153,6 +1153,16 @@ pub(crate) struct ReturnPositionImplTraitInTraitRefined<'tcx> {
|
|||
pub return_ty: Ty<'tcx>,
|
||||
}
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(hir_analysis_rpitit_refined_lifetimes)]
|
||||
#[note]
|
||||
#[note(hir_analysis_feedback_note)]
|
||||
pub(crate) struct ReturnPositionImplTraitInTraitRefinedLifetimes {
|
||||
#[suggestion(applicability = "maybe-incorrect", code = "{suggestion}")]
|
||||
pub suggestion_span: Span,
|
||||
pub suggestion: String,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(hir_analysis_inherent_ty_outside, code = E0390)]
|
||||
#[help]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue