-
Notifications
You must be signed in to change notification settings - Fork 1
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
warn(where_clauses_object_safety) on recent nightly #4
Comments
Thanks for bringing this up again. The PR #3 is also about this issue. I'm a bit conflicted on what's best to do here. The issue says ideally it would never become a hard error, in which case I'd just allow the lint. The trait does not exist to make trait objects out of it. If it does become a hard error, then people's code will be broken from what's a minor dependency at best and I'd really like to avoid that. On the other hand, accomodating the lint is a breaking change, even though very little code would likely be broken. |
I've looked a bit into the issue on the Rust repo and from what I could gather, the affected code won't be disallowed in the future, only the ability to create trait objects from such traits. But |
That seems reasonable to me. I understand that it's a tricky situation. Probably better to wait and see what happens to that lint. |
I don't see the warning anymore. It looks like this has been fixed upstream, but I couldn't find the change to rustc that made it happen. I didn't find anything referenced from the issue in the OP nor in the PRs containing the string |
On recent nightlies,
OrdSubsetSliceExt
triggers thewhere_clauses_object_safety
warning:rust-lang/rust#51443
(+3 other similar warnings)
I don't have time right now, but I'll try to come back to this in a week or so.
The text was updated successfully, but these errors were encountered: