Skip to content

Remove outdated SPRP hint#9312

Merged
mergify[bot] merged 1 commit into
sigp:unstablefrom
michaelsproul:remove-sprp
May 19, 2026
Merged

Remove outdated SPRP hint#9312
mergify[bot] merged 1 commit into
sigp:unstablefrom
michaelsproul:remove-sprp

Conversation

@michaelsproul

Copy link
Copy Markdown
Member

Proposed Changes

While working on this code in another branch I noticed we had this messy, complicated and incorrect code about SPRP (slots-per-restore-point), which is no longer a relevant concept since the introduction of hot state diffs.

In the name of simplicity, I've removed any kind of hinting here in favour of a simple out of bounds error. The benefit of adding complex hinting code (which is not tested) to such a function is not worth it IMO. Users will work it out (or ask) if we just tell them their request is out of bounds.

Additional Info

There's a bit of churn from rustfmt, which flip flops a bit with these deeply nested blocks and long format strings.

@michaelsproul michaelsproul added ready-for-review The code is ready for review code-quality low-hanging-fruit Easy to resolve, get it before someone else does! HTTP-API labels May 18, 2026
@mergify

mergify Bot commented May 18, 2026

Copy link
Copy Markdown

Some required checks have failed. Could you please take a look @michaelsproul? 🙏

@mergify mergify Bot added waiting-on-author The reviewer has suggested changes and awaits thier implementation. ready-for-review The code is ready for review and removed ready-for-review The code is ready for review waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels May 18, 2026

@dapplion dapplion left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels May 19, 2026
@mergify mergify Bot added the queued label May 19, 2026
@mergify

mergify Bot commented May 19, 2026

Copy link
Copy Markdown

Merge Queue Status

This pull request spent 30 minutes 23 seconds in the queue, including 28 minutes 58 seconds running CI.

Required conditions to merge

mergify Bot added a commit that referenced this pull request May 19, 2026
@mergify mergify Bot merged commit fd0852a into sigp:unstable May 19, 2026
57 of 62 checks passed
@mergify mergify Bot removed the queued label May 19, 2026
@michaelsproul michaelsproul deleted the remove-sprp branch May 19, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-quality HTTP-API low-hanging-fruit Easy to resolve, get it before someone else does! ready-for-merge This PR is ready to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants