about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2023-08-16 09:58:51 +0200
committerSean Cross <sean@xobs.io>2023-08-22 20:25:39 +0800
commit6c32a64962f591e6fd4cab72f63555b157684323 (patch)
tree903299485a09724ddd71ad4d5e28038c03677c53 /library/std/src
parent00280c8972150d6d4ee27926dfbe5b39bbf11fc3 (diff)
downloadrust-6c32a64962f591e6fd4cab72f63555b157684323.tar.gz
rust-6c32a64962f591e6fd4cab72f63555b157684323.zip
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 <sean@xobs.io>
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index 58684ffe500..4d4aeff2a97 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -236,6 +236,7 @@
     feature(slice_index_methods, coerce_unsized, sgx_platform)
 )]
 #![cfg_attr(windows, feature(round_char_boundary))]
+#![cfg_attr(target_os = "xous", feature(slice_ptr_len))]
 //
 // Language features:
 // tidy-alphabetical-start