Rollup merge of #114472 - estebank:issue-76140, r=compiler-errors
Reword `confusable_idents` lint Fix #76140.
This commit is contained in:
commit
cd5317a000
5 changed files with 15 additions and 11 deletions
|
@ -1083,8 +1083,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