Skip to content

Commit

Permalink
Revert "Remove #[alloc_error_handler] from the compiler and library"
Browse files Browse the repository at this point in the history
This reverts commit abc0660118cc95f47445fd33502a11dd448f5968.
  • Loading branch information
matthiaskrgr committed Apr 24, 2023
1 parent 8c3a21b commit c6579f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/hir-def/src/builtin_attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[

rustc_attr!(rustc_allocator, Normal, template!(Word), WarnFollowing, IMPL_DETAIL),
rustc_attr!(rustc_nounwind, Normal, template!(Word), WarnFollowing, IMPL_DETAIL),
gated!(
alloc_error_handler, Normal, template!(Word), WarnFollowing,
experimental!(alloc_error_handler)
),
gated!(
default_lib_allocator, Normal, template!(Word), WarnFollowing, allocator_internals,
experimental!(default_lib_allocator),
Expand Down

0 comments on commit c6579f9

Please sign in to comment.