diff options
| -rw-r--r-- | src/librustc_resolve/diagnostics.rs | 2 | ||||
| -rw-r--r-- | src/librustc_resolve/lib.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc_resolve/diagnostics.rs b/src/librustc_resolve/diagnostics.rs index a7a005bdeb9..c512703b3c6 100644 --- a/src/librustc_resolve/diagnostics.rs +++ b/src/librustc_resolve/diagnostics.rs @@ -442,7 +442,7 @@ impl<'a> Resolver<'a> { ); err } - ResolutionError::ParamInTyOfConstArg(name) => { + ResolutionError::ParamInTyOfConstParam(name) => { let mut err = struct_span_err!( self.session, span, diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index dfc50a30c12..3b049c6bb4a 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -215,7 +215,7 @@ enum ResolutionError<'a> { /// Error E0128: type parameters with a default cannot use forward-declared identifiers. ForwardDeclaredTyParam, // FIXME(const_generics:defaults) /// ERROR E0770: the type of const parameters must not depend on other generic parameters. - ParamInTyOfConstArg(Symbol), + ParamInTyOfConstParam(Symbol), /// Error E0735: type parameters with a default cannot use `Self` SelfInTyParamDefault, /// Error E0767: use of unreachable label @@ -2514,7 +2514,7 @@ impl<'a> Resolver<'a> { } ConstParamTyRibKind => { if record_used { - self.report_error(span, ParamInTyOfConstArg(rib_ident.name)); + self.report_error(span, ParamInTyOfConstParam(rib_ident.name)); } return Res::Err; } @@ -2545,7 +2545,7 @@ impl<'a> Resolver<'a> { if record_used { self.report_error( span, - ResolutionError::ParamInTyOfConstArg(rib_ident.name), + ResolutionError::ParamInTyOfConstParam(rib_ident.name), ); } return Res::Err; @@ -2587,7 +2587,7 @@ impl<'a> Resolver<'a> { if record_used { self.report_error( span, - ResolutionError::ParamInTyOfConstArg(rib_ident.name), + ResolutionError::ParamInTyOfConstParam(rib_ident.name), ); } return Res::Err; |
