-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
remove dependency on itertools #68999
Conversation
&& bb_l.terminator().kind == bb_r.terminator().kind | ||
&& bb_l.statements.iter().eq_by(&bb_r.statements, |x, y| x.kind == y.kind) | ||
}); | ||
let all_successors_equivalent = if let Some((_, mut bb_l)) = first_bb_reachable { |
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 can't say I'm a fan of this change. Sure, itertools takes some compile time, but I think we should use it more, to be able to write nice declarative code like before this diff. I'm sure there are quite a few places in the compiler where we could clean things up with a more active "do use itertools" policy.
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 can support that I was only feeling that it was a lot of time for use of one function.
also now for some reason itertools is built twice think that is solved even with this file reverted.
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.
Yeah I get that. :) I'd be happy to r+ the rest of the PR though for now.
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.
fixed the comment now
feels like window for iterators can be in std as there is an version for slices.
@bors r+ |
📌 Commit 3b23d22 has been approved by |
remove dependency on itertools r? @Centril
Rollup of 11 pull requests Successful merges: - #67695 (Added dyn and true keyword docs) - #68487 ([experiment] Support linking from a .rlink file) - #68554 (Split lang_items to crates `rustc_hir` and `rustc_passes`.) - #68937 (Test failure of unchecked arithmetic intrinsics in const eval) - #68947 (Python script PEP8 style guide space formatting and minor Python source cleanup) - #68999 (remove dependency on itertools) - #69026 (Remove common usage pattern from `AllocRef`) - #69027 (Add missing `_zeroed` varants to `AllocRef`) - #69058 (Preparation for allocator aware `Box`) - #69070 (Add self to .mailmap) - #69077 (Fix outdated doc comment.) Failed merges: r? @ghost
r? @Centril