]> git.lizzy.rs Git - rust.git/commit
Apply adjustments to the retslot type in trans_ret
authorBjörn Steinbrink <bsteinbr@gmail.com>
Sun, 15 Feb 2015 12:41:05 +0000 (13:41 +0100)
committerBjörn Steinbrink <bsteinbr@gmail.com>
Sun, 15 Feb 2015 12:45:12 +0000 (13:45 +0100)
commit109e1184aa47cad4f866811fc547d7237e73194a
treed6e256402a04dc5ec4d1d981765094ce78b35791
parentb6d91a2bdac45cd919497a24207fab843124d4ba
Apply adjustments to the retslot type in trans_ret

Without the adjustments the retslot might have the wrong type, e.g. when
the return value is implicitly coerced to a trait object.

Fixes #22346
src/librustc_trans/trans/controlflow.rs
src/test/run-pass/issue22346.rs [new file with mode: 0644]