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

fix: Arc<T> impl Send and Sync does not require static bound for T #149

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

tisonkun
Copy link
Contributor

#[stable(feature = "rust1", since = "1.0.0")]
unsafe impl<T: ?Sized + Sync + Send, A: Allocator + Send> Send for Arc<T, A> {}
#[stable(feature = "rust1", since = "1.0.0")]
unsafe impl<T: ?Sized + Sync + Send, A: Allocator + Sync> Sync for Arc<T, A> {}

Release unnecessary bound.

cc @sunng87

Signed-off-by: tison <wander4096@gmail.com>
@sunng87
Copy link
Owner

sunng87 commented Jan 23, 2024

LGTM

@sunng87 sunng87 merged commit 4a31097 into sunng87:master Jan 23, 2024
6 checks passed
@tisonkun tisonkun deleted the drop-static-bound branch January 23, 2024 02:41
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