-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
Downgrade iso and trn to ref when replacing this in a box method. #2503
Conversation
@plietar - did you come to a conclusion about this concern from this comment (#1887 (comment))?
|
|
||
if(ast_id(find) == TK_FUN && ast_id(ast_child(find)) == TK_BOX) | ||
orig = downcast_iso_trn_receiver_to_ref(orig); | ||
|
||
return deferred_reify_new(find, typeparams, typeargs, orig); | ||
} |
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.
This needs an ast_free
call with orig
if downcast_iso_trn_receiver_to_ref
did a copy, as deferred_reify_new
also does a copy. Another possibility would be to add a new version of deferred_reify_new
that doesn't copy the AST for the this
type and use it in that case.
This has been stalled for a while, and I'd like to see it move forward to fix the soundness issue. @plietar - can you add the requested (It also has merge conflicts at this point, but those look simple to resolve). |
@plietar due to the recent releases and their related changes to the CHANGELOG file, please merge or rebase onto master and adjust your CHANGELOG entries into the appropriate area of "unreleased" in the CHANGELOG file. |
@plietar due to the release of 0.24.1 and its related changes to the CHANGELOG file, please merge or rebase onto master and adjust your CHANGELOG entries into the appropriate area of "unreleased" in the CHANGELOG file. |
@plietar or anyone else in @ponylang/committer we have another user hitting an issue that is related to #1875 which has a fix #1888 but we agreed on fixing #1887 first. The related new issue is #2881 How are the chances someone finds time for this one? |
Discussed this in today's sync call. @sylvanc reasoned that this does not cause problems with auto-recovery, and ratified the change. All this needs is the missing |
I took the freedom to rebase this branch onto current master and add the |
Fixed the CHANGELOG merge conflict. Letting the CI run to see how it does against latest masterchanges, then this is ready to merge. |
Thanks @jemc ! Everything is green, merging. |
Fixes #1887