Skip to content

Commit 9e2b273

Browse files
committed
Iface types are not structural
Not sure how they ended up being marked as such.
1 parent a62bd9a commit 9e2b273

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/comp/middle/ty.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,8 +847,7 @@ fn type_is_bool(cx: ctxt, ty: t) -> bool {
847847
fn type_is_structural(cx: ctxt, ty: t) -> bool {
848848
alt struct(cx, ty) {
849849
ty_rec(_) | ty_tup(_) | ty_tag(_, _) | ty_fn(_) |
850-
ty_native_fn(_, _) | ty_obj(_) | ty_res(_, _, _) |
851-
ty_iface(_, _) { true }
850+
ty_native_fn(_, _) | ty_obj(_) | ty_res(_, _, _) { true }
852851
_ { false }
853852
}
854853
}

0 commit comments

Comments
 (0)