Commit 92056cd
authored
cleanup(rt): remove redundant #forceSetLocal (#810)
## Summary
- remove the redundant `#forceSetLocal` helper now that `#setLocalValue`
no longer guards on mutability
- route moved-writeback and zero-sized-local initialization through
`#setLocalValue`
- drop the obsolete interior-mutability fast-path introduced by the old
branch state
## Why
After rebasing onto current `origin/master`, the original
interior-mutability writeback fast-path became obsolete:
`#setLocalValue` already permits writes to immutable locals, so the
extra helper and its special-case callsites no longer buy any behavior.
This PR turns the branch into the cleanup that current master actually
needs.
## Validation
- `make build`
- `cd kmir && uv run pytest src/tests/integration/test_integration.py -v
--timeout=600 -k "interior-mut or transmute-maybe-uninit-fail" -x`
- 4 passed, 261 deselected
- started `make test-integration`; no early failures before stopping due
runtime1 parent b694d02 commit 92056cd
1 file changed
Lines changed: 3 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
185 | | - | |
186 | | - | |
187 | 184 | | |
188 | 185 | | |
189 | | - | |
190 | 186 | | |
191 | 187 | | |
192 | 188 | | |
| |||
216 | 212 | | |
217 | 213 | | |
218 | 214 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 215 | | |
225 | 216 | | |
226 | 217 | | |
| |||
270 | 261 | | |
271 | 262 | | |
272 | 263 | | |
273 | | - | |
| 264 | + | |
274 | 265 | | |
275 | 266 | | |
276 | 267 | | |
| |||
1238 | 1229 | | |
1239 | 1230 | | |
1240 | 1231 | | |
1241 | | - | |
1242 | | - | |
| 1232 | + | |
| 1233 | + | |
1243 | 1234 | | |
1244 | 1235 | | |
1245 | 1236 | | |
| |||
0 commit comments