Skip to content

std's panic messages hold std's capacity - #641

Draft
kixelated wants to merge 3 commits into
mainfrom
quest/m3/ts-panic-payload-capacity
Draft

kixelated wants to merge 3 commits into
mainfrom
quest/m3/ts-panic-payload-capacity

Conversation

@kixelated

Copy link
Copy Markdown
Collaborator

@pullfrog

pullfrog Bot commented Nov 7, 2026

Copy link
Copy Markdown

Pullfrog  | Review this ➔

kixelated and others added 2 commits November 7, 2026 00:10
The runtime passed std's formatted panic messages to a hook as one string, so the
`String` payload grew in one push where std's grows with each piece and number it
writes. Each such site now formats its pieces as std's `panic!` does, and the
hooked bounds check emits them too. Intercepted std calls are located at their
call, as rustc locates `#[track_caller]` ones, rather than at the statement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant