File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -769,7 +769,7 @@ fn test_gen() {
769
769
}
770
770
771
771
#[ derive( Serialize ) ]
772
- #[ repr( packed) ]
772
+ #[ repr( C , packed) ]
773
773
#[ allow( dead_code) ]
774
774
struct Packed {
775
775
x : u8 ,
@@ -915,14 +915,14 @@ where
915
915
916
916
//////////////////////////////////////////////////////////////////////////
917
917
918
- #[ repr( packed) ]
918
+ #[ repr( C , packed) ]
919
919
pub struct RemotePacked {
920
920
pub a : u16 ,
921
921
pub b : u32 ,
922
922
}
923
923
924
924
#[ derive( Serialize ) ]
925
- #[ repr( packed) ]
925
+ #[ repr( C , packed) ]
926
926
#[ serde( remote = "RemotePacked" ) ]
927
927
pub struct RemotePackedDef {
928
928
a : u16 ,
@@ -933,14 +933,14 @@ impl Drop for RemotePackedDef {
933
933
fn drop ( & mut self ) { }
934
934
}
935
935
936
- #[ repr( packed) ]
936
+ #[ repr( C , packed) ]
937
937
pub struct RemotePackedNonCopy {
938
938
pub a : u16 ,
939
939
pub b : String ,
940
940
}
941
941
942
942
#[ derive( Deserialize ) ]
943
- #[ repr( packed) ]
943
+ #[ repr( C , packed) ]
944
944
#[ serde( remote = "RemotePackedNonCopy" ) ]
945
945
pub struct RemotePackedNonCopyDef {
946
946
a : u16 ,
You can’t perform that action at this time.
0 commit comments