1
Fork 0

loosen ordering restricts for const_generics_defaults

This commit is contained in:
lcnr 2021-04-18 14:31:00 +02:00
parent 259a368e9e
commit 7cb1dcd488
31 changed files with 145 additions and 81 deletions

View file

@ -296,7 +296,9 @@ impl GenericArg<'_> {
match self {
GenericArg::Lifetime(_) => ast::ParamKindOrd::Lifetime,
GenericArg::Type(_) => ast::ParamKindOrd::Type,
GenericArg::Const(_) => ast::ParamKindOrd::Const { unordered: feats.const_generics },
GenericArg::Const(_) => {
ast::ParamKindOrd::Const { unordered: feats.unordered_const_ty_params() }
}
}
}
}