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
|
@ -160,7 +160,7 @@ impl Qualif for NeedsNonConstDrop {
|
|||
ObligationCause::dummy(),
|
||||
cx.param_env,
|
||||
ty::Binder::dummy(ty::TraitPredicate {
|
||||
trait_ref: cx.tcx.mk_trait_ref(destruct, ty, &[]),
|
||||
trait_ref: cx.tcx.mk_trait_ref(destruct, ty, []),
|
||||
constness: ty::BoundConstness::ConstIfConst,
|
||||
polarity: ty::ImplPolarity::Positive,
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue