Allow iterators instead of requiring slices that will get turned into iterators
This commit is contained in:
parent
bd40c10751
commit
ec8d01fdcc
35 changed files with 69 additions and 68 deletions
|
@ -615,7 +615,7 @@ where
|
|||
let drop_trait = tcx.require_lang_item(LangItem::Drop, None);
|
||||
let drop_fn = tcx.associated_item_def_ids(drop_trait)[0];
|
||||
let ty = self.place_ty(self.place);
|
||||
let substs = tcx.mk_substs_trait(ty, &[]);
|
||||
let substs = tcx.mk_substs_trait(ty, []);
|
||||
|
||||
let ref_ty =
|
||||
tcx.mk_ref(tcx.lifetimes.re_erased, ty::TypeAndMut { ty, mutbl: hir::Mutability::Mut });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue