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