Skip to content

Commit fb12669

Browse files
committed
Fix a compile error when no_global_oom_handling
1 parent d9c7cac commit fb12669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alloc/src/lib.rs

Lines changed: 1 addition & 1 deletion
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)