Lines Matching full:some
217 Some(
329 /// may yield some consistent value for some `repr(Rust)` structs, it is not
382 /// may yield some consistent value for some `repr(Rust)` unions, it is not
981 test!(#[repr(C)] #[repr(transparent)] #[repr(packed)](; u8) => Some(0)); in test_trailing_field_offset()
982 test!(#[repr(C)] #[repr(transparent)] #[repr(packed)](; [u8]) => Some(0)); in test_trailing_field_offset()
983 test!(#[repr(C)] #[repr(C, packed)] (u8; u8) => Some(1)); in test_trailing_field_offset()
984 test!(#[repr(C)] (; AU64) => Some(0)); in test_trailing_field_offset()
985 test!(#[repr(C)] (; [AU64]) => Some(0)); in test_trailing_field_offset()
986 test!(#[repr(C)] (u8; AU64) => Some(8)); in test_trailing_field_offset()
987 test!(#[repr(C)] (u8; [AU64]) => Some(8)); in test_trailing_field_offset()
998 test!(#[repr(C)] (; Nested<u8, AU64>) => Some(0)); in test_trailing_field_offset()
999 test!(#[repr(C)] (; Nested<u8, [AU64]>) => Some(0)); in test_trailing_field_offset()
1000 test!(#[repr(C)] (u8; Nested<u8, AU64>) => Some(8)); in test_trailing_field_offset()
1001 test!(#[repr(C)] (u8; Nested<u8, [AU64]>) => Some(8)); in test_trailing_field_offset()
1004 test!(#[repr(C, packed( 1))] (u8; elain::Align< 2>) => Some( 1)); in test_trailing_field_offset()
1005 test!(#[repr(C, packed( 2))] (u8; elain::Align< 4>) => Some( 2)); in test_trailing_field_offset()
1006 test!(#[repr(C, packed( 4))] (u8; elain::Align< 8>) => Some( 4)); in test_trailing_field_offset()
1007 test!(#[repr(C, packed( 8))] (u8; elain::Align< 16>) => Some( 8)); in test_trailing_field_offset()
1008 test!(#[repr(C, packed( 16))] (u8; elain::Align< 32>) => Some( 16)); in test_trailing_field_offset()
1009 test!(#[repr(C, packed( 32))] (u8; elain::Align< 64>) => Some( 32)); in test_trailing_field_offset()
1010 test!(#[repr(C, packed( 64))] (u8; elain::Align< 128>) => Some( 64)); in test_trailing_field_offset()
1011 test!(#[repr(C, packed( 128))] (u8; elain::Align< 256>) => Some( 128)); in test_trailing_field_offset()
1012 test!(#[repr(C, packed( 256))] (u8; elain::Align< 512>) => Some( 256)); in test_trailing_field_offset()
1013 test!(#[repr(C, packed( 512))] (u8; elain::Align< 1024>) => Some( 512)); in test_trailing_field_offset()
1014 test!(#[repr(C, packed( 1024))] (u8; elain::Align< 2048>) => Some( 1024)); in test_trailing_field_offset()
1015 test!(#[repr(C, packed( 2048))] (u8; elain::Align< 4096>) => Some( 2048)); in test_trailing_field_offset()
1016 test!(#[repr(C, packed( 4096))] (u8; elain::Align< 8192>) => Some( 4096)); in test_trailing_field_offset()
1017 test!(#[repr(C, packed( 8192))] (u8; elain::Align< 16384>) => Some( 8192)); in test_trailing_field_offset()
1018 test!(#[repr(C, packed( 16384))] (u8; elain::Align< 32768>) => Some( 16384)); in test_trailing_field_offset()
1019 test!(#[repr(C, packed( 32768))] (u8; elain::Align< 65536>) => Some( 32768)); in test_trailing_field_offset()
1020 test!(#[repr(C, packed( 65536))] (u8; elain::Align< 131072>) => Some( 65536)); in test_trailing_field_offset()
1022 test!(#[repr(C, packed( 131072))] (u8; elain::Align< 262144>) => Some( 131072)); in test_trailing_field_offset()
1023 test!(#[repr(C, packed( 262144))] (u8; elain::Align< 524288>) => Some( 262144)); in test_trailing_field_offset()
1024 test!(#[repr(C, packed( 524288))] (u8; elain::Align< 1048576>) => Some( 524288)); in test_trailing_field_offset()
1025 test!(#[repr(C, packed( 1048576))] (u8; elain::Align< 2097152>) => Some( 1048576)); in test_trailing_field_offset()
1026 test!(#[repr(C, packed( 2097152))] (u8; elain::Align< 4194304>) => Some( 2097152)); in test_trailing_field_offset()
1027 test!(#[repr(C, packed( 4194304))] (u8; elain::Align< 8388608>) => Some( 4194304)); in test_trailing_field_offset()
1028 test!(#[repr(C, packed( 8388608))] (u8; elain::Align< 16777216>) => Some( 8388608)); in test_trailing_field_offset()
1029 test!(#[repr(C, packed( 16777216))] (u8; elain::Align< 33554432>) => Some( 16777216)); in test_trailing_field_offset()
1030 test!(#[repr(C, packed( 33554432))] (u8; elain::Align< 67108864>) => Some( 33554432)); in test_trailing_field_offset()
1031 test!(#[repr(C, packed( 67108864))] (u8; elain::Align< 33554432>) => Some( 67108864)); in test_trailing_field_offset()
1032 test!(#[repr(C, packed( 33554432))] (u8; elain::Align<134217728>) => Some( 33554432)); in test_trailing_field_offset()
1033 test!(#[repr(C, packed(134217728))] (u8; elain::Align<268435456>) => Some(134217728)); in test_trailing_field_offset()
1034 test!(#[repr(C, packed(268435456))] (u8; elain::Align<268435456>) => Some(268435456)); in test_trailing_field_offset()
1038 test!(#[repr(C, align( 1))] (u8; elain::Align< 2>) => Some( 2)); in test_trailing_field_offset()
1039 test!(#[repr(C, align( 2))] (u8; elain::Align< 4>) => Some( 4)); in test_trailing_field_offset()
1040 test!(#[repr(C, align( 4))] (u8; elain::Align< 8>) => Some( 8)); in test_trailing_field_offset()
1041 test!(#[repr(C, align( 8))] (u8; elain::Align< 16>) => Some( 16)); in test_trailing_field_offset()
1042 test!(#[repr(C, align( 16))] (u8; elain::Align< 32>) => Some( 32)); in test_trailing_field_offset()
1043 test!(#[repr(C, align( 32))] (u8; elain::Align< 64>) => Some( 64)); in test_trailing_field_offset()
1044 test!(#[repr(C, align( 64))] (u8; elain::Align< 128>) => Some( 128)); in test_trailing_field_offset()
1045 test!(#[repr(C, align( 128))] (u8; elain::Align< 256>) => Some( 256)); in test_trailing_field_offset()
1046 test!(#[repr(C, align( 256))] (u8; elain::Align< 512>) => Some( 512)); in test_trailing_field_offset()
1047 test!(#[repr(C, align( 512))] (u8; elain::Align< 1024>) => Some( 1024)); in test_trailing_field_offset()
1048 test!(#[repr(C, align( 1024))] (u8; elain::Align< 2048>) => Some( 2048)); in test_trailing_field_offset()
1049 test!(#[repr(C, align( 2048))] (u8; elain::Align< 4096>) => Some( 4096)); in test_trailing_field_offset()
1050 test!(#[repr(C, align( 4096))] (u8; elain::Align< 8192>) => Some( 8192)); in test_trailing_field_offset()
1051 test!(#[repr(C, align( 8192))] (u8; elain::Align< 16384>) => Some( 16384)); in test_trailing_field_offset()
1052 test!(#[repr(C, align( 16384))] (u8; elain::Align< 32768>) => Some( 32768)); in test_trailing_field_offset()
1053 test!(#[repr(C, align( 32768))] (u8; elain::Align< 65536>) => Some( 65536)); in test_trailing_field_offset()
1055 test!(#[repr(C, align( 65536))] (u8; elain::Align< 131072>) => Some( 131072)); in test_trailing_field_offset()
1056 test!(#[repr(C, align( 131072))] (u8; elain::Align< 262144>) => Some( 262144)); in test_trailing_field_offset()
1057 test!(#[repr(C, align( 262144))] (u8; elain::Align< 524288>) => Some( 524288)); in test_trailing_field_offset()
1058 test!(#[repr(C, align( 524288))] (u8; elain::Align< 1048576>) => Some( 1048576)); in test_trailing_field_offset()
1059 test!(#[repr(C, align( 1048576))] (u8; elain::Align< 2097152>) => Some( 2097152)); in test_trailing_field_offset()
1060 test!(#[repr(C, align( 2097152))] (u8; elain::Align< 4194304>) => Some( 4194304)); in test_trailing_field_offset()
1061 test!(#[repr(C, align( 4194304))] (u8; elain::Align< 8388608>) => Some( 8388608)); in test_trailing_field_offset()
1062 test!(#[repr(C, align( 8388608))] (u8; elain::Align< 16777216>) => Some( 16777216)); in test_trailing_field_offset()
1063 test!(#[repr(C, align( 16777216))] (u8; elain::Align< 33554432>) => Some( 33554432)); in test_trailing_field_offset()
1064 test!(#[repr(C, align( 33554432))] (u8; elain::Align< 67108864>) => Some( 67108864)); in test_trailing_field_offset()
1065 test!(#[repr(C, align( 67108864))] (u8; elain::Align< 33554432>) => Some( 33554432)); in test_trailing_field_offset()
1066 test!(#[repr(C, align( 33554432))] (u8; elain::Align<134217728>) => Some(134217728)); in test_trailing_field_offset()
1067 test!(#[repr(C, align(134217728))] (u8; elain::Align<268435456>) => Some(268435456)); in test_trailing_field_offset()
1077 assert_eq!(align_of!([elain::Align<1>]), Some(1)); in test_align_of_dst()
1078 assert_eq!(align_of!([elain::Align<2>]), Some(2)); in test_align_of_dst()
1079 assert_eq!(align_of!([elain::Align<4>]), Some(4)); in test_align_of_dst()
1080 assert_eq!(align_of!([elain::Align<8>]), Some(8)); in test_align_of_dst()
1081 assert_eq!(align_of!([elain::Align<16>]), Some(16)); in test_align_of_dst()
1082 assert_eq!(align_of!([elain::Align<32>]), Some(32)); in test_align_of_dst()
1083 assert_eq!(align_of!([elain::Align<64>]), Some(64)); in test_align_of_dst()
1084 assert_eq!(align_of!([elain::Align<128>]), Some(128)); in test_align_of_dst()
1085 assert_eq!(align_of!([elain::Align<256>]), Some(256)); in test_align_of_dst()
1086 assert_eq!(align_of!([elain::Align<512>]), Some(512)); in test_align_of_dst()
1087 assert_eq!(align_of!([elain::Align<1024>]), Some(1024)); in test_align_of_dst()
1088 assert_eq!(align_of!([elain::Align<2048>]), Some(2048)); in test_align_of_dst()
1089 assert_eq!(align_of!([elain::Align<4096>]), Some(4096)); in test_align_of_dst()
1090 assert_eq!(align_of!([elain::Align<8192>]), Some(8192)); in test_align_of_dst()
1091 assert_eq!(align_of!([elain::Align<16384>]), Some(16384)); in test_align_of_dst()
1092 assert_eq!(align_of!([elain::Align<32768>]), Some(32768)); in test_align_of_dst()
1093 assert_eq!(align_of!([elain::Align<65536>]), Some(65536)); in test_align_of_dst()
1095 assert_eq!(align_of!([elain::Align<131072>]), Some(131072)); in test_align_of_dst()
1096 assert_eq!(align_of!([elain::Align<262144>]), Some(262144)); in test_align_of_dst()
1097 assert_eq!(align_of!([elain::Align<524288>]), Some(524288)); in test_align_of_dst()
1098 assert_eq!(align_of!([elain::Align<1048576>]), Some(1048576)); in test_align_of_dst()
1099 assert_eq!(align_of!([elain::Align<2097152>]), Some(2097152)); in test_align_of_dst()
1100 assert_eq!(align_of!([elain::Align<4194304>]), Some(4194304)); in test_align_of_dst()
1101 assert_eq!(align_of!([elain::Align<8388608>]), Some(8388608)); in test_align_of_dst()
1102 assert_eq!(align_of!([elain::Align<16777216>]), Some(16777216)); in test_align_of_dst()
1103 assert_eq!(align_of!([elain::Align<33554432>]), Some(33554432)); in test_align_of_dst()
1104 assert_eq!(align_of!([elain::Align<67108864>]), Some(67108864)); in test_align_of_dst()
1105 assert_eq!(align_of!([elain::Align<33554432>]), Some(33554432)); in test_align_of_dst()
1106 assert_eq!(align_of!([elain::Align<134217728>]), Some(134217728)); in test_align_of_dst()
1107 assert_eq!(align_of!([elain::Align<268435456>]), Some(268435456)); in test_align_of_dst()
1167 // It's not ideal, but it definitely has align > 1 on /some/ of our CI in test_struct_padding()
1231 // It's not ideal, but it definitely has align > 1 on /some/ of our CI in test_union_padding()