File tree Expand file tree Collapse file tree 5 files changed +5
-23
lines changed Expand file tree Collapse file tree 5 files changed +5
-23
lines changed Original file line number Diff line number Diff line change 99// except according to those terms.
1010
1111use std:: borrow:: Cow ;
12- #[ cfg( not( target_arch = "asmjs" ) ) ]
1312use std:: collections:: CollectionAllocErr :: * ;
14- #[ cfg( not( target_arch = "asmjs" ) ) ]
1513use std:: mem:: size_of;
16- #[ cfg( not( target_arch = "asmjs" ) ) ]
1714use std:: { usize, isize} ;
1815
1916pub trait IntoCow < ' a , B : ?Sized > where B : ToOwned {
@@ -535,7 +532,6 @@ fn test_reserve_exact() {
535532 assert ! ( s. capacity( ) >= 33 )
536533}
537534
538- #[ cfg( not( target_arch = "asmjs" ) ) ]
539535#[ test]
540536fn test_try_reserve ( ) {
541537
@@ -613,7 +609,6 @@ fn test_try_reserve() {
613609
614610}
615611
616- #[ cfg( not( target_arch = "asmjs" ) ) ]
617612#[ test]
618613fn test_try_reserve_exact ( ) {
619614
Original file line number Diff line number Diff line change 1010
1111use std:: borrow:: Cow ;
1212use 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} ;
1614use std:: vec:: { Drain , IntoIter } ;
17- #[ cfg( not( target_arch = "asmjs" ) ) ]
1815use std:: collections:: CollectionAllocErr :: * ;
1916
2017struct DropCounter < ' a > {
@@ -994,7 +991,6 @@ fn test_reserve_exact() {
994991 assert ! ( v. capacity( ) >= 33 )
995992}
996993
997- #[ cfg( not( target_arch = "asmjs" ) ) ]
998994#[ test]
999995fn test_try_reserve ( ) {
1000996
@@ -1097,7 +1093,6 @@ fn test_try_reserve() {
10971093
10981094}
10991095
1100- #[ cfg( not( target_arch = "asmjs" ) ) ]
11011096#[ test]
11021097fn test_try_reserve_exact ( ) {
11031098
Original file line number Diff line number Diff line change 1111use std:: collections:: VecDeque ;
1212use std:: fmt:: Debug ;
1313use std:: collections:: vec_deque:: { Drain } ;
14- #[ cfg( not( target_arch = "asmjs" ) ) ]
1514use std:: collections:: CollectionAllocErr :: * ;
16- #[ cfg( not( target_arch = "asmjs" ) ) ]
1715use std:: mem:: size_of;
18- use std:: isize;
19- #[ cfg( not( target_arch = "asmjs" ) ) ]
20- use std:: usize;
16+ use std:: { usize, isize} ;
2117
2218use self :: Taggy :: * ;
2319use self :: Taggypar :: * ;
@@ -1053,7 +1049,6 @@ fn test_reserve_exact_2() {
10531049 assert ! ( v. capacity( ) >= 48 )
10541050}
10551051
1056- #[ cfg( not( target_arch = "asmjs" ) ) ]
10571052#[ test]
10581053fn test_try_reserve ( ) {
10591054
@@ -1155,7 +1150,6 @@ fn test_try_reserve() {
11551150
11561151}
11571152
1158- #[ cfg( not( target_arch = "asmjs" ) ) ]
11591153#[ test]
11601154fn test_try_reserve_exact ( ) {
11611155
Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ pub fn target() -> Result<Target, String> {
1515 let mut args = LinkArgs :: new ( ) ;
1616 args. insert ( LinkerFlavor :: Em ,
1717 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( ) ] ) ;
1921
2022 let opts = TargetOptions {
2123 dynamic_linking : false ,
Original file line number Diff line number Diff line change @@ -2755,11 +2755,8 @@ mod test_map {
27552755 use cell:: RefCell ;
27562756 use rand:: { thread_rng, Rng } ;
27572757 use panic;
2758- #[ cfg( not( target_arch = "asmjs" ) ) ]
27592758 use realstd:: collections:: CollectionAllocErr :: * ;
2760- #[ cfg( not( target_arch = "asmjs" ) ) ]
27612759 use realstd:: mem:: size_of;
2762- #[ cfg( not( target_arch = "asmjs" ) ) ]
27632760 use realstd:: usize;
27642761
27652762 #[ test]
@@ -3696,7 +3693,6 @@ mod test_map {
36963693 assert_eq ! ( hm. len( ) , 0 ) ;
36973694 }
36983695
3699- #[ cfg( not( target_arch = "asmjs" ) ) ]
37003696 #[ test]
37013697 fn test_try_reserve ( ) {
37023698
You can’t perform that action at this time.
0 commit comments