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

Remove implicit T: Sized requirement from UnsafeCell #222

Merged
merged 1 commit into from
Sep 7, 2021

Conversation

WaffleLapkin
Copy link
Contributor

std's UnsafeCell doesn't have T: Sized requirement, so I don't see why the loom version should be different.

Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

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

looks good to me!

i think the missing ?Sized bound may have been an artifact of a previous implementation where the data was not stored in a std UnsafeCell, but I may be wrong about that. it could have just been an oversight...

@Darksonn Darksonn merged commit 26d0d7a into tokio-rs:master Sep 7, 2021
@WaffleLapkin WaffleLapkin deleted the maybesized-unsafecell branch September 7, 2021 18:40
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