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

Generate all explicit and implicit impls based on one map #630

Merged
merged 1 commit into from
Jan 1, 2021
Merged

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jan 1, 2021

As part of type checking we precompute an OrderedMap of all the explicit and implicit generic type instantiations that need to be emitted. This eliminates previous duplication of logic between the Rust code generator and C++ code generator (the diff is net -73) but more importantly this refactor will be necessary for #608 because it provides a place to attach information about generic lifetime parameters that go with each of these impls. The lifetime information will be added in a later PR.

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.

1 participant