1
Fork 0

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

@ -3,7 +3,7 @@ import std::option;
import codemap::span;
import ast::*;
fn respan<T>(sp: &span, t: &T) -> spanned<T> { ret {node: t, span: sp}; }
fn respan<@T>(sp: &span, t: &T) -> spanned<T> { ret {node: t, span: sp}; }
/* assuming that we're not in macro expansion */
fn mk_sp(lo: uint, hi: uint) -> span {