Unify the take glue functions for unique pointer types
These glue function just return void, no point in having a copy for each type.
This commit is contained in:
parent
38d62feec1
commit
fac18c1cb8
1 changed files with 4 additions and 1 deletions
|
|
@ -136,7 +136,10 @@ pub fn simplified_glue_type(tcx: ty::ctxt, field: uint, t: ty::t) -> ty::t {
|
|||
|
||||
if field == abi::tydesc_field_take_glue {
|
||||
match ty::get(t).sty {
|
||||
ty::ty_unboxed_vec(*) => { return ty::mk_u32(); }
|
||||
ty::ty_unboxed_vec(*) |
|
||||
ty::ty_uniq(*) |
|
||||
ty::ty_estr(ty::vstore_uniq) |
|
||||
ty::ty_evec(_, ty::vstore_uniq) => { return ty::mk_u32(); }
|
||||
_ => ()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue