]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #91278 - SparrowLii:place, r=spastorino
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 19 Jan 2022 09:42:14 +0000 (10:42 +0100)
committerGitHub <noreply@github.com>
Wed, 19 Jan 2022 09:42:14 +0000 (10:42 +0100)
commit3a1db90efbdb66663e93e0943a594d1a44f5aedf
tree5f3928fe5542bfde5560ba96a02bdac4b8c8f224
parent2a4381d8eaad4f9f0eb5a4e624e7b154640690f1
parent61ff847203d6491f13782b0f6e461b593afc7a0d
Rollup merge of #91278 - SparrowLii:place, r=spastorino

Use iterator instead of recursion in `codegen_place`

This PR fixes the FIXME in `codegen_place` about using iterator instead of recursion when processing the `projection` field in `mir::PlaceRef`. At the same time, it also reduces the right drift.