diff options
| author | lcnr <rust@lcnr.de> | 2021-08-26 21:12:02 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2021-08-30 11:00:21 +0200 |
| commit | 4747cbb3bbb1dd7a9f8a5bdb2eee073f8e4c43ef (patch) | |
| tree | 613a2fd8b0bbff7d864d067a07d95244ee600965 /compiler/rustc_ast/src | |
| parent | 0c28e028b6f45f33447f24de7dd762b8599b7a4e (diff) | |
| download | rust-4747cbb3bbb1dd7a9f8a5bdb2eee073f8e4c43ef.tar.gz rust-4747cbb3bbb1dd7a9f8a5bdb2eee073f8e4c43ef.zip | |
allow unordered const/ty params if any cg feature is active
Diffstat (limited to 'compiler/rustc_ast/src')
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index d0a95ea130a..e1ea464dedb 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -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 |
