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 =
219219ast_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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments