@@ -19,7 +19,7 @@ use rustc_middle::traits::EvaluationResult;
19
19
use rustc_middle:: ty:: layout:: ValidityRequirement ;
20
20
use rustc_middle:: ty:: {
21
21
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 ,
23
23
TypeSuperVisitable , TypeVisitable , TypeVisitableExt , TypeVisitor , UintTy , VariantDef , VariantDiscr ,
24
24
} ;
25
25
use rustc_span:: symbol:: Ident ;
@@ -961,7 +961,11 @@ pub struct AdtVariantInfo {
961
961
962
962
impl AdtVariantInfo {
963
963
/// 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 > {
965
969
let mut variants_size = adt
966
970
. variants ( )
967
971
. iter ( )
0 commit comments