consider autoderef through user-defined Deref in eager_or_lazy#10896
consider autoderef through user-defined Deref in eager_or_lazy#10896bors merged 1 commit intorust-lang:masterfrom
Deref in eager_or_lazy#10896Conversation
|
Thank you for the PR and review request :) @blyxyas Do you first want to take a look at this PR? You also reviewed the previous one |
|
Yep, will take it! 🐱 |
|
Looks good to me as well! Thank you for the update @y21!
This change looks pretty simple, I would be surprised if it was even noticeable. Especially, since the condition is nested below other ones. But At the same time, it's good to check.
Usually, I still look at the ongoing conversation, in the other PR I just missed it. You're always welcome to ping me, though. Thank you for the review! Now without further of due: Lord bors, would you mind merging this PR in the name of princess blyxyas and me? |
|
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
I'm genuine dying right now |
How did you do it this time? How did you trigger bors, you magician? 😄 |
Please don't I haven't learned any spells for resurrection. This kingdom still needs you
Should a wizard reveal their power? (It's the same magic trick I used a few months ago. GitHub still processes pings in markdown doc comments |
|
Ah, I already forgot about this trick :D |
|
Maybe I can use it again in a few months, to confuse you. Using it is always a lot of fun, and that's one of the reasons we're here, right? ^^ |
Fixes #10462
This PR handles autoderef in the
eager_or_lazyutil module and stops suggesting to change lazy to eager if autoderef in an expression goes through user definedDerefimpls, e.g.changelog: [
unnecessary_lazy_evaluations]: don't suggest changing lazy evaluation to eager if autoderef goes through user-definedDerefr? @xFrednet (because of the earlier review in #10864, might help for context here)