mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
Fix take glue for slices.
This commit is contained in:
parent
a83ed81f77
commit
e430a699f2
|
@ -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…
Reference in a new issue