parent
c435af0d5c
commit
553508c22e
5 changed files with 15 additions and 11 deletions
|
@ -1056,8 +1056,10 @@ pub struct IdentifierUncommonCodepoints;
|
|||
pub struct ConfusableIdentifierPair {
|
||||
pub existing_sym: Symbol,
|
||||
pub sym: Symbol,
|
||||
#[label]
|
||||
#[label(lint_other_use)]
|
||||
pub label: Span,
|
||||
#[label(lint_current_use)]
|
||||
pub main_label: Span,
|
||||
}
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
|
|
|
@ -222,6 +222,7 @@ impl EarlyLintPass for NonAsciiIdents {
|
|||
existing_sym: *existing_symbol,
|
||||
sym: symbol,
|
||||
label: *existing_span,
|
||||
main_label: sp,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue