Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proof of concept: Allow recycling UnwindContext allocation #702

Closed

Conversation

mstange
Copy link
Contributor

@mstange mstange commented Mar 12, 2024

I was trying to give the idea from #701 a try. This implementation works, but it uses GATs so it raises the MSRV to 1.65. It's also somewhat messy in a few places - I'm particularly unhappy with the Option<> in ArrayVec which I had to add because you can't destructure a type which implements Drop.

If addressing #701 requires Rust 1.65 anyway, and thus should be considered a breaking change, then there might be simpler options on the table. If we can eliminate or simplify the ArrayLike trait, it might open up simpler options.

@philipc
Copy link
Collaborator

philipc commented Mar 12, 2024

Raising MSRV is fine. I'm all for anything that can simplify this. Reducing the amount of unsafe here would be great.

@philipc
Copy link
Collaborator

philipc commented Mar 14, 2024

Closed by #703

@philipc philipc closed this Mar 14, 2024
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