Blessed old test where error message had changed

Added minor fmt change to ast_validation
This commit is contained in:
kadmin 2020-07-30 22:11:54 +00:00
parent b8352eb2d1
commit 319c4f45e0
2 changed files with 2 additions and 5 deletions

View file

@ -736,10 +736,7 @@ fn validate_generic_param_order<'a>(
let max_param = &mut max_param;
match max_param {
Some(ParamKindOrd::Const)
if ParamKindOrd::Type == kind && sess.features_untracked().const_generics =>
{
()
}
if ParamKindOrd::Type == kind && sess.features_untracked().const_generics => {}
Some(max_param) if *max_param > kind => {
let entry = out_of_order.entry(kind).or_insert((*max_param, vec![]));
entry.1.push(span);

View file

@ -2,7 +2,7 @@ error: lifetime parameters must be declared prior to type parameters
--> $DIR/issue-59508-1.rs:12:25
|
LL | pub fn do_things<T, 'a, 'b: 'a>() {
| ----^^--^^----- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b: 'a, T>`
| ----^^--^^----- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b: 'a, T>`
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/issue-59508-1.rs:2:12