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