-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[DiagnosticQol][SR-14505] Use DeclDescriptive kind in missing return data flow diagnostics #36952
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
[DiagnosticQol][SR-14505] Use DeclDescriptive kind in missing return data flow diagnostics #36952
Conversation
8f3a886
to
3b7a8f9
Compare
@swift-ci Please smoke test |
test/SILOptimizer/return.swift
Outdated
if b { | ||
return 0 | ||
} | ||
} // expected-error {{missing return in a instance method expected to return 'Int'}} |
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.
Should this say an instance method
or remove the article altogether?
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.
It make sense to remove the article, thanks @harlanhaskins :)
@swift-ci Please smoke test |
1 similar comment
@swift-ci Please smoke test |
913c5b0
to
6639211
Compare
@swift-ci Please smoke test |
1 similar comment
@swift-ci Please smoke test |
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.
Thanks for the fix! The diagnostic wording feels a little bit odd with the missing a/an, but that seems like somewhat tedious to get right, so I think this is good to go. 🚢
@swift-ci please smoke test macOS |
1 similar comment
@swift-ci please smoke test macOS |
"This build failed because of a Jenkins Error; typically a Java exception." |
@swift-ci please smoke test macOS |
That generally happens when the system is overloaded. Maybe we can retry after a few hours. |
Ah, I've seen this message couple of times, didn't know that. Thanks for the info @varungandhi-apple :) |
Separate closure and declaration on diagnoseMissingReturn data flow diagnostics and use better descriptive naming.
Resolves SR-14505.