Migrate weak_lang_items.rs
This commit is contained in:
parent
bde80f745b
commit
2f74d1d14f
3 changed files with 31 additions and 10 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue