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

Eliminate duplicated borrowed and non-borrowed identifier deserialization #1962

Merged
merged 2 commits into from Jan 24, 2021

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Jan 24, 2021

This fixes bloat introduced by #1917, as seen in 999b94d. When the non-borrowed and borrowed fallthrough are identical, emitting them both only makes things compile slower, since the borrowed case would automatically forward to the non-borrowed case using the Visitor trait's default impl of the method.

@Mingun

@dtolnay dtolnay merged commit 18e5b03 into master Jan 24, 2021
@dtolnay dtolnay deleted the dupborrowed branch January 24, 2021 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant