librustc: Add missing case in mem_categorization. rs=bugfix

This commit is contained in:
Patrick Walton 2012-12-13 18:03:13 -08:00
parent 55c9cf72e3
commit 57e4ed479e

View File

@ -348,6 +348,10 @@ fn opt_deref_kind(t: ty::t) -> Option<deref_kind> {
Some(deref_comp(comp_variant(did)))
}
ty::ty_struct(_, _) => {
Some(deref_comp(comp_anon_field))
}
ty::ty_evec(mt, ty::vstore_fixed(_)) => {
Some(deref_comp(comp_index(t, mt.mutbl)))
}