-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Distributed] Offer fixit for import Distributed when it is required #72948
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
[Distributed] Offer fixit for import Distributed when it is required #72948
Conversation
@swift-ci please smoke test |
// @_spi imports. | ||
if (Member->isSPI()) { | ||
auto spiGroups = Member->getSPIGroups(); | ||
if (!spiGroups.empty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think somebody more familiar with SPI should take a look at this because it seems like we should mention more than just the first one maybe? /cc @xymus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took this from what it was doing in another place that @DougGregor developed for such imports so it's probably ok enough but definitely welcome some more input!
2aac251
to
66a1be1
Compare
@swift-ci please smoke test |
66a1be1
to
8515374
Compare
Sigh, import Foundation broke linux test ofc. Fixed by changing to import Swift |
@swift-ci please smoke test |
|
@swift-ci please smoke test Linux |
@swift-ci please smoke test macOS |
@swift-ci please smoke test Windows |
This generalizes some "find best place for import fixit" code and applies it to suggesting
Distributed
module imports.Also, rewording the error a little bit as review follow up.