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 {
314
314
Lifetime ,
315
315
Type ,
316
316
Const ,
317
+ ConstUnordered ,
317
318
}
318
319
319
320
impl fmt:: Display for ParamKindOrd {
@@ -322,6 +323,7 @@ impl fmt::Display for ParamKindOrd {
322
323
ParamKindOrd :: Lifetime => "lifetime" . fmt ( f) ,
323
324
ParamKindOrd :: Type => "type" . fmt ( f) ,
324
325
ParamKindOrd :: Const => "const" . fmt ( f) ,
326
+ ParamKindOrd :: ConstUnordered => "const" . fmt ( f) ,
325
327
}
326
328
}
327
329
}
Original file line number Diff line number Diff line change @@ -735,8 +735,7 @@ fn validate_generic_param_order<'a>(
735
735
}
736
736
let max_param = & mut max_param;
737
737
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 => ( ) ,
740
739
Some ( max_param) if * max_param > kind => {
741
740
let entry = out_of_order. entry ( kind) . or_insert ( ( * max_param, vec ! [ ] ) ) ;
742
741
entry. 1 . push ( span) ;
You can’t perform that action at this time.
0 commit comments