提交 c9102ee7 编写于 作者: N Niko Matsakis

make type_kind exhaustive, add an entry for type_self (in particular)

上级 42f2810e
......@@ -985,7 +985,9 @@ fn type_kind(cx: ctxt, ty: t) -> kind {
param_bounds_to_kind(cx.ty_param_bounds.get(did.node))
}
ty_constr(t, _) { type_kind(cx, t) }
_ { cx.sess.bug("bad type in type_kind"); }
ty_class(_, _) { fail "FIXME"; }
ty_var(_) { fail "FIXME"; }
ty_self(_) { kind_noncopyable }
};
cx.kind_cache.insert(ty, result);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册