@@ -19,7 +19,7 @@ use rustc_middle::traits::EvaluationResult;
1919use rustc_middle:: ty:: layout:: ValidityRequirement ;
2020use rustc_middle:: ty:: {
2121 self , AdtDef , AliasTy , AssocKind , Binder , BoundRegion , FnSig , GenericArg , GenericArgKind , GenericArgsRef ,
22- GenericParamDefKind , IntTy , List , ParamEnv , Region , RegionKind , ToPredicate , TraitRef , Ty , TyCtxt ,
22+ GenericParamDefKind , IntTy , ParamEnv , Region , RegionKind , ToPredicate , TraitRef , Ty , TyCtxt ,
2323 TypeSuperVisitable , TypeVisitable , TypeVisitableExt , TypeVisitor , UintTy , VariantDef , VariantDiscr ,
2424} ;
2525use rustc_span:: symbol:: Ident ;
@@ -961,7 +961,11 @@ pub struct AdtVariantInfo {
961961
962962impl AdtVariantInfo {
963963 /// Returns ADT variants ordered by size
964- pub fn new < ' tcx > ( cx : & LateContext < ' tcx > , adt : AdtDef < ' tcx > , subst : & ' tcx List < GenericArg < ' tcx > > ) -> Vec < Self > {
964+ pub fn new < ' tcx > (
965+ cx : & LateContext < ' tcx > ,
966+ adt : AdtDef < ' tcx > ,
967+ subst : GenericArgsRef < ' tcx >
968+ ) -> Vec < Self > {
965969 let mut variants_size = adt
966970 . variants ( )
967971 . iter ( )
0 commit comments