Skip to content
Snippets Groups Projects
Commit f4f20b36 authored by David Renshaw's avatar David Renshaw
Browse files

struct_variant -> non_enum_variant

parent 059c2578
No related branches found
No related tags found
No related merge requests found
...@@ -507,7 +507,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> { ...@@ -507,7 +507,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
// the last field). // the last field).
let (unsized_size, unsized_align) = match ty.sty { let (unsized_size, unsized_align) = match ty.sty {
ty::TyAdt(def, substs) => { ty::TyAdt(def, substs) => {
let last_field = def.struct_variant().fields.last().unwrap(); let last_field = def.non_enum_variant().fields.last().unwrap();
let field_ty = self.field_ty(substs, last_field); let field_ty = self.field_ty(substs, last_field);
self.size_and_align_of_dst(field_ty, value)? self.size_and_align_of_dst(field_ty, value)?
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment