Skip to content

Commit 560d445

Browse files
finalchildRanolP
andcommitted
Fix rebase
Co-authored-by: RanolP <public.ranolp@gmail.com>
1 parent baab6c1 commit 560d445

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

compiler/rustc_error_messages/locales/en-US/ast_passes.ftl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,9 @@ ast_passes_deprecated_extern_missing_abi =
219219
ast_passes_generic_param_wrong_order =
220220
{ $param_kind ->
221221
[lifetime] lifetime
222-
[type] type
223-
*[const] const
222+
*[type_or_const] type and const
224223
} parameters must be declared prior to { $max_param_kind ->
225224
[lifetime] lifetime
226-
[type] type
227-
*[const] const
225+
*[type_or_const] type and const
228226
} parameters
229227
.suggestion = reorder the parameters: lifetimes, then consts and types

compiler/rustc_errors/src/diagnostic_impls.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,7 @@ impl IntoDiagnosticArg for ast::ParamKindOrd {
151151
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> {
152152
DiagnosticArgValue::Str(Cow::Borrowed(match self {
153153
ast::ParamKindOrd::Lifetime => "lifetime",
154-
ast::ParamKindOrd::Type => "type",
155-
ast::ParamKindOrd::Const => "const",
156-
ast::ParamKindOrd::Infer => "infer",
154+
ast::ParamKindOrd::TypeOrConst => "type_or_const",
157155
}))
158156
}
159157
}

0 commit comments

Comments
 (0)