Skip to content

Commit 976a35e

Browse files
committed
fix allocation
1 parent e2fc6dc commit 976a35e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

library/std/src/sys/alloc/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,7 @@ cfg_if::cfg_if! {
9090
mod xous;
9191
} else if #[cfg(target_os = "zkvm")] {
9292
mod zkvm;
93+
} else if #[cfg(target_os = "vexos")] {
94+
mod vexos;
9395
}
9496
}

library/std/src/sys/pal/vexos/alloc.rs renamed to library/std/src/sys/alloc/vexos.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// FIXME(static_mut_refs): Do not allow `static_mut_refs` lint
2+
#![allow(static_mut_refs)]
3+
14
use crate::alloc::{GlobalAlloc, Layout, System};
25
use crate::ptr;
36
use crate::sync::atomic::{AtomicBool, Ordering};

0 commit comments

Comments
 (0)