Disentangle ForwardGenericParamBan and ConstParamTy ribs
This commit is contained in:
parent
0998d4095b
commit
42773bfcac
29 changed files with 196 additions and 114 deletions
|
@ -338,6 +338,16 @@ pub(crate) struct ForwardDeclaredGenericParam {
|
|||
#[primary_span]
|
||||
#[label]
|
||||
pub(crate) span: Span,
|
||||
pub(crate) param: Symbol,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(resolve_forward_declared_generic_in_const_param_ty)]
|
||||
pub(crate) struct ForwardDeclaredGenericInConstParamTy {
|
||||
#[primary_span]
|
||||
#[label]
|
||||
pub(crate) span: Span,
|
||||
pub(crate) param: Symbol,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
|
@ -353,7 +363,13 @@ pub(crate) struct ParamInTyOfConstParam {
|
|||
#[diag(resolve_self_in_generic_param_default, code = E0735)]
|
||||
pub(crate) struct SelfInGenericParamDefault {
|
||||
#[primary_span]
|
||||
#[label]
|
||||
pub(crate) span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(resolve_self_in_const_generic_ty)]
|
||||
pub(crate) struct SelfInConstGenericTy {
|
||||
#[primary_span]
|
||||
pub(crate) span: Span,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue