name `ParamInTyOfConstArg`

This commit is contained in:
Bastian Kauschke 2020-07-18 22:35:50 +02:00
parent 52d2c7ac94
commit cb19cdb711
2 changed files with 5 additions and 5 deletions

View File

@ -442,7 +442,7 @@ impl<'a> Resolver<'a> {
);
err
}
ResolutionError::ParamInTyOfConstArg(name) => {
ResolutionError::ParamInTyOfConstParam(name) => {
let mut err = struct_span_err!(
self.session,
span,

View File

@ -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;