Add kind-checking for assign-op, copy, ret, be, fail exprs. Fix caught kinding-violations in rustc and libstd.

This commit is contained in:
Graydon Hoare
2011-08-23 15:58:53 -07:00
parent a3c8d4a5a5
commit c011f13144
28 changed files with 45 additions and 35 deletions

View File

@@ -222,7 +222,7 @@ fn expect_gt(p: &parser) {
}
}
fn spanned<T>(lo: uint, hi: uint, node: &T) -> spanned<T> {
fn spanned<@T>(lo: uint, hi: uint, node: &T) -> spanned<T> {
ret {node: node, span: ast_util::mk_sp(lo, hi)};
}