File tree 2 files changed +6
-7
lines changed 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ matrix:
15
15
- rust : stable
16
16
env :
17
17
- FEATURES='array-sizes-33-128 array-sizes-129-255'
18
+ - ARRAYVECTEST_ENSURE_MAYBEUNINIT=1
18
19
- rust : beta
19
20
- rust : nightly
20
21
env :
@@ -23,12 +24,12 @@ matrix:
23
24
- rust : nightly
24
25
env :
25
26
- NODROP_FEATURES='use_needs_drop'
26
- - ARRAYVECTEST_ENSURE_UNION =1
27
+ - ARRAYVECTEST_ENSURE_MAYBEUNINIT =1
27
28
- rust : nightly
28
29
env :
29
30
- FEATURES='serde use_union'
30
31
- NODROP_FEATURES='use_union'
31
- - ARRAYVECTEST_ENSURE_UNION =1
32
+ - ARRAYVECTEST_ENSURE_MAYBEUNINIT =1
32
33
branches :
33
34
only :
34
35
- master
Original file line number Diff line number Diff line change @@ -510,10 +510,8 @@ fn test_sizes_129_255() {
510
510
511
511
512
512
#[ test]
513
- fn test_nightly_uses_maybe_uninit ( ) {
514
- if option_env ! ( "ARRAYVECTEST_ENSURE_UNION" ) . map ( |s| !s. is_empty ( ) ) . unwrap_or ( false ) {
515
- assert ! ( cfg!( has_manually_drop_in_union) ) ;
516
- type ByteArray = ArrayVec < [ u8 ; 4 ] > ;
517
- assert ! ( mem:: size_of:: <ByteArray >( ) == 5 ) ;
513
+ fn test_newish_stable_uses_maybe_uninit ( ) {
514
+ if option_env ! ( "ARRAYVECTEST_ENSURE_MAYBEUNINIT" ) . map ( |s| !s. is_empty ( ) ) . unwrap_or ( false ) {
515
+ assert ! ( cfg!( has_stable_maybe_uninit) ) ;
518
516
}
519
517
}
You can’t perform that action at this time.
0 commit comments