File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,16 @@ matrix:
19
19
- rust : nightly
20
20
env :
21
21
- NODEFAULT=1
22
+ - ARRAYVECTEST_ENSURE_UNION=1
22
23
- rust : nightly
23
24
env :
24
25
- NODROP_FEATURES='use_needs_drop'
26
+ - ARRAYVECTEST_ENSURE_UNION=1
25
27
- rust : nightly
26
28
env :
27
29
- FEATURES='serde use_union'
28
30
- NODROP_FEATURES='use_union'
31
+ - ARRAYVECTEST_ENSURE_UNION=1
29
32
branches :
30
33
only :
31
34
- master
Original file line number Diff line number Diff line change @@ -508,3 +508,12 @@ fn test_sizes_129_255() {
508
508
ArrayVec :: from ( [ 0u8 ; 255 ] ) ;
509
509
}
510
510
511
+
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 ) ;
518
+ }
519
+ }
You can’t perform that action at this time.
0 commit comments