1
Fork 0

allow unordered const/ty params if any cg feature is active

This commit is contained in:
lcnr 2021-08-26 21:12:02 +02:00
parent 0c28e028b6
commit 4747cbb3bb
4 changed files with 4 additions and 6 deletions

View file

@ -332,8 +332,8 @@ pub type GenericBounds = Vec<GenericBound>;
pub enum ParamKindOrd {
Lifetime,
Type,
// `unordered` is only `true` if `sess.has_features().const_generics_defaults`
// is active. Specifically, if it's only `min_const_generics`, it will still require
// `unordered` is only `true` if `sess.unordered_const_ty_params()`
// returns true. Specifically, if it's only `min_const_generics`, it will still require
// ordering consts after types.
Const { unordered: bool },
// `Infer` is not actually constructed directly from the AST, but is implicitly constructed