]> git.lizzy.rs Git - rust.git/commit
Use actual type, not declared type, when zeroing move arguments
authorTim Chevalier <chevalier@alum.wellesley.edu>
Wed, 10 Aug 2011 22:57:03 +0000 (15:57 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Thu, 11 Aug 2011 00:22:57 +0000 (17:22 -0700)
commita8a4d4ec056b68ac25a04ea020cdc674527a76df
treedc92552f3ddf044015c5a66cc770d32202d35b5b
parent6b756c4b4a0f632e537cdfd2c0ac63cea357c8ad
Use actual type, not declared type, when zeroing move arguments

trans was failing with a bounds check error because the caller
was using the declared type (an out-of-scope ty param) and not
the actual type in a list of argument types to zero.

Closes #811
src/comp/middle/trans.rs
src/test/run-fail/bug-811.rs [new file with mode: 0644]