-
Notifications
You must be signed in to change notification settings - Fork 13.4k
improve readability of winnowing #108937
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
improve readability of winnowing #108937
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
Co-authored-by: Ruby Lazuli <general@patchmixolydic.com>
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.
Looks fine to me, r=me with the comment applied (or not if you don't think it's a good idea)
self.candidate_should_be_dropped_in_favor_of( | ||
&candidates[i], | ||
&candidates[j], | ||
needs_infer, | ||
) | ||
) == DropVictim::Yes |
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.
Maybe .is_drop_victim()
(or other check method) would be nicer here, idk.
hmm, I don't think adding that method is worth it 🤔 the method itself would also just be @bors r=WaffleLapkin rollup |
Yeah.. But sometimes it can be beneficial for readability, as an example: #104786 |
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#106921 (Add documentation about the memory layout of `Cell`) - rust-lang#108828 (Emit alias-eq when equating numeric var and projection) - rust-lang#108834 (Do not ICE when we have fn pointer `Fn` obligations with bound vars in the self type) - rust-lang#108900 (fix(lexer): print whitespace warning for \x0c) - rust-lang#108930 (feat: implement better error for manual impl of `Fn*` traits) - rust-lang#108937 (improve readability of winnowing) - rust-lang#108947 (Don't even try to combine consts with incompatible types) - rust-lang#108976 (Update triagebot rust-analyzer team mention) - rust-lang#108983 (Forbid `#[target_feature]` on safe default implementations) Failed merges: - rust-lang#108950 (Directly construct Inherited in typeck.) r? `@ghost` `@rustbot` modify labels: rollup
No description provided.