8000 Merge 2.11.x into 2.12.x [ci: last-only] by adriaanm · Pull Request #5851 · scala/scala · GitHub
[go: up one dir, main page]

Skip to content

Merge 2.11.x into 2.12.x [ci: last-only] #5851

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 8 commits into from
Apr 13, 2017

Conversation

adriaanm
Copy link
Contributor

No description provided.

Fix table
Also make this whole retraction of apply/unapply in case of a
clashing user-defined member conditional on `-Xsource:2.12`.

It turns out, as explained by lrytz, that the retraction mechanism
was fragile because it relied on the order in which completers are run.
We now cover both the case that:

  - the completer was run, the `IS_ERROR` flag was set, and the
  symbol was unlinked from its scope before `addSynthetics`
  in `typedStat` iterates over the scope (since the symbol is
  already unlinked, the tree is not added, irrespective of its flags).
  For this case, we also remove the symbol from the synthetics in
  its unit (for cleanliness).

  - the completer is triggered during the iteration in `addSynthetics`,
  which needs the check for the `IS_ERROR` flag during the iteration.

Before, the completer just unlinked the symbol and set the IS_ERROR flag,
and I assumed the typer dropped a synthetic tree with a symbol with
that flag, because the tree was not shown in -Xprint output.
In reality, the completer just always happened to run before the
addSynthetics loop and unlinked the symbol from its scope in the
test cases I came up with (including the 2.11 community build).

Thankfully, the 2.12 community build caught my mistake, and lrytz provided
a good analysis and review.

Fix scala/bug#10261
Actually retract clashing synthetic apply/unapply
MathJax CDN update
@adriaanm adriaanm requested a review from SethTisue April 13, 2017 21:14
@scala-jenkins scala-jenkins added this to the 2.12.3 milestone Apr 13, 2017
@adriaanm adriaanm changed the title Merge 2.11.x into 2.12.x Merge 2.11.x into 2.12.x [ci: last-only] Apr 13, 2017
@adriaanm
Copy link
Contributor Author

This doesn't change anything that's tested by CI, so I cancelled all builds but for the last commit

@SethTisue
Copy link
Member

LGTM for merge once Jenkins likes it

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
0