Skip to content

Commit 51e4291

Browse files
committed
Fix a compile error when no_global_oom_handling
1 parent c9d2d3c commit 51e4291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/alloc/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
#![feature(array_windows)]
9797
#![feature(async_stream)]
9898
#![feature(coerce_unsized)]
99-
#![feature(const_alloc_error)]
99+
#![cfg_attr(not(no_global_oom_handling), feature(const_alloc_error))]
100100
#![feature(const_box)]
101101
#![cfg_attr(not(no_global_oom_handling), feature(const_btree_new))]
102102
#![feature(const_cow_is_borrowed)]

0 commit comments

Comments
 (0)