Skip to content

Commit 6c32a64

Browse files
committed
std: enable feature(slice_ptr_len) on xous
Xous passes slice pointers around in order to manipulate memory. This is feature-gated behind `slice_ptr_len`. Xous is currently the only target to use this feature, so gate it behind an OS flag. Signed-off-by: Sean Cross <[email protected]>
1 parent 00280c8 commit 6c32a64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
feature(slice_index_methods, coerce_unsized, sgx_platform)
237237
)]
238238
#![cfg_attr(windows, feature(round_char_boundary))]
239+
#![cfg_attr(target_os = "xous", feature(slice_ptr_len))]
239240
//
240241
// Language features:
241242
// tidy-alphabetical-start

0 commit comments

Comments
 (0)