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

Add wrapper type for opting out of FSA #86

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

jacob-hughes
Copy link
Collaborator

This can be very useful when using types from third party crates which do not implement FinalizerSafe. Instead of implementing FinalizerSafe on any T with a !FinalizerSafe field, we can now ensure each problematic field uses the FinalizeUnchecked<U> wrapper. This is safer than a blanket implementation.

@ltratt
Copy link
Member

ltratt commented Sep 14, 2023

Should we add a test that makes it clear that this still runs finalisers, even if they're not obviously safe?

@jacob-hughes
Copy link
Collaborator Author

Sure

@jacob-hughes
Copy link
Collaborator Author

Before I can push a finaliser test for this, #87 will need merging.

@jacob-hughes
Copy link
Collaborator Author

I've pushed a test d36668c. If you're happy, I can squash and then this should be merge-able once #87 has landed.

@ltratt
Copy link
Member

ltratt commented Sep 14, 2023

Works for me -- please squash.

This can be very useful when using types from third party crates which
do not implement `FinalizerSafe`. Instead of implementing
`FinalizerSafe` on any `T` with a `!FinalizerSafe` field, we can now
ensure each problematic field uses the `FinalizeUnchecked<U>` wrapper.
This is safer than a blanket implementation.
@jacob-hughes
Copy link
Collaborator Author

Squashed

@ltratt
Copy link
Member

ltratt commented Sep 14, 2023

bors r+

@bors
Copy link

bors bot commented Sep 14, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit 4663c8c into softdevteam:master Sep 14, 2023
8 of 11 checks passed
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