-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #76140.
- Loading branch information
Showing
5 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
tests/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
error: identifier pair considered confusable between `s` and `s` | ||
error: found both `s` and `s` as identifiers, which look alike | ||
--> $DIR/lint-confusable-idents.rs:8:9 | ||
| | ||
LL | const s: usize = 42; | ||
| -- this is where the previous identifier occurred | ||
| -- other identifier used here | ||
... | ||
LL | let s = "rust"; | ||
| ^ | ||
| ^ this identifier can be confused with `s` | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/lint-confusable-idents.rs:1:9 | ||
| | ||
LL | #![deny(confusable_idents)] | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error: identifier pair considered confusable between `s_s` and `s_s` | ||
error: found both `s_s` and `s_s` as identifiers, which look alike | ||
--> $DIR/lint-confusable-idents.rs:9:9 | ||
| | ||
LL | const s_s: usize = 42; | ||
| --- this is where the previous identifier occurred | ||
| --- other identifier used here | ||
... | ||
LL | let s_s = "rust2"; | ||
| ^^^^^ | ||
| ^^^^^ this identifier can be confused with `s_s` | ||
|
||
error: aborting due to 2 previous errors | ||
|