mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[diags][cxx-interop] Update diagnostic for 'begin' to suggest using a for-loop instead.
Does not fix the fix-it. The current fix it will be left as a stop-gap solution and we can hopefully update this fix it in the near future to actually plop in a for loop (too much work for this PR though).
This commit is contained in:
@@ -195,7 +195,7 @@ NOTE(mark_safe_to_import, none, "annotate method '%0' with 'SWIFT_RETURNS_INDEPE
|
||||
NOTE(at_to_subscript, none, "do you want to replace it with a call "
|
||||
"to the subscript operator?",
|
||||
())
|
||||
NOTE(get_swift_iterator, none, "do you want to make a Swift iterator instead?",
|
||||
NOTE(use_collection_apis, none, "do you want to use a for-loop instead?",
|
||||
())
|
||||
NOTE(replace_with_nil, none, "do you want to compare against 'nil' instead?",
|
||||
())
|
||||
|
||||
Reference in New Issue
Block a user