about summary refs log tree commit diff
path: root/library/std/src/sys/alloc
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2024-10-13 21:52:06 +0800
committerSean Cross <sean@xobs.io>2024-10-13 22:24:51 +0800
commit99de67af35b90b3e1a90849ec8bc6e92e0b73370 (patch)
tree68416666193f5ea686076f6a785bc7de3b12953b /library/std/src/sys/alloc
parent4c23cdf7415c0f81b17dd534b59ecc3f7cd5db15 (diff)
downloadrust-99de67af35b90b3e1a90849ec8bc6e92e0b73370.tar.gz
rust-99de67af35b90b3e1a90849ec8bc6e92e0b73370.zip
library: xous: mark alloc as `FIXME(static_mut_refs)`
The allocator on Xous is now throwing warnings because the allocator
needs to be mutable, and allocators hand out mutable pointers, which
the `static_mut_refs` lint now catches.

Give the same treatment to Xous as wasm, at least until a solution is
devised for fixing the warning on wasm.

Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'library/std/src/sys/alloc')
-rw-r--r--library/std/src/sys/alloc/xous.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/sys/alloc/xous.rs b/library/std/src/sys/alloc/xous.rs
index 9ea43445d02..321d30e0b11 100644
--- a/library/std/src/sys/alloc/xous.rs
+++ b/library/std/src/sys/alloc/xous.rs
@@ -1,3 +1,6 @@
+// FIXME(static_mut_refs): Do not allow `static_mut_refs` lint
+#![allow(static_mut_refs)]
+
 use crate::alloc::{GlobalAlloc, Layout, System};
 
 #[cfg(not(test))]