diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-03-15 14:21:03 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-06-14 19:27:51 +0300 |
| commit | 22d0b1ee18520ba32d3bc41ad3e85d91a5c73c24 (patch) | |
| tree | 7d0897714c68d8a45cdcd26a8d315e253fb55a0f /compiler/rustc_expand/src/errors.rs | |
| parent | 7ac6c2fc685681824fbfc156b38035df743881dd (diff) | |
| download | rust-22d0b1ee18520ba32d3bc41ad3e85d91a5c73c24.tar.gz rust-22d0b1ee18520ba32d3bc41ad3e85d91a5c73c24.zip | |
delegation: Implement glob delegation
Diffstat (limited to 'compiler/rustc_expand/src/errors.rs')
| -rw-r--r-- | compiler/rustc_expand/src/errors.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/compiler/rustc_expand/src/errors.rs b/compiler/rustc_expand/src/errors.rs index 3f8b4661e5f..c883121fb40 100644 --- a/compiler/rustc_expand/src/errors.rs +++ b/compiler/rustc_expand/src/errors.rs @@ -435,8 +435,16 @@ pub struct ExpectedParenOrBrace<'a> { } #[derive(Diagnostic)] -#[diag(expand_empty_delegation_list)] -pub(crate) struct EmptyDelegationList { +#[diag(expand_empty_delegation_mac)] +pub(crate) struct EmptyDelegationMac { + #[primary_span] + pub span: Span, + pub kind: String, +} + +#[derive(Diagnostic)] +#[diag(expand_glob_delegation_outside_impls)] +pub(crate) struct GlobDelegationOutsideImpls { #[primary_span] pub span: Span, } |
