diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2018-11-18 14:49:24 +0000 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2018-11-30 19:43:41 +0000 |
| commit | 914515f8090be23e7ae0acc29cdccf6360d1a03d (patch) | |
| tree | b55bebdede2a8c35830d1e265cd8c498ca87086a /src/test/ui/thinlto | |
| parent | 3dde9e132207b5a40e12f8d5a1a363ebea60e0b0 (diff) | |
| download | rust-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
