Skip to content

[Batch mode] Merge pull request #23735 -rdar-40167351 #23848

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

@davidungar davidungar commented Apr 7, 2019

Cherry pick:

In batch mode, any diagnostics located in non-primary files are suppressed, with the expectation that they will surface when the containing file is compiled as primary. Although this assumption should hold, it does not always. For example, certain inputs can interact with associated type inferencing to violate it.

This PR tracks the current primary input in the DiagnosticEngine, which passed it down to the DiagnosticConsumer. The FileSpecificDiagnosticConsumer uses this information to output the diagnostic into the appropriate primary's .dia file. It addresses rdar://49303574.

Needs apple/swift-lldb#1452

[Batch mode] Cope with bugs that cause error  suppression.
@davidungar
Copy link
Contributor Author

@swift-ci test

@davidungar
Copy link
Contributor Author

Please test with following pull request:
apple/swift-lldb#1452
@swift-ci please test

@davidungar davidungar merged commit dad8180 into swiftlang:swift-5.1-branch Apr 7, 2019
@davidungar davidungar deleted the rdar-40167351-error-suppression-fix-swift-5.1-branch branch September 23, 2019 16:18
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