Commit fd29659
committed
[Function builders] Use one-way constraints for closure parameters.
Introduce one-way constraints for the parameters of closures to which a
function builder is being applied. This was an intended part of the
model when one-way constraints were introduced, but somehow got
missed. This should further break up large constraints systems for
faster solving, and *most likely* won't break much source code in
practice.
Fixes rdar://problem/64231116.
(cherry picked from commit f60d17b)1 parent b556c73 commit fd29659
File tree
3 files changed
+46
-24
lines changed- lib/Sema
- test/Constraints
3 files changed
+46
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7115 | 7115 | | |
7116 | 7116 | | |
7117 | 7117 | | |
| 7118 | + | |
| 7119 | + | |
| 7120 | + | |
| 7121 | + | |
| 7122 | + | |
| 7123 | + | |
| 7124 | + | |
| 7125 | + | |
| 7126 | + | |
| 7127 | + | |
| 7128 | + | |
| 7129 | + | |
| 7130 | + | |
| 7131 | + | |
| 7132 | + | |
| 7133 | + | |
| 7134 | + | |
| 7135 | + | |
7118 | 7136 | | |
7119 | 7137 | | |
7120 | 7138 | | |
| |||
7128 | 7146 | | |
7129 | 7147 | | |
7130 | 7148 | | |
7131 | | - | |
7132 | | - | |
7133 | | - | |
7134 | 7149 | | |
7135 | 7150 | | |
7136 | 7151 | | |
| |||
7181 | 7196 | | |
7182 | 7197 | | |
7183 | 7198 | | |
7184 | | - | |
7185 | | - | |
7186 | | - | |
7187 | | - | |
7188 | | - | |
7189 | | - | |
7190 | | - | |
7191 | | - | |
7192 | | - | |
7193 | | - | |
7194 | | - | |
| 7199 | + | |
| 7200 | + | |
| 7201 | + | |
| 7202 | + | |
| 7203 | + | |
| 7204 | + | |
7195 | 7205 | | |
7196 | 7206 | | |
7197 | 7207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
0 commit comments