Commit 7f0ef3d
committed
[move-only] When assigning a var that escapes into a closure into another local, emit the correct error message.
With some of the changes that I have made, we began to emit a mark_must_check
[no_copy] on a copy_addr here. This change teaches the move address checker how
to recognize that in this case if we have a project_box it is actually b/c we
have something captured by an escaping closure.1 parent 4cd7a3b commit 7f0ef3d
File tree
5 files changed
+41
-12
lines changed- lib/SILOptimizer/Mandatory
- test/SILOptimizer
5 files changed
+41
-12
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1526 | 1526 | | |
1527 | 1527 | | |
1528 | 1528 | | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
1529 | 1536 | | |
1530 | 1537 | | |
1531 | 1538 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3109 | 3109 | | |
3110 | 3110 | | |
3111 | 3111 | | |
3112 | | - | |
3113 | | - | |
3114 | | - | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
3115 | 3115 | | |
3116 | 3116 | | |
3117 | 3117 | | |
| |||
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2870 | 2870 | | |
2871 | 2871 | | |
2872 | 2872 | | |
2873 | | - | |
2874 | | - | |
2875 | | - | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
2876 | 2876 | | |
2877 | 2877 | | |
2878 | 2878 | | |
| |||
3107 | 3107 | | |
3108 | 3108 | | |
3109 | 3109 | | |
| 3110 | + | |
| 3111 | + | |
3110 | 3112 | | |
3111 | 3113 | | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
| 3126 | + | |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
| 3130 | + | |
| 3131 | + | |
| 3132 | + | |
3112 | 3133 | | |
3113 | 3134 | | |
3114 | 3135 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1218 | 1218 | | |
1219 | 1219 | | |
1220 | 1220 | | |
1221 | | - | |
1222 | | - | |
1223 | | - | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
1224 | 1226 | | |
1225 | 1227 | | |
1226 | 1228 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1829 | 1829 | | |
1830 | 1830 | | |
1831 | 1831 | | |
1832 | | - | |
1833 | | - | |
1834 | | - | |
| 1832 | + | |
| 1833 | + | |
1835 | 1834 | | |
1836 | 1835 | | |
1837 | 1836 | | |
| |||
0 commit comments