Skip to content

Fix stacked borrows violation in retain panic path - #326

Merged
bluss merged 1 commit into
bluss:masterfrom
niklasf:retain-panic-stacked-borrows
Nov 14, 2026
Merged

bluss merged 1 commit into
bluss:masterfrom
niklasf:retain-panic-stacked-borrows

Conversation

@niklasf

@niklasf niklasf commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Went unnoticed when porting from std::vec::Vec, where the similar borrows only apply to individual elements.

Test fails under miri without the fix.

@bluss
bluss merged commit 7c933ca into bluss:master Nov 14, 2026
7 checks passed
@bluss

bluss commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Thank you!

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.

2 participants