Skip to content

Commit 57e4ed4

Browse files
committed
librustc: Add missing case in mem_categorization. rs=bugfix
1 parent 55c9cf7 commit 57e4ed4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc/middle/mem_categorization.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,10 @@ fn opt_deref_kind(t: ty::t) -> Option<deref_kind> {
348348
Some(deref_comp(comp_variant(did)))
349349
}
350350

351+
ty::ty_struct(_, _) => {
352+
Some(deref_comp(comp_anon_field))
353+
}
354+
351355
ty::ty_evec(mt, ty::vstore_fixed(_)) => {
352356
Some(deref_comp(comp_index(t, mt.mutbl)))
353357
}

0 commit comments

Comments
 (0)