diff options
| author | woppopo <woppopo@protonmail.com> | 2022-01-04 01:37:53 +0900 |
|---|---|---|
| committer | woppopo <woppopo@protonmail.com> | 2022-01-04 01:37:53 +0900 |
| commit | 51e4291f2b3c63e62a61855d162c7dd700fcb44b (patch) | |
| tree | b9f5dc2d561372719a775cb5116a417afc85410f /library/alloc | |
| parent | c9d2d3cc6642de70b35139dae4dd76b893a46f6b (diff) | |
| download | rust-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.rs | 2 |
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)] |
