diff options
| author | bors <bors@rust-lang.org> | 2022-11-21 18:36:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-11-21 18:36:26 +0000 |
| commit | b7bc90fea3b441234a84b49fdafeb75815eebbab (patch) | |
| tree | aba475763a52ff6fcad1c617234288ac9880b8e3 /compiler/rustc_middle/src/error.rs | |
| parent | 1cbc45942d5c0f6eb5d94e3b10762ba541958035 (diff) | |
| parent | f47abd89877b7cfa84e28465aaf647cd48bbc503 (diff) | |
Auto merge of #104120 - mejrs:diag, r=davidtwco
Match and enforce crate and slug names Some of these were in the wrong place or had a name that didn't match.
Diffstat (limited to 'compiler/rustc_middle/src/error.rs')
| -rw-r--r-- | compiler/rustc_middle/src/error.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/error.rs b/compiler/rustc_middle/src/error.rs index 43903e6739f..5e94da8cb4d 100644 --- a/compiler/rustc_middle/src/error.rs +++ b/compiler/rustc_middle/src/error.rs @@ -64,3 +64,11 @@ pub(crate) struct StrictCoherenceNeedsNegativeCoherence { #[label] pub attr_span: Option<Span>, } + +#[derive(Diagnostic)] +#[diag(middle_const_not_used_in_type_alias)] +pub(super) struct ConstNotUsedTraitAlias { + pub ct: String, + #[primary_span] + pub span: Span, +} |
