Skip to content

Remove Type Body Fingerprints Flags #34151

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
Oct 2, 2020
Merged

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Oct 1, 2020

Remove the staging flags for type body fingerprints.

This infrastructure has more than proven itself. Drop the code paths and tests supporting the status quo.
@CodaFi CodaFi requested a review from davidungar October 1, 2020 20:11
@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 1, 2020

@swift-ci test

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 1, 2020

@swift-ci test source compatibility

@swift-ci
Copy link
Contributor

swift-ci commented Oct 1, 2020

Build failed
Swift Test Linux Platform
Git Sha - 1d80cc1e5599c15c5ff2dba66ccc18f113f2ec89

In order for type body fingerprints to work, these declarations must always be included. Drop the ability to turn this off.
@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 1, 2020

@swift-ci test

@slavapestov
Copy link
Contributor

Excellent! Can you file a radar for the code completion thing?

@swift-ci
Copy link
Contributor

swift-ci commented Oct 1, 2020

Build failed
Swift Test Linux Platform
Git Sha - 964f640

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.

Aside from my "this looks suspicious" comment, it looks fine!

@@ -4587,7 +4592,7 @@ Parser::parseDeclList(SourceLoc LBLoc, SourceLoc &RBLoc, Diag<> ErrorDiag,
if (RBLoc.isInvalid())
hadError = true;

if (!Context.LangOpts.EnableTypeFingerprints)
if (L->isCodeCompletion())
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks suspicious, because the predicate on line 4559 is different. Should this one be the same?

Copy link
Contributor

Choose a reason for hiding this comment

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

My guess is that previously code completion had EnableTypeFingerprints disabled, so this brings back the old behavior but only when performing code completion. I already suggested Robert file a radar to investigate this further in my review above.

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 2, 2020

@swift-ci test Linux

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 2, 2020

rdar://69890297

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 2, 2020

@CodaFi CodaFi merged commit 92cb680 into swiftlang:main Oct 2, 2020
@CodaFi CodaFi deleted the body-paint branch October 2, 2020 18:45
CodaFi added a commit to CodaFi/swift that referenced this pull request Oct 22, 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.

4 participants