File tree 4 files changed +22
-2
lines changed
4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
use std:: borrow:: Cow ;
12
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
12
13
use std:: collections:: CollectionAllocErr :: * ;
14
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
13
15
use std:: mem:: size_of;
16
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
14
17
use std:: { usize, isize} ;
15
18
16
19
pub trait IntoCow < ' a , B : ?Sized > where B : ToOwned {
@@ -532,6 +535,7 @@ fn test_reserve_exact() {
532
535
assert ! ( s. capacity( ) >= 33 )
533
536
}
534
537
538
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
535
539
#[ test]
536
540
fn test_try_reserve ( ) {
537
541
@@ -609,6 +613,7 @@ fn test_try_reserve() {
609
613
610
614
}
611
615
616
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
612
617
#[ test]
613
618
fn test_try_reserve_exact ( ) {
614
619
Original file line number Diff line number Diff line change 10
10
11
11
use std:: borrow:: Cow ;
12
12
use std:: mem:: size_of;
13
- use std:: { usize, isize, panic} ;
13
+ use std:: { usize, panic} ;
14
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
15
+ use std:: isize;
14
16
use std:: vec:: { Drain , IntoIter } ;
17
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
15
18
use std:: collections:: CollectionAllocErr :: * ;
16
19
17
20
struct DropCounter < ' a > {
@@ -991,6 +994,7 @@ fn test_reserve_exact() {
991
994
assert ! ( v. capacity( ) >= 33 )
992
995
}
993
996
997
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
994
998
#[ test]
995
999
fn test_try_reserve ( ) {
996
1000
@@ -1093,6 +1097,7 @@ fn test_try_reserve() {
1093
1097
1094
1098
}
1095
1099
1100
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
1096
1101
#[ test]
1097
1102
fn test_try_reserve_exact ( ) {
1098
1103
Original file line number Diff line number Diff line change 11
11
use std:: collections:: VecDeque ;
12
12
use std:: fmt:: Debug ;
13
13
use std:: collections:: vec_deque:: { Drain } ;
14
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
14
15
use std:: collections:: CollectionAllocErr :: * ;
16
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
15
17
use std:: mem:: size_of;
16
- use std:: { usize, isize} ;
18
+ use std:: isize;
19
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
20
+ use std:: usize;
17
21
18
22
use self :: Taggy :: * ;
19
23
use self :: Taggypar :: * ;
@@ -1049,6 +1053,7 @@ fn test_reserve_exact_2() {
1049
1053
assert ! ( v. capacity( ) >= 48 )
1050
1054
}
1051
1055
1056
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
1052
1057
#[ test]
1053
1058
fn test_try_reserve ( ) {
1054
1059
@@ -1150,6 +1155,7 @@ fn test_try_reserve() {
1150
1155
1151
1156
}
1152
1157
1158
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
1153
1159
#[ test]
1154
1160
fn test_try_reserve_exact ( ) {
1155
1161
Original file line number Diff line number Diff line change @@ -2755,8 +2755,11 @@ mod test_map {
2755
2755
use cell:: RefCell ;
2756
2756
use rand:: { thread_rng, Rng } ;
2757
2757
use panic;
2758
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
2758
2759
use realstd:: collections:: CollectionAllocErr :: * ;
2760
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
2759
2761
use realstd:: mem:: size_of;
2762
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
2760
2763
use realstd:: usize;
2761
2764
2762
2765
#[ test]
@@ -3693,6 +3696,7 @@ mod test_map {
3693
3696
assert_eq ! ( hm. len( ) , 0 ) ;
3694
3697
}
3695
3698
3699
+ #[ cfg( not( target_arch = "asmjs" ) ) ]
3696
3700
#[ test]
3697
3701
fn test_try_reserve ( ) {
3698
3702
You can’t perform that action at this time.
0 commit comments