Allow types to come after consts in AST validation
This commit is contained in:
parent
f9c2177ddc
commit
58b1a04b9e
@ -735,6 +735,7 @@ fn validate_generic_param_order<'a>(
|
||||
}
|
||||
let max_param = &mut max_param;
|
||||
match max_param {
|
||||
Some(ParamKindOrd::Const) if ParamKindOrd::Type == kind => (),
|
||||
Some(max_param) if *max_param > kind => {
|
||||
let entry = out_of_order.entry(kind).or_insert((*max_param, vec![]));
|
||||
entry.1.push(span);
|
||||
|
Loading…
x
Reference in New Issue
Block a user