Commit 5dd4063
committed
feat(rss): payload-less sum value params + == on read-enum params
GAP1: a payload-less (fieldless) sum is Copy-like, so a by-value param fn f(o: Op) no longer
requires read/mut/take (analyzer is_payloadless_sum_type exemption), and f(o: A) works. GAP2:
o == A on a read-bound enum param lowered to &Op == Op (E0277); now derefs one side when a
read enum-param ref is compared to a sum value (mirrors field-access enum compare). Removes two
recurring workarounds in the tinygrad port. Full cargo test -p rsscript green (25 targets, 0
failed). Subagent-produced, applied + reverified.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7358f50 commit 5dd4063
2 files changed
Lines changed: 72 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2320 | 2320 | | |
2321 | 2321 | | |
2322 | 2322 | | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
2323 | 2340 | | |
2324 | 2341 | | |
2325 | 2342 | | |
| |||
2491 | 2508 | | |
2492 | 2509 | | |
2493 | 2510 | | |
| 2511 | + | |
2494 | 2512 | | |
2495 | 2513 | | |
2496 | 2514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2235 | 2235 | | |
2236 | 2236 | | |
2237 | 2237 | | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
2238 | 2260 | | |
2239 | 2261 | | |
2240 | 2262 | | |
| |||
3899 | 3921 | | |
3900 | 3922 | | |
3901 | 3923 | | |
| 3924 | + | |
| 3925 | + | |
| 3926 | + | |
| 3927 | + | |
| 3928 | + | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
| 3933 | + | |
| 3934 | + | |
| 3935 | + | |
| 3936 | + | |
| 3937 | + | |
| 3938 | + | |
| 3939 | + | |
| 3940 | + | |
| 3941 | + | |
| 3942 | + | |
| 3943 | + | |
| 3944 | + | |
| 3945 | + | |
| 3946 | + | |
| 3947 | + | |
| 3948 | + | |
| 3949 | + | |
| 3950 | + | |
| 3951 | + | |
| 3952 | + | |
| 3953 | + | |
| 3954 | + | |
| 3955 | + | |
3902 | 3956 | | |
3903 | 3957 | | |
3904 | 3958 | | |
| |||
0 commit comments