Skip to content
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

More macro diagnostics improvements #6700

Merged
merged 5 commits into from
Dec 3, 2020
Merged

More macro diagnostics improvements #6700

merged 5 commits into from
Dec 3, 2020

Conversation

jonas-schievink
Copy link
Contributor

This threads macro expansion errors through eager.rs and the AsMacroCall trait, improving macro diagnostics emitted during body lowering.

@matklad
Copy link
Member

matklad commented Dec 3, 2020

LGTM!

Although, I have one terminology suggestion -- elsewhere, we are using diagnostics_sink, so perhaps we should use diagnostics terminology for "like error, but many"?

@jonas-schievink
Copy link
Contributor Author

Yeah, sounds reasonable. Though I think of a diagnostic as something that is specifically meant to be displayed to the user, not these more internal errors.

@jonas-schievink
Copy link
Contributor Author

bors r+

@matklad
Copy link
Member

matklad commented Dec 3, 2020 via email

@bors
Copy link
Contributor

bors bot commented Dec 3, 2020

@bors bors bot merged commit d46fce8 into rust-lang:master Dec 3, 2020
@jonas-schievink jonas-schievink deleted the more-macro-diags branch December 3, 2020 17:05
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.

2 participants