librustc: Add missing case in mem_categorization. rs=bugfix
This commit is contained in:
parent
55c9cf72e3
commit
57e4ed479e
1 changed files with 4 additions and 0 deletions
|
|
@ -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)))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue