name ParamInTyOfConstArg
This commit is contained in:
parent
52d2c7ac94
commit
cb19cdb711
@ -442,7 +442,7 @@ impl<'a> Resolver<'a> {
|
|||||||
);
|
);
|
||||||
err
|
err
|
||||||
}
|
}
|
||||||
ResolutionError::ParamInTyOfConstArg(name) => {
|
ResolutionError::ParamInTyOfConstParam(name) => {
|
||||||
let mut err = struct_span_err!(
|
let mut err = struct_span_err!(
|
||||||
self.session,
|
self.session,
|
||||||
span,
|
span,
|
||||||
|
@ -215,7 +215,7 @@ enum ResolutionError<'a> {
|
|||||||
/// Error E0128: type parameters with a default cannot use forward-declared identifiers.
|
/// Error E0128: type parameters with a default cannot use forward-declared identifiers.
|
||||||
ForwardDeclaredTyParam, // FIXME(const_generics:defaults)
|
ForwardDeclaredTyParam, // FIXME(const_generics:defaults)
|
||||||
/// ERROR E0770: the type of const parameters must not depend on other generic parameters.
|
/// 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`
|
/// Error E0735: type parameters with a default cannot use `Self`
|
||||||
SelfInTyParamDefault,
|
SelfInTyParamDefault,
|
||||||
/// Error E0767: use of unreachable label
|
/// Error E0767: use of unreachable label
|
||||||
@ -2514,7 +2514,7 @@ impl<'a> Resolver<'a> {
|
|||||||
}
|
}
|
||||||
ConstParamTyRibKind => {
|
ConstParamTyRibKind => {
|
||||||
if record_used {
|
if record_used {
|
||||||
self.report_error(span, ParamInTyOfConstArg(rib_ident.name));
|
self.report_error(span, ParamInTyOfConstParam(rib_ident.name));
|
||||||
}
|
}
|
||||||
return Res::Err;
|
return Res::Err;
|
||||||
}
|
}
|
||||||
@ -2545,7 +2545,7 @@ impl<'a> Resolver<'a> {
|
|||||||
if record_used {
|
if record_used {
|
||||||
self.report_error(
|
self.report_error(
|
||||||
span,
|
span,
|
||||||
ResolutionError::ParamInTyOfConstArg(rib_ident.name),
|
ResolutionError::ParamInTyOfConstParam(rib_ident.name),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return Res::Err;
|
return Res::Err;
|
||||||
@ -2587,7 +2587,7 @@ impl<'a> Resolver<'a> {
|
|||||||
if record_used {
|
if record_used {
|
||||||
self.report_error(
|
self.report_error(
|
||||||
span,
|
span,
|
||||||
ResolutionError::ParamInTyOfConstArg(rib_ident.name),
|
ResolutionError::ParamInTyOfConstParam(rib_ident.name),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return Res::Err;
|
return Res::Err;
|
||||||
|
Loading…
Reference in New Issue
Block a user