@@ -682,12 +682,14 @@ fn str_convenience_wacky_padding() {
682682
683683#[ test]
684684#[ should_panic]
685+ #[ cfg( debug_assertions) ]
685686fn base10_u8_array_too_small_core ( ) {
686687 let _ = numtoa_u8 ( 0_u8 , 10 , & mut [ 0u8 ; 2 ] ) ;
687688}
688689
689690#[ test]
690691#[ should_panic]
692+ #[ cfg( debug_assertions) ]
691693fn base10_u8_array_too_small_trait ( ) {
692694 let _ = 0u8 . numtoa ( 10 , & mut [ 0u8 ; 2 ] ) ;
693695}
@@ -704,6 +706,7 @@ fn base10_u8_array_just_right_trait() {
704706
705707#[ test]
706708#[ should_panic]
709+ #[ cfg( debug_assertions) ]
707710fn base10_i8_array_too_small ( ) {
708711 let mut buffer = [ 0u8 ; 3 ] ;
709712 let _ = 0i8 . numtoa ( 10 , & mut buffer) ;
@@ -717,6 +720,7 @@ fn base10_i8_array_just_right() {
717720
718721#[ test]
719722#[ should_panic]
723+ #[ cfg( debug_assertions) ]
720724fn base10_i16_array_too_small ( ) {
721725 let mut buffer = [ 0u8 ; 5 ] ;
722726 let _ = 0i16 . numtoa ( 10 , & mut buffer) ;
@@ -730,6 +734,7 @@ fn base10_i16_array_just_right() {
730734
731735#[ test]
732736#[ should_panic]
737+ #[ cfg( debug_assertions) ]
733738fn base10_u16_array_too_small ( ) {
734739 let mut buffer = [ 0u8 ; 4 ] ;
735740 let _ = 0u16 . numtoa ( 10 , & mut buffer) ;
@@ -743,6 +748,7 @@ fn base10_u16_array_just_right() {
743748
744749#[ test]
745750#[ should_panic]
751+ #[ cfg( debug_assertions) ]
746752fn base10_i32_array_too_small ( ) {
747753 let mut buffer = [ 0u8 ; 10 ] ;
748754 let _ = 0i32 . numtoa ( 10 , & mut buffer) ;
@@ -756,6 +762,7 @@ fn base10_i32_array_just_right() {
756762
757763#[ test]
758764#[ should_panic]
765+ #[ cfg( debug_assertions) ]
759766fn base10_u32_array_too_small ( ) {
760767 let mut buffer = [ 0u8 ; 9 ] ;
761768 let _ = 0u32 . numtoa ( 10 , & mut buffer) ;
@@ -769,6 +776,7 @@ fn base10_u32_array_just_right() {
769776
770777#[ test]
771778#[ should_panic]
779+ #[ cfg( debug_assertions) ]
772780fn base10_i64_array_too_small ( ) {
773781 let mut buffer = [ 0u8 ; 18 ] ;
774782 let _ = 0i64 . numtoa ( 10 , & mut buffer) ;
@@ -782,6 +790,7 @@ fn base10_i64_array_just_right() {
782790
783791#[ test]
784792#[ should_panic]
793+ #[ cfg( debug_assertions) ]
785794fn base10_u64_array_too_small ( ) {
786795 let mut buffer = [ 0u8 ; 19 ] ;
787796 let _ = 0u64 . numtoa ( 10 , & mut buffer) ;
@@ -879,6 +888,7 @@ fn base16_u8_all_base16() {
879888
880889#[ test]
881890#[ should_panic]
891+ #[ cfg( debug_assertions) ]
882892fn base10_i128_array_too_small ( ) {
883893 let mut buffer = [ 0u8 ; 38 ] ;
884894 let _ = 0i128 . numtoa ( 10 , & mut buffer) ;
@@ -892,6 +902,7 @@ fn base10_i128_array_just_right() {
892902
893903#[ test]
894904#[ should_panic]
905+ #[ cfg( debug_assertions) ]
895906fn base10_u128_array_too_small ( ) {
896907 let mut buffer = [ 0u8 ; 38 ] ;
897908 let _ = 0u128 . numtoa ( 10 , & mut buffer) ;
0 commit comments