Revert "Remove #[alloc_error_handler] from the compiler and library"

This reverts commit abc0660118cc95f47445fd33502a11dd448f5968.
This commit is contained in:
Matthias Krüger 2023-04-25 00:08:35 +02:00
parent 6d14583d2d
commit 6bd8fee558

View file

@ -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),