Skip to content

Commit c9102ee

Browse files
committed
make type_kind exhaustive, add an entry for type_self (in particular)
1 parent 42f2810 commit c9102ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rustc/middle/ty.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,9 @@ fn type_kind(cx: ctxt, ty: t) -> kind {
985985
param_bounds_to_kind(cx.ty_param_bounds.get(did.node))
986986
}
987987
ty_constr(t, _) { type_kind(cx, t) }
988-
_ { cx.sess.bug("bad type in type_kind"); }
988+
ty_class(_, _) { fail "FIXME"; }
989+
ty_var(_) { fail "FIXME"; }
990+
ty_self(_) { kind_noncopyable }
989991
};
990992

991993
cx.kind_cache.insert(ty, result);

0 commit comments

Comments
 (0)