-
Notifications
You must be signed in to change notification settings - Fork 1.7k
consider autoderef through user-defined Deref
in eager_or_lazy
#10896
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
Conversation
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! 🐱 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there's anything wrong with this. Let's hope it doesn't make a big toll on performance (By my benchmarks, it doesn't)! Thanks ❤️!
(Forgot to ping @xFrednet on the other reviews, sorry)
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_lazy
util module and stops suggesting to change lazy to eager if autoderef in an expression goes through user definedDeref
impls, e.g.changelog: [
unnecessary_lazy_evaluations
]: don't suggest changing lazy evaluation to eager if autoderef goes through user-definedDeref
r? @xFrednet (because of the earlier review in #10864, might help for context here)