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
|
@ -27,7 +27,7 @@ pub trait TraitEngine<'tcx>: 'tcx {
|
|||
def_id: DefId,
|
||||
cause: ObligationCause<'tcx>,
|
||||
) {
|
||||
let trait_ref = infcx.tcx.mk_trait_ref(def_id, ty, &[]);
|
||||
let trait_ref = infcx.tcx.mk_trait_ref(def_id, ty, []);
|
||||
self.register_predicate_obligation(
|
||||
infcx,
|
||||
Obligation {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue