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

Implement Any/BufferProvider for some smart pointers #4255

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

jedel1043
Copy link
Contributor

Allows storing them as a Box<dyn Any/BufferProvider> without using a wrapper type that implements the trait.

}
}

#[cfg(target_has_atomic = "ptr")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought: hm, in general we haven't been careful about this, but I guess it doesn't hurt to start?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in other places we've been using #[cfg(feature = "std")] for gating Arc. I'm not sure which of these is better though. I think the main thing is to not mess up the compilation of targets like wasm32-unknown-unknown. If this works without needing the std feature then that's great and we should use this pattern in more places.

@sffc sffc merged commit d183e5f into unicode-org:main Nov 9, 2023
28 checks passed
@jedel1043 jedel1043 deleted the provider-refs branch November 9, 2023 17:18
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.

3 participants