1
Fork 0

Migrate weak_lang_items.rs

This commit is contained in:
rdvdev2 2022-08-22 10:05:13 +02:00 committed by Nathan Stocks
parent bde80f745b
commit 2f74d1d14f
3 changed files with 31 additions and 10 deletions

View file

@ -665,3 +665,20 @@ pub struct DeprecatedAnnotationHasNoEffect {
#[suggestion(applicability = "machine-applicable", code = "")]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(passes::missing_panic_handler)]
pub struct MissingPanicHandler;
#[derive(Diagnostic)]
#[diag(passes::missing_alloc_error_handler)]
#[note]
pub struct MissingAllocErrorHandler;
#[derive(Diagnostic)]
#[diag(passes::missing_lang_item)]
#[note]
#[help]
pub struct MissingLangItem {
pub name: Symbol,
}