rustc: Add missing cases for istr and ivec to equal_type_structures()

This commit is contained in:
Patrick Walton 2011-06-10 11:00:37 -07:00
parent 3ce82d2e70
commit cc3d484d9d

View file

@ -1222,6 +1222,12 @@ fn equal_type_structures(&sty a, &sty b) -> bool {
case (_) { ret false; }
}
}
case (ty_istr) {
alt (b) {
case (ty_istr) { ret true; }
case (_) { ret false; }
}
}
case (ty_tag(?id_a, ?tys_a)) {
alt (b) {
case (ty_tag(?id_b, ?tys_b)) {
@ -1251,6 +1257,12 @@ fn equal_type_structures(&sty a, &sty b) -> bool {
case (_) { ret false; }
}
}
case (ty_ivec(?mt_a)) {
alt (b) {
case (ty_ivec(?mt_b)) { ret equal_mt(mt_a, mt_b); }
case (_) { ret false; }
}
}
case (ty_ptr(?mt_a)) {
alt (b) {
case (ty_ptr(?mt_b)) { ret equal_mt(mt_a, mt_b); }