Uh oh!
There was an error while loading. Please reload this page.
cleanup mir visitor for rustc::pass_by_value - #98766
Conversation
rustbot
commented
Jul 1, 2022
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
rust-highfive
commented
Jul 1, 2022
r? @wesleywiser (rust-highfive has picked a reviewer for you, use r? to override) |
oli-obk
left a comment
There was a problem hiding this comment.
None of my comments should be applied in this PR, there's probably many more that could be addressed that way.
r=me with CI happy
| fn visit_ascribe_user_ty( | ||
| &mut self, | ||
| place: & $($mutability)? Place<'tcx>, | ||
| variance: & $($mutability)? ty::Variance, |
There was a problem hiding this comment.
variance is a trivial enum and could benefit from this, too
| location: Location) { | ||
| fn visit_ascribe_user_ty( | ||
| &mut self, | ||
| place: & $($mutability)? Place<'tcx>, |
There was a problem hiding this comment.
place small, so passing them by value should be ok (two ptr-sized things instead of one)
| location: Location) { | ||
| fn visit_retag( | ||
| &mut self, | ||
| kind: & $($mutability)? RetagKind, |
There was a problem hiding this comment.
also a trivial enum that could be passed by value.. although it isn't Copy, maybe that's just an oversight?
Dylan-DPC
commented
Jul 1, 2022
@bors r=oli-obk |
bors
commented
Jul 1, 2022
📌 Commit cf9c0a5 has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#98639 (Factor out `hir::Node::Binding`) - rust-lang#98653 (Add regression test for rust-lang#79494) - rust-lang#98763 (bootstrap: illumos platform flags for split-debuginfo) - rust-lang#98766 (cleanup mir visitor for `rustc::pass_by_value`) - rust-lang#98783 (interpret: make a comment less scary) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…i-obk add more `rustc_pass_by_value` r? `@oli-obk` cc rust-lang#98766
…i-obk add more `rustc_pass_by_value` r? ``@oli-obk`` cc rust-lang#98766
…i-obk add more `rustc_pass_by_value` r? ```@oli-obk``` cc rust-lang#98766
by changing
& $($mutability)?to$(& $mutability)?I also did some formatting changes because I started doing them for the visit methods I changed and then couldn't get myself to stop xx, I hope that's still fairly easy to review.