@@ -14,7 +14,7 @@ input_file: c2rust-transpile/tests/snapshots/records.c
14
14
#[derive (Copy , Clone )]
15
15
#[repr (C )]
16
16
pub struct AnonEnumInStruct {}
17
- pub type C2RustUnnamed = std ::ffi ::c_uint ;
17
+ pub type C2RustUnnamed = core ::ffi ::c_uint ;
18
18
pub const VALUE2: C2RustUnnamed = 1 ;
19
19
pub const VALUE1: C2RustUnnamed = 0 ;
20
20
#[derive (Copy , Clone )]
@@ -25,64 +25,64 @@ pub struct AnonStructInStruct {
25
25
#[derive (Copy , Clone )]
26
26
#[repr (C )]
27
27
pub struct C2RustUnnamed_0 {
28
- pub some_number : std ::ffi ::c_int ,
28
+ pub some_number : core ::ffi ::c_int ,
29
29
}
30
30
#[derive (Copy , Clone )]
31
31
#[repr (C )]
32
32
pub struct NestedStructInStruct {}
33
33
#[derive (Copy , Clone )]
34
34
#[repr (C )]
35
35
pub struct InsideStruct {
36
- pub yup : std ::ffi ::c_int ,
36
+ pub yup : core ::ffi ::c_int ,
37
37
}
38
38
#[derive (Copy , Clone )]
39
39
#[repr (C )]
40
40
pub union AnonEnumInUnion {
41
- pub a : std ::ffi ::c_int ,
41
+ pub a : core ::ffi ::c_int ,
42
42
}
43
- pub type C2RustUnnamed_1 = std ::ffi ::c_uint ;
43
+ pub type C2RustUnnamed_1 = core ::ffi ::c_uint ;
44
44
pub const VALUE4: C2RustUnnamed_1 = 1 ;
45
45
pub const VALUE3: C2RustUnnamed_1 = 0 ;
46
46
#[derive (Copy , Clone )]
47
47
#[repr (C )]
48
48
pub union AnonStructInUnion {
49
49
pub c2rust_unnamed : C2RustUnnamed_2 ,
50
- pub a : std ::ffi ::c_int ,
50
+ pub a : core ::ffi ::c_int ,
51
51
}
52
52
#[derive (Copy , Clone )]
53
53
#[repr (C )]
54
54
pub struct C2RustUnnamed_2 {
55
- pub some_number : std ::ffi ::c_int ,
55
+ pub some_number : core ::ffi ::c_int ,
56
56
}
57
57
#[derive (Copy , Clone )]
58
58
#[repr (C )]
59
59
pub union NestedStructInUnion {
60
- pub a : std ::ffi ::c_int ,
60
+ pub a : core ::ffi ::c_int ,
61
61
}
62
62
#[derive (Copy , Clone )]
63
63
#[repr (C )]
64
64
pub struct InsideUnion {
65
- pub yup : std ::ffi ::c_int ,
65
+ pub yup : core ::ffi ::c_int ,
66
66
}
67
67
#[no_mangle ]
68
68
pub unsafe extern " C" fn struct_declaration () {
69
- let mut value: std ::ffi ::c_int = VALUE2 as std ::ffi ::c_int ;
69
+ let mut value: core ::ffi ::c_int = VALUE2 as core ::ffi ::c_int ;
70
70
let mut a: AnonEnumInStruct = AnonEnumInStruct {};
71
71
let mut b: AnonStructInStruct = AnonStructInStruct {
72
72
c2rust_unnamed: C2RustUnnamed_0 { some_number: 0 },
73
73
};
74
- b .c2rust_unnamed .some_number = 7 as std ::ffi ::c_int ;
74
+ b .c2rust_unnamed .some_number = 7 as core ::ffi ::c_int ;
75
75
let mut c: NestedStructInStruct = NestedStructInStruct {};
76
76
let mut d: InsideStruct = InsideStruct { yup: 0 };
77
77
}
78
78
#[no_mangle ]
79
79
pub unsafe extern " C" fn union_declaration () {
80
- let mut value: std ::ffi ::c_int = VALUE4 as std ::ffi ::c_int ;
80
+ let mut value: core ::ffi ::c_int = VALUE4 as core ::ffi ::c_int ;
81
81
let mut a: AnonEnumInUnion = AnonEnumInUnion { a: 0 };
82
82
let mut b: AnonStructInUnion = AnonStructInUnion {
83
83
c2rust_unnamed: C2RustUnnamed_2 { some_number: 0 },
84
84
};
85
- b .c2rust_unnamed .some_number = 99 as std ::ffi ::c_int ;
85
+ b .c2rust_unnamed .some_number = 99 as core ::ffi ::c_int ;
86
86
let mut c: NestedStructInUnion = NestedStructInUnion { a: 0 };
87
87
let mut d: InsideUnion = InsideUnion { yup: 0 };
88
88
}
0 commit comments