-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Explicit lifetime bound now required for Any #95028
Comments
Yeah, this is a side-effect of #92285. :/ |
All good since it was probably a bug not to flag that. I pushed a fix to diesel. I do expect some people will come to report similar issues. I expect it will be in a changelog at some point. |
Yes, it'll be in the release notes for 1.61 -- thanks for the report anyways! I'm curious if this will break any downstream usages in diesel. Please let us know if so. |
This breaks diesel itself, so any crate which depends on diesel cannot work due to the broken dependency. Fortunately no released diesel version is affected. Only the master branch contains the relevant code, so it should only affect those users which depend directly on the master. Those users need to expect breaking changes from diesels side anyway. That means from my point of view as diesel maintainer its totally fine to just go on with the planed release strategy for this fix. |
@weiznich: sorry, when I meant "break downstream", I meant that I wonder if that PR (and the resulting changes to diesel) then require downstream crates to similarly need to add additional |
That likely depends a bit on the actual way the specific trait is used by downstream users. For non generic use cases it shouldn't be required to change anything. For the generic use case the additional bound is likely required. I expect that most users only use a version of that impl that uses a concrete type in place of the generic parameter, as the fully generic version is really hard to use. |
Perfect! It's all fixed now so I will close. |
This might be working as expected but I just wanted to report that builds of diesel started failing on nightly 2022-03-16 (commit 52b3455).
The lines in question are https://github.com/diesel-rs/diesel/blob/7184f128a3c1435d12b32f413b14b6632e2f753c/diesel/src/connection/mod.rs#L442-L477.
Here are the errors:
This might be due to #92285
The text was updated successfully, but these errors were encountered: