From: Marijn Haverbeke Date: Mon, 9 Jan 2012 15:44:22 +0000 (+0100) Subject: Iface types are not structural X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=9e2b2732214d080bff6e19f64d84e9df3b704320;p=rust.git Iface types are not structural Not sure how they ended up being marked as such. --- diff --git a/src/comp/middle/ty.rs b/src/comp/middle/ty.rs index 42225aa2aca..84db898d21e 100644 --- a/src/comp/middle/ty.rs +++ b/src/comp/middle/ty.rs @@ -847,8 +847,7 @@ fn type_is_bool(cx: ctxt, ty: t) -> bool { fn type_is_structural(cx: ctxt, ty: t) -> bool { alt struct(cx, ty) { ty_rec(_) | ty_tup(_) | ty_tag(_, _) | ty_fn(_) | - ty_native_fn(_, _) | ty_obj(_) | ty_res(_, _, _) | - ty_iface(_, _) { true } + ty_native_fn(_, _) | ty_obj(_) | ty_res(_, _, _) { true } _ { false } } }