Skip to content

Commit e430a69

Browse files
committed
Fix take glue for slices.
1 parent a83ed81 commit e430a69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rustc/middle/trans/base.rs

+3
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,9 @@ fn make_take_glue(bcx: block, v: ValueRef, t: ty::t) {
638638
Store(bcx, val, v);
639639
bcx
640640
}
641+
ty::ty_evec(_, ty::vstore_slice(_)) | ty::ty_estr(ty::vstore_slice(_)) {
642+
bcx
643+
}
641644
ty::ty_fn(_) {
642645
closure::make_fn_glue(bcx, v, t, take_ty)
643646
}

0 commit comments

Comments
 (0)