forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#81860 - osa1:issue81800, r=estebank
Fix SourceMap::start_point `start_point` needs to return the *first* character's span, but it would previously call `find_width_of_character_at_span` which returns the span of the *last* character. The implementation is now fixed. Other changes: - Docs for start_point, end_point, find_width_of_character_at_span updated - Minor simplification in find_width_of_character_at_span code Fixes rust-lang#81800
- Loading branch information
Showing
3 changed files
with
51 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
fn x˂- //~ ERROR: unknown start of token | ||
//~^ ERROR: expected one of `#`, `>`, `const`, identifier, or lifetime, found `-` |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
error: unknown start of token: \u{2c2} | ||
--> $DIR/issue-81800.rs:1:5 | ||
| | ||
LL | fn x˂- | ||
| ^ | ||
| | ||
help: Unicode character '˂' (Modifier Letter Left Arrowhead) looks like '<' (Less-Than Sign), but it is not | ||
| | ||
LL | fn x<- | ||
| ^ | ||
|
||
error: expected one of `#`, `>`, `const`, identifier, or lifetime, found `-` | ||
--> $DIR/issue-81800.rs:1:6 | ||
| | ||
LL | fn x˂- | ||
| ^ expected one of `#`, `>`, `const`, identifier, or lifetime | ||
|
||
error: aborting due to 2 previous errors | ||
|