-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Avoid cloning LocalDecls #86362
Avoid cloning LocalDecls #86362
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
In case this is perf-sensitive, |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 52841487e503ffb430d8b79b0cfdeab1e93a569e with merge 52547bf071f62d79d15178ef168074a0a84e30a1... |
☀️ Try build successful - checks-actions |
Queued 52547bf071f62d79d15178ef168074a0a84e30a1 with parent ce331ee, future comparison URL. |
Finished benchmarking try commit (52547bf071f62d79d15178ef168074a0a84e30a1): comparison url. Summary: This benchmark run did not return any significant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
5284148
to
ce6296e
Compare
Didn't see the conflict. Rebased |
); | ||
caller_body | ||
.local_decls | ||
.extend(callee_body.local_decls.drain(callee_body.arg_count + 1..)); // vars and temps |
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.
So, I don't think "exposing" the internal logic of arg_count + 1..
is all that great. Could you add a new function on Body
, drain_vars_and_temps
?
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.
Agreed
ce6296e
to
e09ab5f
Compare
e09ab5f
to
7bcc9ae
Compare
@bors r+ rollup |
📌 Commit 7bcc9ae has been approved by |
Rollup of 10 pull requests Successful merges: - rust-lang#85017 (Add carrying_add, borrowing_sub, widening_mul, carrying_mul methods to integers) - rust-lang#86362 (Avoid cloning LocalDecls) - rust-lang#88391 (Fix json tuple struct enum variant ) - rust-lang#88399 (Disallow the aapcs CC on Aarch64) - rust-lang#88418 (Allow `~const` bounds on trait assoc functions) - rust-lang#88445 (Clean up the lowering of AST items) - rust-lang#88495 (Add `TcpStream::set_linger` and `TcpStream::linger`) - rust-lang#88501 (Use right span in prelude collision suggestions with macros. ) - rust-lang#88504 (Keep turbofish in prelude collision lint.) - rust-lang#88524 (Remove unnecessary `mut` from udp doctests) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
No description provided.