Skip to content

Commit 58b1a04

Browse files
committed
Allow types to come after consts in AST validation
1 parent f9c2177 commit 58b1a04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_ast_passes/ast_validation.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@ fn validate_generic_param_order<'a>(
735735
}
736736
let max_param = &mut max_param;
737737
match max_param {
738+
Some(ParamKindOrd::Const) if ParamKindOrd::Type == kind => (),
738739
Some(max_param) if *max_param > kind => {
739740
let entry = out_of_order.entry(kind).or_insert((*max_param, vec![]));
740741
entry.1.push(span);

0 commit comments

Comments
 (0)