-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Potential deadlock in SpitCase impl Stream #930
Comments
actually, it looks like we are doing the right thing here? we are locking in the base of that fn. this is invalid, right? |
Whoa, that's a thoroughly unhelpful error message.. :/ I don't think we have an issue here, since the temporaries involved here are:
|
Fixes kube-rs#930 This should ensure that we get a compile error if any temporary is even borrowed past the `poll_next()` call.
interesting new clippy lint seems to suggest that
impl Stream for SplitCase
can deadlock (rust issue: rust-lang/rust#93883 ).this is used in applier.
haven't had time to look at it fully, but it looks similar to our setup, and it blocks ci atm.
clippied code shows
this.inner
being lockedhttps://github.com/kube-rs/kube-rs/blob/98cf1c89c37bb8bfc12b0d31d0b3264b13076771/kube-runtime/src/utils/mod.rs#L78-L97
The text was updated successfully, but these errors were encountered: