Remove FromResidual param default#147160
Conversation
This comment has been minimized.
This comment has been minimized.
cbec40f to
8fe7865
Compare
|
☔ The latest upstream changes (presumably #149397) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Hi @scottmcm, I think this is ready for a review when you get a chance. Thanks! |
|
I still think that if this change does anything useful it's a bug in the type system or its implementation, and thus that it shouldn't be done and that bug should be fixed instead. But at the same time, it's unstable and because of the bug it's apparently helpful to change the implementations this way, so 🤷 If you really want to do it, go for it. |
|
I was not aware of possible type system bug related to this. I thought this is more of an ergonomics change to make the feature generally less confusing and more straightforward. See the points in my original post. Comments in the tracking issue along these lines are here, here and here. Upon searching the comments again, I see there is a comment suggesting there may be a bug here, but I wasn't able to reproduce it in the playground. So maybe that is a bug that's been fixed. |
Tracking issue
This resolves a concern that has been raised several times in the tracking issue. I'll summarize the reasons as:
impl FromResidualinstances and in thetrait Trydefinition.FromResidualusesSelf as Trywhen it does not depend onTry.