rustc: Box tag variants to avoid copies
This commit is contained in:
parent
26db74c811
commit
1f8f6054d2
2 changed files with 5 additions and 5 deletions
|
|
@ -244,7 +244,7 @@ fn get_tag_variants(_data: @[u8], def: ast::def_id, tcx: ty::ctxt,
|
|||
|
||||
}
|
||||
}
|
||||
infos += [{args: arg_tys, ctor_ty: ctor_ty, id: did}];
|
||||
infos += [@{args: arg_tys, ctor_ty: ctor_ty, id: did}];
|
||||
}
|
||||
ret infos;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue