-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix copy scope bugs #9385
Fix copy scope bugs #9385
Conversation
@trefis I think you know this code, care to review it? |
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.
Good catch, thanks!
Sorry for the long delay before reviewing.
@lpw25 this just need a Change entry and fixes to comply with check-typo. |
288bb81
to
8fbffb8
Compare
Rebased, fixed check-typo issue, Changes entry added. This should indeed go in 4.11. |
8fbffb8
to
a15b97b
Compare
Tests were failing after the rebase, I've updated them now. |
Is this ready to be merged ? |
Fix copy scope bugs (cherry picked from commit 1f9be49)
Cherry picked to 4.11 as a091c89 |
There were two bugs in the handling of
copy_scope
s inSubst
which lead to #9384 and the bugs from the comments on #9384.One bug is the classic
with_foo
currying bug. The other uses separate copy_states for the parameters and body of a type constructor -- losing sharing between the two.