Skip to content

Commit 319c4f4

Browse files
committed
Blessed old test where error message had changed
Added minor fmt change to ast_validation
1 parent b8352eb commit 319c4f4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/librustc_ast_passes/ast_validation.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -736,10 +736,7 @@ fn validate_generic_param_order<'a>(
736736
let max_param = &mut max_param;
737737
match max_param {
738738
Some(ParamKindOrd::Const)
739-
if ParamKindOrd::Type == kind && sess.features_untracked().const_generics =>
740-
{
741-
()
742-
}
739+
if ParamKindOrd::Type == kind && sess.features_untracked().const_generics => {}
743740
Some(max_param) if *max_param > kind => {
744741
let entry = out_of_order.entry(kind).or_insert((*max_param, vec![]));
745742
entry.1.push(span);

src/test/ui/issues/issue-59508-1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: lifetime parameters must be declared prior to type parameters
22
--> $DIR/issue-59508-1.rs:12:25
33
|
44
LL | pub fn do_things<T, 'a, 'b: 'a>() {
5-
| ----^^--^^----- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b: 'a, T>`
5+
| ----^^--^^----- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b: 'a, T>`
66

77
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
88
--> $DIR/issue-59508-1.rs:2:12

0 commit comments

Comments
 (0)