Skip to content

Altered FmtVisitor to function correctly on generated code #981

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 1 commit into from
May 6, 2016

Conversation

DanielJCampbell
Copy link
Contributor

Generated spans were causing format to fail, as the format_missing methods expected continuous byte positions - this update used the callsite spans for those methods (and for setting last_pos) to circumvent this issue - no change on non-generated code.

@nrc nrc merged commit fc2549b into rust-lang:master May 6, 2016
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