Detect duplicates
This commit is contained in:
parent
f66558d2bf
commit
2e03130e11
7 changed files with 78 additions and 8 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue