]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #107662 - cjgillot:copy-projection, r=oli-obk
authorMatthias Krüger <matthias.krueger@famsik.de>
Tue, 7 Feb 2023 16:57:15 +0000 (17:57 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Feb 2023 16:57:15 +0000 (17:57 +0100)
commit306dbaf5741a4d76cb2ba0c5feca24414cd1c51a
tree973f07147ec1cb78d44affe7e98cba80604550eb
parent917662a8f6f4ddce6993ed7a528f1d8d8dd2764d
parent9c5add14e7c1695bc018a941c383f01a7dde8730
Rollup merge of #107662 - cjgillot:copy-projection, r=oli-obk

Turn projections into copies in CopyProp.

The current implementation can leave behind projections that are moved out several times.

This PR widens the check to turn such moves into copies: a move out of a projection of a copy is equivalent to a copy of the original projection.
tests/mir-opt/simple_option_map_e2e.ezmap.PreCodegen.after.mir