1
Fork 0

Detect duplicates

This commit is contained in:
Michael Goulet 2024-06-05 16:43:25 -04:00
parent f66558d2bf
commit 2e03130e11
7 changed files with 78 additions and 8 deletions

View file

@ -852,3 +852,12 @@ pub struct PreciseCapturingNotAllowedHere {
pub span: Span,
pub loc: &'static str,
}
#[derive(Diagnostic)]
#[diag(ast_passes_precise_capturing_duplicated)]
pub struct DuplicatePreciseCapturing {
#[primary_span]
pub bound1: Span,
#[label]
pub bound2: Span,
}