Commit b6f339c
committed
Resolve repr_packed_without_abi clippy lint in tests
warning: item uses `packed` representation without ABI-qualification
--> test_suite/tests/test_gen.rs:774:5
|
772 | #[repr(packed)]
| ------ `packed` representation set here
773 | #[allow(dead_code)]
774 | / struct Packed {
775 | | x: u8,
776 | | y: u16,
777 | | }
| |_____^
|
= warning: unqualified `#[repr(packed)]` defaults to `#[repr(Rust, packed)]`, which has no stable ABI
= help: qualify the desired ABI explicity via `#[repr(C, packed)]` or `#[repr(Rust, packed)]`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#repr_packed_without_abi
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(clippy::repr_packed_without_abi)]` implied by `#[warn(warnings)]`
warning: item uses `packed` representation without ABI-qualification
--> test_suite/tests/test_gen.rs:919:1
|
918 | #[repr(packed)]
| ------ `packed` representation set here
919 | / pub struct RemotePacked {
920 | | pub a: u16,
921 | | pub b: u32,
922 | | }
| |_^
|
= warning: unqualified `#[repr(packed)]` defaults to `#[repr(Rust, packed)]`, which has no stable ABI
= help: qualify the desired ABI explicity via `#[repr(C, packed)]` or `#[repr(Rust, packed)]`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#repr_packed_without_abi
warning: item uses `packed` representation without ABI-qualification
--> test_suite/tests/test_gen.rs:927:1
|
925 | #[repr(packed)]
| ------ `packed` representation set here
926 | #[serde(remote = "RemotePacked")]
927 | / pub struct RemotePackedDef {
928 | | a: u16,
929 | | b: u32,
930 | | }
| |_^
|
= warning: unqualified `#[repr(packed)]` defaults to `#[repr(Rust, packed)]`, which has no stable ABI
= help: qualify the desired ABI explicity via `#[repr(C, packed)]` or `#[repr(Rust, packed)]`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#repr_packed_without_abi
warning: item uses `packed` representation without ABI-qualification
--> test_suite/tests/test_gen.rs:937:1
|
936 | #[repr(packed)]
| ------ `packed` representation set here
937 | / pub struct RemotePackedNonCopy {
938 | | pub a: u16,
939 | | pub b: String,
940 | | }
| |_^
|
= warning: unqualified `#[repr(packed)]` defaults to `#[repr(Rust, packed)]`, which has no stable ABI
= help: qualify the desired ABI explicity via `#[repr(C, packed)]` or `#[repr(Rust, packed)]`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#repr_packed_without_abi
warning: item uses `packed` representation without ABI-qualification
--> test_suite/tests/test_gen.rs:945:1
|
943 | #[repr(packed)]
| ------ `packed` representation set here
944 | #[serde(remote = "RemotePackedNonCopy")]
945 | / pub struct RemotePackedNonCopyDef {
946 | | a: u16,
947 | | b: String,
948 | | }
| |_^
|
= warning: unqualified `#[repr(packed)]` defaults to `#[repr(Rust, packed)]`, which has no stable ABI
= help: qualify the desired ABI explicity via `#[repr(C, packed)]` or `#[repr(Rust, packed)]`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#repr_packed_without_abi1 parent 2a5caea commit b6f339c
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
772 | | - | |
| 772 | + | |
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
| |||
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
918 | | - | |
| 918 | + | |
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
925 | | - | |
| 925 | + | |
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
| |||
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
936 | | - | |
| 936 | + | |
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
943 | | - | |
| 943 | + | |
944 | 944 | | |
945 | 945 | | |
946 | 946 | | |
| |||
0 commit comments