about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-03-30 02:04:00 +0000
committerbors <bors@rust-lang.org>2020-03-30 02:04:00 +0000
commit0afdf43dc1d9be4c8b422840166b51dd99e56a16 (patch)
tree3036a0c4c3212cf2127033e0ae86bd0d346e23f0 /src/libstd/sys/unix/stack_overflow.rs
parent4911572b2da65eeff0b017831614ee32b546b9db (diff)
parent538cdef64ba0087ff1d1c26d7fe1eae099c4d7e5 (diff)
downloadrust-0afdf43dc1d9be4c8b422840166b51dd99e56a16.tar.gz
rust-0afdf43dc1d9be4c8b422840166b51dd99e56a16.zip
Auto merge of #70449 - ecstatic-morse:visit-body, r=oli-obk
Make `Visitor::visit_body` take a plain `&Body`

`ReadOnlyBodyAndCache` has replaced `&Body` in many parts of the code base that don't care about basic block predecessors. This includes the MIR `Visitor` trait, which I suspect resulted in many unnecessary changes in #64736. This reverts part of that PR to reduce the number of places where we need to pass a `ReadOnlyBodyAndCache`.

In the long term, we should either give `ReadOnlyBodyAndCache` more ergonomic name and replace all uses of `&mir::Body` with it at the cost of carrying an extra pointer everywhere, or use it only in places that actually need access to the predecessor cache. Perhaps there is an even nicer alternative.

r? @Nashenas88
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions