Skip to content

Commit 3c1d0f7

Browse files
committed
auto merge of #8146 : dotdash/rust/simple_take_glue, r=thestinger
These glue function just return void, no point in having a copy for each type.
2 parents 2b50011 + 20eae22 commit 3c1d0f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustc/middle/trans/glue.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ pub fn simplified_glue_type(tcx: ty::ctxt, field: uint, t: ty::t) -> ty::t {
136136

137137
if field == abi::tydesc_field_take_glue {
138138
match ty::get(t).sty {
139-
ty::ty_unboxed_vec(*) => { return ty::mk_u32(); }
139+
ty::ty_unboxed_vec(*) |
140+
ty::ty_uniq(*) |
141+
ty::ty_estr(ty::vstore_uniq) |
142+
ty::ty_evec(_, ty::vstore_uniq) => { return ty::mk_u32(); }
140143
_ => ()
141144
}
142145
}

0 commit comments

Comments
 (0)