having read Ralf Jung's post, it occurs to me: but wasn't the MutexGuard bug caused by the compiler relying on struct members being Send %
Yes. The variance shouldn't change since it'll still have the `&Mutex<T>` reference with the same lifetime.
-
-
No, but.. If the T itself has a lifetime, we need MutexGuard to be semantically equivalent to &mut T, not &T, so that it's invariant.
-
Wouldn't that imply that the current variance is probably broken?
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.