-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Separate the receiver from arguments in HIR #101261
Separate the receiver from arguments in HIR #101261
Conversation
Some changes occurred in need_type_info.rs cc @lcnr |
r? @cjgillot (rust-highfive has picked a reviewer for you, use r? to override) |
780f9ee
to
7bf59f5
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
@bors try |
⌛ Trying commit e39e6badb9f814749efd5e90b3879934f65f701d with merge 49b7bc501896135473621bcd0af177b4fbab1a5e... |
☀️ Try build successful - checks-actions |
cc #100427 i think |
std::iter::once(receiver) | ||
.chain(args.iter()) | ||
.rev() | ||
.fold(succ, |succ, expr| self.propagate_through_expr(expr, succ)) |
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.
Could you inline the first iteration of the fold?
std::iter::once(receiver).chain(args.iter()).collect() | ||
} else { | ||
args.iter().collect() | ||
}; |
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.
let args = receiver.into_iter().chain(args);
☔ The latest upstream changes (presumably #101239) made this pull request unmergeable. Please resolve the merge conflicts. |
6f36cef
to
38e5074
Compare
@rustbot ready |
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.
This is not the simplification that we hoped for, but this makes the semantic much clearer, so let's go.
r=me with a few extra nits.
@bors try @rust-timer queue |
☀️ Try build successful - checks-actions |
Queued 25a8c2d85ec7bbe4e5a7071f9725b3b80ec9add3 with parent 406e03f, future comparison URL. |
e6d951b
to
1351d82
Compare
fix `ExprKind` static_assert_size fix hir-stats
1351d82
to
9cde34e
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 9cde34e with merge 39e7cded5d29175e5dbf01353888be348eab6285... |
Finished benchmarking commit (25a8c2d85ec7bbe4e5a7071f9725b3b80ec9add3): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Footnotes |
☀️ Try build successful - checks-actions |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (b44197a): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Footnotes |
…ents-in-hir, r=cjgillot Separate the receiver from arguments in HIR Related to rust-lang#100232 cc `@cjgillot`
Related to #100232
cc @cjgillot