Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Point at macro definition when no rules expect token
- Loading branch information
Showing
21 changed files
with
256 additions
and
82 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
error: unexpected end of macro invocation | ||
--> $DIR/empty-comment.rs:20:5 | ||
| | ||
LL | one_arg_macro!(/**/); //~ ERROR unexpected end | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
LL | / macro_rules! one_arg_macro { | ||
LL | | ($fmt:expr) => (print!(concat!($fmt, "/n"))); | ||
LL | | } | ||
| |_- when calling this macro | ||
... | ||
LL | one_arg_macro!(/**/); //~ ERROR unexpected end | ||
| ^^^^^^^^^^^^^^^^^^^^^ unexpected end of macro invocation | ||
|
||
error: aborting due to 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
error: unexpected end of macro invocation | ||
--> $DIR/issue-7970a.rs:16:5 | ||
| | ||
LL | one_arg_macro!(); | ||
| ^^^^^^^^^^^^^^^^^ | ||
LL | / macro_rules! one_arg_macro { | ||
LL | | ($fmt:expr) => (print!(concat!($fmt, "/n"))); | ||
LL | | } | ||
| |_- when calling this macro | ||
... | ||
LL | one_arg_macro!(); | ||
| ^^^^^^^^^^^^^^^^^ unexpected end of macro invocation | ||
|
||
error: aborting due to 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
Oops, something went wrong.