-
Notifications
You must be signed in to change notification settings - Fork 111
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
UnsafeCell::get_mut() is different from std #277
Comments
Ah, well, the |
Ok, if the intent was so different, let's have a different name to avoid confusion. |
it's worth noting that the type was previously named |
I don't think this api is that bad. Since |
Should it be to add a method equivalent to I've just written this post about implementing |
In std, it gets
&mut self
. In loom, it gets&self
.I think it's not a good idea to diverge in this way. I understand the return type may be different, but
&self
should be borrowed in the same way as it is instd
.The text was updated successfully, but these errors were encountered: