1
Fork 0

Remove a use of StructuredDiag, which is incompatible with automatic error tainting and error translations

This commit is contained in:
Oli Scherer 2024-07-04 12:20:51 +00:00
parent 486bc278ab
commit 0d54fe0d02
9 changed files with 43 additions and 78 deletions

View file

@ -707,15 +707,6 @@ pub(crate) struct PassToVariadicFunction<'tcx, 'a> {
pub help: Option<()>,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_cast_thin_pointer_to_fat_pointer, code = E0607)]
pub(crate) struct CastThinPointerToFatPointer<'tcx> {
#[primary_span]
pub span: Span,
pub expr_ty: Ty<'tcx>,
pub cast_ty: String,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_invalid_union_field, code = E0740)]
pub(crate) struct InvalidUnionField {