about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-02-25 15:23:37 +0000
committerbors <bors@rust-lang.org>2025-02-25 15:23:37 +0000
commit4ecd70ddd1039a3954056c1071e40278048476fa (patch)
treef518ec6154dbe5cae2fb80011d47714c437b63c1 /compiler/rustc_hir_analysis/src/errors.rs
parentc51b9b6d5234aa8e50c3b87784113a1af1af47cb (diff)
parentfb9ae4c018c08ff75fe2f8f4f3832a4995bfd375 (diff)
downloadrust-4ecd70ddd1039a3954056c1071e40278048476fa.tar.gz
rust-4ecd70ddd1039a3954056c1071e40278048476fa.zip
Auto merge of #137611 - fmease:rollup-ln673ux, r=fmease
Rollup of 6 pull requests

Successful merges:

 - #135480 (Don't require method impls for methods with `Self:Sized` bounds for impls for unsized types)
 - #137360 (Use `as_chunks` in `analyze_source_file_sse2`)
 - #137460 (downgrade bootstrap `cc`)
 - #137515 (Update `compiler-builtins` to 0.1.148)
 - #137522 (use stage 2 on cargo and clippy tests when possible)
 - #137597 (Revert accidental cargo submodule update)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/errors.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors.rs b/compiler/rustc_hir_analysis/src/errors.rs
index 99262f9871e..852533ff5c9 100644
--- a/compiler/rustc_hir_analysis/src/errors.rs
+++ b/compiler/rustc_hir_analysis/src/errors.rs
@@ -908,6 +908,10 @@ pub(crate) enum ImplNotMarkedDefault {
     },
 }
 
+#[derive(LintDiagnostic)]
+#[diag(hir_analysis_useless_impl_item)]
+pub(crate) struct UselessImplItem;
+
 #[derive(Diagnostic)]
 #[diag(hir_analysis_missing_trait_item, code = E0046)]
 pub(crate) struct MissingTraitItem {