about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-04-25 00:08:35 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2023-04-25 00:08:35 +0200
commit6bd8fee5585fb5026bfe472d559ed9ebff4c558a (patch)
tree423cd2b2d0837bded8da014c316b66ebf61cb9cd
parent6d14583d2d6cc0f9796ac7236f79fcec8cd828bb (diff)
downloadrust-6bd8fee5585fb5026bfe472d559ed9ebff4c558a.tar.gz
rust-6bd8fee5585fb5026bfe472d559ed9ebff4c558a.zip
Revert "Remove #[alloc_error_handler] from the compiler and library"
This reverts commit abc0660118cc95f47445fd33502a11dd448f5968.
-rw-r--r--crates/hir-def/src/builtin_attr.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/hir-def/src/builtin_attr.rs b/crates/hir-def/src/builtin_attr.rs
index e3e5fac98c0..f7c1e683d0d 100644
--- a/crates/hir-def/src/builtin_attr.rs
+++ b/crates/hir-def/src/builtin_attr.rs
@@ -382,6 +382,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),
     ),