Conversation
src/cell.rs
Outdated
| } | ||
|
|
||
| // SAFETY: `Ref<'_, T> acts as a reference. | ||
| unsafe impl<'a, T: ?Sized + 'a> Sync for Ref<'a, T> where T: Sync {} |
There was a problem hiding this comment.
I think this is correct, but can we express the bounds as where for<'a> &'a T: Sync and where for<'a> &'a T: Send instead so we're matching the impls with those of actual references?
There was a problem hiding this comment.
Actually I would like to double check if this works when T is not 'static
89b4cc2 to
9301b26
Compare
9301b26 to
14096ad
Compare
|
Miri failure? Hopefully nothing important |
This is to be expected for now. |
Forgot these in #223!