Skip to content

Commit b9f3781

Browse files
committed
fix test output
1 parent e8b0295 commit b9f3781

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

‎tests/unit/out/refcount/overload_mangling.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ pub fn twice_2(n: i32) -> i32 {
2626
let n: Value<i32> = Rc::new(RefCell::new(n));
2727
return ((*n.borrow()) * 2);
2828
}
29-
#[derive(Clone, ByteRepr, Default)]
29+
#[derive(Clone, ByteRepr, VaArg, FnPtrArg, Default)]
30+
pub struct Access_S_ {}
31+
#[derive(VaArg, FnPtrArg, Default)]
3032
pub struct S {
3133
pub base: Value<i32>,
3234
}

‎tests/unit/out/refcount/struct_ctor.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl ByteRepr for StructWithCtor {
5353
pub fn foo_0(x: Ptr<i32>) -> Ptr<i32> {
5454
return (x).clone();
5555
}
56-
#[derive(Default)]
56+
#[derive(VaArg, FnPtrArg, Default)]
5757
pub struct Value_ {
5858
pub v: Value<i32>,
5959
}
@@ -89,7 +89,7 @@ impl ByteRepr for Value_ {
8989
}
9090
}
9191
}
92-
#[derive()]
92+
#[derive(VaArg, FnPtrArg)]
9393
pub struct Ptr_ {
9494
pub v1: Value<Value_>,
9595
pub v2: Value<Value_>,

‎tests/unit/out/unsafe/overload_mangling.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub unsafe fn twice_2(mut n: i32) -> i32 {
1616
return ((n) * (2));
1717
}
1818
#[repr(C)]
19-
#[derive(Copy, Clone, Default)]
19+
#[derive(Copy, Clone, VaArg, Default)]
2020
pub struct Access_S_ {}
2121
impl Access_S_ {
2222
pub unsafe fn get_1(&mut self, mut p: *mut S) -> i32 {
@@ -33,7 +33,7 @@ impl Access_S_ {
3333
}
3434
}
3535
#[repr(C)]
36-
#[derive(Copy, Clone, Default)]
36+
#[derive(Copy, Clone, VaArg, Default)]
3737
pub struct S {
3838
pub base: i32,
3939
}

‎tests/unit/out/unsafe/struct_ctor.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub unsafe fn foo_0(x: *mut i32) -> *mut i32 {
3030
return x;
3131
}
3232
#[repr(C)]
33-
#[derive(Copy, Clone, Default)]
33+
#[derive(Copy, Clone, VaArg, Default)]
3434
pub struct Value_ {
3535
pub v: i32,
3636
}
@@ -41,7 +41,7 @@ impl Value_ {
4141
}
4242
}
4343
#[repr(C)]
44-
#[derive(Copy, Clone)]
44+
#[derive(Copy, Clone, VaArg)]
4545
pub struct Ptr_ {
4646
pub v1: Value_,
4747
pub v2: Value_,

0 commit comments

Comments
 (0)