Skip to content
/ rust Public
forked from rust-lang/rust

Commit

Permalink
library: xous: mark alloc as FIXME(static_mut_refs)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
xobs committed Oct 13, 2024
1 parent 4c23cdf commit 99de67a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/std/src/sys/alloc/xous.rs
Original file line number Diff line number Diff line change
@@ -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))]
Expand Down

0 comments on commit 99de67a

Please sign in to comment.