diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-07-11 17:26:40 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-07-11 17:32:00 -0700 |
| commit | e1620def9f4e1da73f798f5deb3d8dbe410fce90 (patch) | |
| tree | 9be1f3027af3c566630cbade4f9e4898b2ad99e0 /src/rt/rust_timer.cpp | |
| parent | 9fe03b3c556eddd99887e7968f9757f7bdf91cc1 (diff) | |
| download | rust-e1620def9f4e1da73f798f5deb3d8dbe410fce90.tar.gz rust-e1620def9f4e1da73f798f5deb3d8dbe410fce90.zip | |
In typeck, check for dynamically sized by-value arguments to thunks
A check in trans didn't have a corresponding check in typeck, causing some programs (to wit, compile-fail/chan-parameterized-args.rs - part of this commit) to fail with an assertion failure in trans instead of a type error. Fixed it. In short, arguments that are future thunk arguments (any spawn arguments, and _ arguments in bind) need to either not contain type params or type vars, or be by-reference. Closes #665.
Diffstat (limited to 'src/rt/rust_timer.cpp')
0 files changed, 0 insertions, 0 deletions
