@@ -20,10 +20,10 @@ impl From<ty::ParamConst> for Parameter {
2020}
2121
2222/// Returns the set of parameters constrained by the impl header.
23- pub fn parameters_for_impl < ' tcx > ( impl_self_ty : Ty < ' tcx > ,
24- impl_trait_ref : Option < ty :: TraitRef < ' tcx > > )
25- -> FxHashSet < Parameter >
26- {
23+ pub fn parameters_for_impl < ' tcx > (
24+ impl_self_ty : Ty < ' tcx > ,
25+ impl_trait_ref : Option < ty :: TraitRef < ' tcx > > ,
26+ ) -> FxHashSet < Parameter > {
2727 let vec = match impl_trait_ref {
2828 Some ( tr) => parameters_for ( & tr, false ) ,
2929 None => parameters_for ( & impl_self_ty, false ) ,
@@ -36,12 +36,10 @@ pub fn parameters_for_impl<'tcx>(impl_self_ty: Ty<'tcx>,
3636/// uniquely determined by `t` (see RFC 447). If it is true, return the list
3737/// of parameters whose values are needed in order to constrain `ty` - these
3838/// differ, with the latter being a superset, in the presence of projections.
39- pub fn parameters_for < ' tcx , T > ( t : & T ,
40- include_nonconstraining : bool )
41- -> Vec < Parameter >
42- where T : TypeFoldable < ' tcx >
43- {
44-
39+ pub fn parameters_for < ' tcx > (
40+ t : & impl TypeFoldable < ' tcx > ,
41+ include_nonconstraining : bool ,
42+ ) -> Vec < Parameter > {
4543 let mut collector = ParameterCollector {
4644 parameters : vec ! [ ] ,
4745 include_nonconstraining,
0 commit comments