We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2ea2b4 commit c478f72Copy full SHA for c478f72
src/riscv64.rs
@@ -26,7 +26,7 @@ const fn exit_code_encode(code: u32) -> u32 {
26
27
impl RISCV64 {
28
/// Create an instance.
29
- pub const fn new(addr: u64) -> Self {
+ pub const unsafe fn new(addr: u64) -> Self {
30
RISCV64 { addr }
31
}
32
src/x86.rs
@@ -33,7 +33,7 @@ fn outl(io_base: u16, code: u32) {
33
34
impl X86 {
35
36
- pub const fn new(io_base: u16, custom_exit_success: u32) -> Self {
+ pub const unsafe fn new(io_base: u16, custom_exit_success: u32) -> Self {
37
assert!((custom_exit_success & 1) == 1);
38
39
X86 {
0 commit comments