Skip to content

Commit a6ae587

Browse files
committed
transpile: tests: snapshots: fix vm_x86.c snapshot test
CI on this ran before #1339 merged
1 parent 755d0eb commit a6ae587

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

c2rust-transpile/tests/snapshots/snapshots__transpile-aarch64@vm_x86.c.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ input_file: c2rust-transpile/tests/snapshots/arch-specific/vm_x86.c
55
---
66
#![allow(
77
dead_code,
8-
mutable_transmutes,
98
non_camel_case_types,
109
non_snake_case,
1110
non_upper_case_globals,
@@ -22,7 +21,7 @@ pub struct vm_t {
2221
pub instructionPointers: *mut std::ffi::c_ulong,
2322
}
2423
pub type byte = std::ffi::c_uchar;
25-
pub const MAX_VMMAIN_ARGS: std::ffi::c_int = unsafe { 50 as std::ffi::c_int };
24+
pub const MAX_VMMAIN_ARGS: std::ffi::c_int = 50 as std::ffi::c_int;
2625
#[no_mangle]
2726
pub unsafe extern "C" fn VM_CallCompiled(
2827
mut vm: *mut vm_t,

c2rust-transpile/tests/snapshots/snapshots__transpile-x86_64@vm_x86.c.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ input_file: c2rust-transpile/tests/snapshots/arch-specific/vm_x86.c
55
---
66
#![allow(
77
dead_code,
8-
mutable_transmutes,
98
non_camel_case_types,
109
non_snake_case,
1110
non_upper_case_globals,
@@ -24,7 +23,7 @@ pub struct vm_t {
2423
pub instructionPointers: *mut std::ffi::c_ulong,
2524
}
2625
pub type byte = std::ffi::c_uchar;
27-
pub const MAX_VMMAIN_ARGS: std::ffi::c_int = unsafe { 50 as std::ffi::c_int };
26+
pub const MAX_VMMAIN_ARGS: std::ffi::c_int = 50 as std::ffi::c_int;
2827
#[no_mangle]
2928
pub unsafe extern "C" fn VM_CallCompiled(
3029
mut vm: *mut vm_t,

0 commit comments

Comments
 (0)