mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 05:53:10 +00:00
Blessed old test where error message had changed
Added minor fmt change to ast_validation
This commit is contained in:
parent
b8352eb2d1
commit
319c4f45e0
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user