Error message, instead of segfault, when recursive types are used.
This commit is contained in:
parent
1b67fbdfd3
commit
5cd10d2fef
4 changed files with 35 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue