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_feature/src/active.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_feature/src') diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index e2c88835f52..79a1f4e0c5c 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -71,7 +71,7 @@ macro_rules! declare_features { } pub fn unordered_const_ty_params(&self) -> bool { - self.const_generics_defaults + self.const_generics_defaults || self.generic_const_exprs || self.const_param_types } /// Some features are known to be incomplete and using them is likely to have -- cgit 1.4.1-3-g733a5