Skip to content

Unconditionally Record Type Body Fingerprints #34700

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
Nov 12, 2020

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Nov 12, 2020

We used to disable these for extensions, which meant changes to extensions would pessimistically cause every decl in the file to be considered dirty.

The test here was incorrect - there was no use of A.x, and computed properties do not contribute to the implicit initializer generated for the struct A, so there was no reason to rebuild the other file. I've corrected the test to introduce an overload of the default initializer instead, which will actually detect if we fail to track the member use here.

We used to disable these for extensions, which meant changes to
extensions would pessimistically cause every decl in the file to be
considered dirty.
@CodaFi CodaFi requested a review from davidungar November 12, 2020 03:52
@CodaFi
Copy link
Contributor Author

CodaFi commented Nov 12, 2020

@swift-ci smoke test

Copy link
Contributor

@davidungar davidungar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CodaFi
Copy link
Contributor Author

CodaFi commented Nov 12, 2020

@CodaFi CodaFi merged commit f677d19 into swiftlang:main Nov 12, 2020
@CodaFi CodaFi deleted the time-extended! branch November 12, 2020 06:24
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.

2 participants