about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorwoppopo <woppopo@protonmail.com>2022-01-04 01:37:53 +0900
committerwoppopo <woppopo@protonmail.com>2022-01-04 01:37:53 +0900
commit51e4291f2b3c63e62a61855d162c7dd700fcb44b (patch)
treeb9f5dc2d561372719a775cb5116a417afc85410f /library/alloc
parentc9d2d3cc6642de70b35139dae4dd76b893a46f6b (diff)
downloadrust-51e4291f2b3c63e62a61855d162c7dd700fcb44b.tar.gz
rust-51e4291f2b3c63e62a61855d162c7dd700fcb44b.zip
Fix a compile error when no_global_oom_handling
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs
index dcff4e593af..7e663fab16a 100644
--- a/library/alloc/src/lib.rs
+++ b/library/alloc/src/lib.rs
@@ -96,7 +96,7 @@
 #![feature(array_windows)]
 #![feature(async_stream)]
 #![feature(coerce_unsized)]
-#![feature(const_alloc_error)]
+#![cfg_attr(not(no_global_oom_handling), feature(const_alloc_error))]
 #![feature(const_box)]
 #![cfg_attr(not(no_global_oom_handling), feature(const_btree_new))]
 #![feature(const_cow_is_borrowed)]