Skip to content

Add a script to check drop in all callers of out_of_memory#1477

Draft
qinsoon wants to merge 1 commit intommtk:masterfrom
qinsoon:out-of-memory-drop
Draft

Add a script to check drop in all callers of out_of_memory#1477
qinsoon wants to merge 1 commit intommtk:masterfrom
qinsoon:out-of-memory-drop

Conversation

@qinsoon
Copy link
Copy Markdown
Member

@qinsoon qinsoon commented Apr 13, 2026

Add a script to parse Rust MIR to check if there is any Drop on the call frames of Collection::out_of_memory. This script can be used in CI to ensure throwing from out_of_memory is correct for the code base.

Codex wrote the script. I didn't check the script, but the results from the script look reasonable.

Related: #1475

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