File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ impl<'a> Resolver<'a> {
442442 ) ;
443443 err
444444 }
445- ResolutionError :: ParamInTyOfConstArg ( name) => {
445+ ResolutionError :: ParamInTyOfConstParam ( name) => {
446446 let mut err = struct_span_err ! (
447447 self . session,
448448 span,
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ enum ResolutionError<'a> {
215215 /// Error E0128: type parameters with a default cannot use forward-declared identifiers.
216216 ForwardDeclaredTyParam , // FIXME(const_generics:defaults)
217217 /// ERROR E0770: the type of const parameters must not depend on other generic parameters.
218- ParamInTyOfConstArg ( Symbol ) ,
218+ ParamInTyOfConstParam ( Symbol ) ,
219219 /// Error E0735: type parameters with a default cannot use `Self`
220220 SelfInTyParamDefault ,
221221 /// Error E0767: use of unreachable label
@@ -2514,7 +2514,7 @@ impl<'a> Resolver<'a> {
25142514 }
25152515 ConstParamTyRibKind => {
25162516 if record_used {
2517- self . report_error ( span, ParamInTyOfConstArg ( rib_ident. name ) ) ;
2517+ self . report_error ( span, ParamInTyOfConstParam ( rib_ident. name ) ) ;
25182518 }
25192519 return Res :: Err ;
25202520 }
@@ -2545,7 +2545,7 @@ impl<'a> Resolver<'a> {
25452545 if record_used {
25462546 self . report_error (
25472547 span,
2548- ResolutionError :: ParamInTyOfConstArg ( rib_ident. name ) ,
2548+ ResolutionError :: ParamInTyOfConstParam ( rib_ident. name ) ,
25492549 ) ;
25502550 }
25512551 return Res :: Err ;
@@ -2587,7 +2587,7 @@ impl<'a> Resolver<'a> {
25872587 if record_used {
25882588 self . report_error (
25892589 span,
2590- ResolutionError :: ParamInTyOfConstArg ( rib_ident. name ) ,
2590+ ResolutionError :: ParamInTyOfConstParam ( rib_ident. name ) ,
25912591 ) ;
25922592 }
25932593 return Res :: Err ;
You can’t perform that action at this time.
0 commit comments