Commit c1473e8
committed
[Diagnostics] Improve warning suggestion for
When iterator consists of tuple of variable and iteration only mutates
the tuple partially, improve the warning message from "changing to 'let"
to "changing the pattern to '(..., case let, ...)"var in for loop1 parent db6bc98 commit c1473e8
File tree
3 files changed
+26
-2
lines changed- include/swift/AST
- lib/Sema
- test/decl/var
3 files changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7032 | 7032 | | |
7033 | 7033 | | |
7034 | 7034 | | |
| 7035 | + | |
| 7036 | + | |
| 7037 | + | |
| 7038 | + | |
7035 | 7039 | | |
7036 | 7040 | | |
7037 | 7041 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4102 | 4102 | | |
4103 | 4103 | | |
4104 | 4104 | | |
4105 | | - | |
4106 | | - | |
| 4105 | + | |
| 4106 | + | |
| 4107 | + | |
| 4108 | + | |
| 4109 | + | |
| 4110 | + | |
| 4111 | + | |
| 4112 | + | |
| 4113 | + | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
| 4117 | + | |
| 4118 | + | |
4107 | 4119 | | |
4108 | 4120 | | |
4109 | 4121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
0 commit comments