Skip to content

Ensure names used in signatures are stable #9133

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 1 commit into from
Jun 9, 2020

Conversation

smarter
Copy link
Member

@smarter smarter commented Jun 8, 2020

Signatures should not change before erasure, but some phases before
erasure can change the owner of a definition, which can change their
full name and therefore any signature which refers to these names.

This commit fixes this by ensuring we always use the initial symbol to
compute signatures before erasure. The check for
signature consistency in TreeChecker was also improved as it wasn't able
to catch this issue before due to signature caching hiding the issue.

Signatures should not change before erasure, but some phases before
erasure can change the owner of a definition, which can change their
full name and therefore any signature which refers to these names.

This commit fixes this by ensuring we always use the initial symbol to
compute signatures before erasure. The check for
signature consistency in TreeChecker was also improved as it wasn't able
to catch this issue before due to signature caching hiding the issue.
@smarter
Copy link
Member Author

smarter commented Jun 8, 2020

test performance please

@dottybot
Copy link
Member

dottybot commented Jun 8, 2020

performance test scheduled: 6 job(s) in queue, 1 running.

@smarter smarter requested a review from odersky June 8, 2020 21:56
@dottybot
Copy link
Member

dottybot commented Jun 9, 2020

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/9133/ to see the changes.

Benchmarks is based on merging with master (fa84627)

@odersky odersky merged commit 8554cfb into scala:master Jun 9, 2020
@odersky odersky deleted the stable-sigName branch June 9, 2020 08:52
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