diff options
| author | Michael Goulet <michael@errs.io> | 2025-03-09 06:00:54 +0000 | 
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-03-12 16:56:26 +0000 | 
| commit | 42773bfcac71decb4058ca1c3b4eff816235549f (patch) | |
| tree | ffdad54c0f7402681fec3c155a49a74164768877 /compiler/rustc_resolve/src/errors.rs | |
| parent | 0998d4095b0f11061f78a3f9c77a87838a4c1cb7 (diff) | |
| download | rust-42773bfcac71decb4058ca1c3b4eff816235549f.tar.gz rust-42773bfcac71decb4058ca1c3b4eff816235549f.zip | |
Disentangle ForwardGenericParamBan and ConstParamTy ribs
Diffstat (limited to 'compiler/rustc_resolve/src/errors.rs')
| -rw-r--r-- | compiler/rustc_resolve/src/errors.rs | 18 | 
1 files changed, 17 insertions, 1 deletions
| diff --git a/compiler/rustc_resolve/src/errors.rs b/compiler/rustc_resolve/src/errors.rs index b5d3e5ea776..2ae6892bc93 100644 --- a/compiler/rustc_resolve/src/errors.rs +++ b/compiler/rustc_resolve/src/errors.rs @@ -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, } | 
