-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add structs to the declaration engine #2688
Conversation
d110a90
to
43791f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So excited for this!
43791f2
to
cb6b6bc
Compare
Rebased and addressed all comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More nits. Looking good though!
cb6b6bc
to
2ca039d
Compare
Rebased and addressed the nits, but temporarily in draft until #2713 is merged. |
2ca039d
to
1b98a36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
errors | ||
); | ||
|
||
// monomorphize the copy, in place |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the type system is doing monomorphization?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what you mean, but it's working the same way as it used to, though its likely this will change once we add the monomorphization cache.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is type_check_with_ident
is part of the type checker, so I am surprised that monomorphization, AIUI, is happening here, in the type checker. This, as opposed to merely type checking and then saving what the substitutions are for later monomorphization in a code-gen phase.
Blocked by:
CopyTypes
trait toDeclarationId
#2682DeclarationEngine
#2683DeclarationEngine
#2713