diff options
| author | est31 <MTest31@outlook.com> | 2024-08-28 00:00:08 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2024-10-05 04:29:46 +0200 |
| commit | 00ed47b8496bacb9da0196127508e07ba5d14bb4 (patch) | |
| tree | 477b4645e08fa330958ec018e0340b92cd45ebe1 /compiler/rustc_expand/src/errors.rs | |
| parent | 4428a051679ec6194a118424f4616d922249a1e6 (diff) | |
| download | rust-00ed47b8496bacb9da0196127508e07ba5d14bb4.tar.gz rust-00ed47b8496bacb9da0196127508e07ba5d14bb4.zip | |
Make deprecated_cfg_attr_crate_type_name a hard error
Diffstat (limited to 'compiler/rustc_expand/src/errors.rs')
| -rw-r--r-- | compiler/rustc_expand/src/errors.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/compiler/rustc_expand/src/errors.rs b/compiler/rustc_expand/src/errors.rs index 0fdccb08918..5682c574552 100644 --- a/compiler/rustc_expand/src/errors.rs +++ b/compiler/rustc_expand/src/errors.rs @@ -468,6 +468,20 @@ pub(crate) struct GlobDelegationOutsideImpls { } #[derive(Diagnostic)] +#[diag(expand_crate_name_in_cfg_attr)] +pub(crate) struct CrateNameInCfgAttr { + #[primary_span] + pub span: Span, +} + +#[derive(Diagnostic)] +#[diag(expand_crate_type_in_cfg_attr)] +pub(crate) struct CrateTypeInCfgAttr { + #[primary_span] + pub span: Span, +} + +#[derive(Diagnostic)] #[diag(expand_glob_delegation_traitless_qpath)] pub(crate) struct GlobDelegationTraitlessQpath { #[primary_span] |
