From 4747cbb3bbb1dd7a9f8a5bdb2eee073f8e4c43ef Mon Sep 17 00:00:00 2001 From: lcnr Date: Thu, 26 Aug 2021 21:12:02 +0200 Subject: allow unordered const/ty params if any cg feature is active --- compiler/rustc_ast/src/ast.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/rustc_ast/src') 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; 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 -- cgit 1.4.1-3-g733a5