1
Fork 0

move repr(transparent) checks to coherence

This commit is contained in:
Ding Xiang Fei 2025-01-29 06:48:28 +08:00
parent c067324637
commit b9435056a7
No known key found for this signature in database
GPG key ID: 3CD748647EEF6359
6 changed files with 19 additions and 19 deletions

View file

@ -1209,6 +1209,13 @@ pub(crate) struct CoercePointeeNotTransparent {
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_coerce_pointee_no_field, code = E0802)]
pub(crate) struct CoercePointeeNoField {
#[primary_span]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_inherent_ty_outside_relevant, code = E0390)]
#[help]