allow unordered const/ty params if any cg feature is active
This commit is contained in:
parent
0c28e028b6
commit
4747cbb3bb
4 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue