We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9c2177 commit 58b1a04Copy full SHA for 58b1a04
src/librustc_ast_passes/ast_validation.rs
@@ -735,6 +735,7 @@ fn validate_generic_param_order<'a>(
735
}
736
let max_param = &mut max_param;
737
match max_param {
738
+ Some(ParamKindOrd::Const) if ParamKindOrd::Type == kind => (),
739
Some(max_param) if *max_param > kind => {
740
let entry = out_of_order.entry(kind).or_insert((*max_param, vec![]));
741
entry.1.push(span);
0 commit comments