Fix take glue for slices.
This commit is contained in:
parent
a83ed81f77
commit
e430a699f2
1 changed files with 3 additions and 0 deletions
|
@ -638,6 +638,9 @@ fn make_take_glue(bcx: block, v: ValueRef, t: ty::t) {
|
|||
Store(bcx, val, v);
|
||||
bcx
|
||||
}
|
||||
ty::ty_evec(_, ty::vstore_slice(_)) | ty::ty_estr(ty::vstore_slice(_)) {
|
||||
bcx
|
||||
}
|
||||
ty::ty_fn(_) {
|
||||
closure::make_fn_glue(bcx, v, t, take_ty)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue