]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_monomorphize/src/errors.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / compiler / rustc_monomorphize / src / errors.rs
index ce097b8d846aa3f41db29948e674683ba1f130a0..f1ca72de8dbe47d934cc8b8c197c5ed4b4d11ff7 100644 (file)
@@ -32,12 +32,6 @@ pub struct TypeLengthLimit {
     pub type_length: usize,
 }
 
-#[derive(Diagnostic)]
-#[diag(monomorphize_requires_lang_item)]
-pub struct RequiresLangItem {
-    pub lang_item: String,
-}
-
 pub struct UnusedGenericParams {
     pub span: Span,
     pub param_spans: Vec<Span>,
@@ -45,6 +39,7 @@ pub struct UnusedGenericParams {
 }
 
 impl IntoDiagnostic<'_> for UnusedGenericParams {
+    #[track_caller]
     fn into_diagnostic(
         self,
         handler: &'_ rustc_errors::Handler,