1
Fork 0

add rustc_abi debugging attribute

This commit is contained in:
Ralf Jung 2023-08-25 23:01:06 +02:00
parent b60f7b51a2
commit abe2148aee
12 changed files with 422 additions and 29 deletions

View file

@ -913,6 +913,15 @@ pub struct LayoutOf {
pub ty_layout: String,
}
#[derive(Diagnostic)]
#[diag(passes_abi_of)]
pub struct AbiOf {
#[primary_span]
pub span: Span,
pub fn_name: Symbol,
pub fn_abi: String,
}
#[derive(Diagnostic)]
#[diag(passes_unrecognized_field)]
pub struct UnrecognizedField {