Skip to content

[5.6] Always Import FieldDecls from Records #40771

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
Jan 11, 2022

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Jan 8, 2022

Cherry picked from #40760


When we switched this path over to use lazy member loading, a
subsequent commit introduced a check that members were canonical. In
certain extremely twisty scenarios involving multiple modular frameworks
pulling in non-modular headers, this check can fail which results in us
silently dropping these members on the floor.

It's ultimately correct to only pull in the canonical members, but real-world
examples of "system" frameworks evading modularity diagnostics exist so this
is strictly a regression.

Drop the canonicity check for FieldDecls.

rdar://86740970

CodaFi added 2 commits January 7, 2022 16:46
When we switched this path over to use lazy member loading, a
subsequent commit introduced a check that members were canonical. In
certain extremely twisty scenarios involving multiple modular frameworks
pulling in non-modular headers, this check can fail which results in us
silently dropping these members on the floor.

It's ultimately correct to only pull in the canonical members, but real-world
examples of "system" frameworks evading modularity diagnostics exist so this
is strictly a regression.

Drop the canonicity check for FieldDecls.

rdar://86740970
@CodaFi CodaFi requested a review from DougGregor January 8, 2022 00:48
@CodaFi CodaFi changed the title Always Import FieldDecls from Records [5.6] Always Import FieldDecls from Records Jan 8, 2022
@CodaFi CodaFi added the r5.6 label Jan 8, 2022
@CodaFi
Copy link
Contributor Author

CodaFi commented Jan 8, 2022

@swift-ci test

@CodaFi CodaFi merged commit 4a9cd5b into swiftlang:release/5.6 Jan 11, 2022
@CodaFi CodaFi deleted the field-hockey branch January 11, 2022 18:26
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.6 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants