Skip to content

[Incremental] Fix overly conservative fingerprint bug & fix tests. #30123

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

Conversation

davidungar
Copy link
Contributor

When a file's referenced-name-tracker contains a use of a declaration that is also defined in the same file, do not create a dependency arc from the declaration to the file-as-a-whole. The arc is not needed because the driver, detecting a change in a declaration in a file, will schedule recompilation anyway. The arc is too conservative because if the type's fingerprint changes, it will dirty the entire file and thus all other declarations in it as well.

Also fix a typo in a test that hid this failure.

Strengthen a unit test to also detect this failure.

@davidungar
Copy link
Contributor Author

@swift-ci please smoke test

@davidungar davidungar merged commit b860356 into swiftlang:master Feb 28, 2020
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.

1 participant