Commit Graph

2 Commits

Author SHA1 Message Date
John McCall
0730a27f5b Compute the expression range correctly for substring-to-string fixits.
rdar://33474838
2017-07-26 19:10:55 -04:00
Mark Lacey
70c0e85581 Diagnose Substring-to-String conversions resulting from subscripting.
When we have a Substring-to-String conversion as a result of
subscripting in a context expecting String, we emit the rather generic
and unactionable availability diagnostic.

Instead, to aid in migration, emit a highly specialized diagnostic and
fixit when we're compiling for -swift-version 4.
2017-05-14 23:28:36 -07:00