File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -314,6 +314,7 @@ pub enum ParamKindOrd {
314314 Lifetime ,
315315 Type ,
316316 Const ,
317+ ConstUnordered ,
317318}
318319
319320impl fmt:: Display for ParamKindOrd {
@@ -322,6 +323,7 @@ impl fmt::Display for ParamKindOrd {
322323 ParamKindOrd :: Lifetime => "lifetime" . fmt ( f) ,
323324 ParamKindOrd :: Type => "type" . fmt ( f) ,
324325 ParamKindOrd :: Const => "const" . fmt ( f) ,
326+ ParamKindOrd :: ConstUnordered => "const" . fmt ( f) ,
325327 }
326328 }
327329}
Original file line number Diff line number Diff line change @@ -735,8 +735,7 @@ fn validate_generic_param_order<'a>(
735735 }
736736 let max_param = & mut max_param;
737737 match max_param {
738- Some ( ParamKindOrd :: Const )
739- if ParamKindOrd :: Type == kind && sess. features_untracked ( ) . const_generics => { }
738+ Some ( ParamKindOrd :: ConstUnordered ) if kind != ParamKindOrd :: Lifetime => ( ) ,
740739 Some ( max_param) if * max_param > kind => {
741740 let entry = out_of_order. entry ( kind) . or_insert ( ( * max_param, vec ! [ ] ) ) ;
742741 entry. 1 . push ( span) ;
You can’t perform that action at this time.
0 commit comments