Skip to content

Update reference compiler #9606

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

Merged
merged 2 commits into from
Aug 20, 2020

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

@nicolasstucki nicolasstucki force-pushed the update-reference-compiler-2 branch 5 times, most recently from 8fee998 to 1751294 Compare August 20, 2020 15:15
@nicolasstucki nicolasstucki marked this pull request as ready for review August 20, 2020 15:17
@odersky
Copy link
Contributor

odersky commented Aug 20, 2020

I don't know why the bootstrap problem arose but I have a fix for it. I'll add another commit.

@nicolasstucki nicolasstucki force-pushed the update-reference-compiler-2 branch from 1751294 to 7f3c13c Compare August 20, 2020 15:53
The previously optimized apply function was not tail recursive since
it was not final.
@odersky
Copy link
Contributor

odersky commented Aug 20, 2020

The stackoverflow came from this commit 1b99845. That's the risk of slicing a huge PR like #9409 into many different pieces. Sometimes a later commit is mixing from a piece.

@odersky odersky merged commit f2018f0 into scala:master Aug 20, 2020
@odersky odersky deleted the update-reference-compiler-2 branch August 20, 2020 16:46
@nicolasstucki
Copy link
Contributor Author

@odersky the bootstrap problem was failing correctly where it should but as it had an un-informative error message it made it harder to fix. Then while trying to fix it a bit blindly I moved some files from src-bootstrapped to src but missed the fact that one of those had changed between the latest nightly and the moment I started this PR. If we would have made this PR tomorrow it would have been simpler to not fall into this trap. In the future, we should probably avoid re-bootstrapping the compiler if there was some change in the library that same day to avoid extra work.

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.

3 participants