Revert "Remove #[alloc_error_handler] from the compiler and library"
This reverts commit abc0660118
.
This commit is contained in:
parent
33253fa6a4
commit
f54dbe6e31
49 changed files with 842 additions and 22 deletions
|
@ -19,6 +19,13 @@ pub(crate) struct OneCfgPattern {
|
|||
pub(crate) span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(builtin_macros_alloc_error_must_be_fn)]
|
||||
pub(crate) struct AllocErrorMustBeFn {
|
||||
#[primary_span]
|
||||
pub(crate) span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(builtin_macros_assert_requires_boolean)]
|
||||
pub(crate) struct AssertRequiresBoolean {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue