-
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.
macro_rules: Less hacky heuristic for using
tt
metavariable spans
- Loading branch information
1 parent
139fb22
commit e1d12c8
Showing
11 changed files
with
85 additions
and
92 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
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
8 changes: 4 additions & 4 deletions
8
tests/ui/parser/issues/issue-68091-unicode-ident-after-if.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,10 +1,10 @@ | ||
error: missing condition for `if` expression | ||
--> $DIR/issue-68091-unicode-ident-after-if.rs:3:14 | ||
--> $DIR/issue-68091-unicode-ident-after-if.rs:3:13 | ||
| | ||
LL | $($c)ö* {} | ||
| ^ - if this block is the condition of the `if` expression, then it must be followed by another block | ||
| | | ||
| expected condition here | ||
| ^ - if this block is the condition of the `if` expression, then it must be followed by another block | ||
| | | ||
| expected condition here | ||
|
||
error: aborting due to 1 previous error | ||
|
4 changes: 2 additions & 2 deletions
4
tests/ui/parser/issues/issue-68092-unicode-ident-after-incomplete-expr.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,8 +1,8 @@ | ||
error: macro expansion ends with an incomplete expression: expected expression | ||
--> $DIR/issue-68092-unicode-ident-after-incomplete-expr.rs:3:14 | ||
--> $DIR/issue-68092-unicode-ident-after-incomplete-expr.rs:3:13 | ||
| | ||
LL | $($c)ö* | ||
| ^ expected expression | ||
| ^ expected expression | ||
|
||
error: aborting due to 1 previous error | ||
|
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