File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
rustc_error_messages/locales/en-US Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -219,11 +219,9 @@ ast_passes_deprecated_extern_missing_abi =
219
219
ast_passes_generic_param_wrong_order =
220
220
{ $param_kind ->
221
221
[ lifetime ] lifetime
222
- [ type ] type
223
- *[ const ] const
222
+ *[ type_or_const ] type and const
224
223
} parameters must be declared prior to { $max_param_kind ->
225
224
[ lifetime ] lifetime
226
- [ type ] type
227
- *[ const ] const
225
+ *[ type_or_const ] type and const
228
226
} parameters
229
227
.suggestion = reorder the parameters: lifetimes, then consts and types
Original file line number Diff line number Diff line change @@ -151,9 +151,7 @@ impl IntoDiagnosticArg for ast::ParamKindOrd {
151
151
fn into_diagnostic_arg ( self ) -> DiagnosticArgValue < ' static > {
152
152
DiagnosticArgValue :: Str ( Cow :: Borrowed ( match self {
153
153
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" ,
157
155
} ) )
158
156
}
159
157
}
You can’t perform that action at this time.
0 commit comments