about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorMatthew Jasper <mjjasper1@gmail.com>2018-11-18 14:49:24 +0000
committerMatthew Jasper <mjjasper1@gmail.com>2018-11-30 19:43:41 +0000
commit914515f8090be23e7ae0acc29cdccf6360d1a03d (patch)
treeb55bebdede2a8c35830d1e265cd8c498ca87086a /src/test/ui/thinlto
parent3dde9e132207b5a40e12f8d5a1a363ebea60e0b0 (diff)
downloadrust-914515f8090be23e7ae0acc29cdccf6360d1a03d.tar.gz
rust-914515f8090be23e7ae0acc29cdccf6360d1a03d.zip
Drop function parameters in expected order
Given the function

fn foo((_x, _): (LogDrop, LogDrop), (_, _y): (LogDrop, LogDrop)) {}

Prior to 1.12 we dropped both `_x` and `_y` before the rest of their
respective parameters, since then we dropped `_x` and `_y` after. The
original order appears to be the correct order, as the value created
later is dropped first, so we revert to that order and add a test for
it.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions