about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-11-07 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-11-07 00:00:00 +0000
commit89c3582d599a8ed26b429329ca6e8976d82f0efc (patch)
treed6323a01461b17946ed8ad3309e1a27f60d656a6 /src/test/codegen/src-hash-algorithm
parent0256d065d4901b63def6c04013da4f781d0752bb (diff)
downloadrust-89c3582d599a8ed26b429329ca6e8976d82f0efc.tar.gz
rust-89c3582d599a8ed26b429329ca6e8976d82f0efc.zip
Assert that a return place is not used for indexing during integration
The inliner integrates call destination place with callee return place
by remapping the local and adding extra projections as necessary.

If a call destination place contains any projections (which is already
possible) and a return place is used in an indexing projection (most
likely doesn't happen yet) the end result would be incorrect.

Add an assertion to ensure that potential issue won't go unnoticed in
the presence of more sophisticated copy propagation scheme.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions