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>,
}
impl IntoDiagnostic<'_> for UnusedGenericParams {
+ #[track_caller]
fn into_diagnostic(
self,
handler: &'_ rustc_errors::Handler,