Error message, instead of segfault, when recursive types are used.

This commit is contained in:
Paul Stansifer 2011-06-02 14:03:17 -07:00
parent 1b67fbdfd3
commit 5cd10d2fef
4 changed files with 35 additions and 3 deletions

View file

@ -503,6 +503,14 @@ fn is_constraint_arg(@expr e) -> bool {
}
}
fn eq_ty(&@ty a, &@ty b) -> bool {
ret a == b;
}
fn hash_ty(&@ty t) -> uint {
ret t.span.lo << 16u + t.span.hi;
}
//
// Local Variables:
// mode: rust