about summary refs log tree commit diff
path: root/src/test/compile-fail/bind-parameterized-args.rs
AgeCommit message (Collapse)AuthorLines
2011-07-27Have bind support non-alias parametric non-bound arguments.Michael Sullivan-9/+0
This was previously disallowed by the typechecker and not properly handled in trans. I removed the typechecker check (replacing it with a simpler check that spawned functions don't have type params) and fixed trans. Closes #756.
2011-07-27Reformat for new syntaxMarijn Haverbeke-5/+4
2011-07-13Prohibit trailing whitespace under 'tidy' script. Clean up all caught cases.Graydon Hoare-1/+1
2011-07-11In typeck, check for dynamically sized by-value arguments to thunksTim Chevalier-0/+10
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.