Skip to content

Commit 0243f5c

Browse files
committed
Fix build under --cfg no_global_oom_handling
1 parent 29b5877 commit 0243f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
// Library features:
9393
// tidy-alphabetical-start
9494
#![cfg_attr(bootstrap, feature(async_closure))]
95+
#![cfg_attr(not(no_global_oom_handling), feature(string_replace_in_place))]
9596
#![cfg_attr(test, feature(str_as_str))]
9697
#![feature(alloc_layout_extra)]
9798
#![feature(allocator_api)]
@@ -143,7 +144,6 @@
143144
#![feature(slice_range)]
144145
#![feature(std_internals)]
145146
#![feature(str_internals)]
146-
#![feature(string_replace_in_place)]
147147
#![feature(trusted_fused)]
148148
#![feature(trusted_len)]
149149
#![feature(trusted_random_access)]

0 commit comments

Comments
 (0)