Skip to content

Print the macro context name on incomplete parse #30011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 25, 2015
Merged

Print the macro context name on incomplete parse #30011

merged 3 commits into from
Nov 25, 2015

Conversation

jonas-schievink
Copy link
Contributor

Fixes #22425

Also fixes #30007, since it's just a change from true to false.

Fixes #22425

Also fixes #30007, since it's just a change from `true` to `false`.
@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

r? @nrc

@rust-highfive rust-highfive assigned nrc and unassigned nikomatsakis Nov 23, 2015
@@ -58,8 +58,8 @@ impl<'a> ParserAnyMacro<'a> {
parser.span_err(span, &msg[..]);

let msg = format!("caused by the macro expansion here; the usage \
of `{}` is likely invalid in this context",
self.macro_ident);
of `{}!` is likely invalid in this {} context",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove "this" here

@nrc
Copy link
Member

nrc commented Nov 23, 2015

r+ with the grammar nit addressed

@jonas-schievink
Copy link
Contributor Author

Nit addressed

@nrc
Copy link
Member

nrc commented Nov 25, 2015

@bors: r+

@bors
Copy link
Collaborator

bors commented Nov 25, 2015

📌 Commit 5cb5d20 has been approved by nrc

@bors
Copy link
Collaborator

bors commented Nov 25, 2015

⌛ Testing commit 5cb5d20 with merge 7fa2c6c...

bors added a commit that referenced this pull request Nov 25, 2015
Fixes #22425

Also fixes #30007, since it's just a change from `true` to `false`.
@bors bors merged commit 5cb5d20 into rust-lang:master Nov 25, 2015
@jonas-schievink jonas-schievink deleted the macro-context branch December 26, 2015 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type macros allow types to be followed by ; "macro expansion ignores" error should explain why
6 participants