about summary refs log tree commit diff
path: root/src/libstd/collections
diff options
context:
space:
mode:
authorsnf <snf@users.noreply.github.com>2018-03-13 03:41:45 -0700
committersnf <snf@users.noreply.github.com>2018-03-14 03:48:42 -0700
commitb08b5ae0ec22e67d1cab7495865a0b34d4e6c5a2 (patch)
treee5eaee14c14cd878733d6d06623a1e2670dae968 /src/libstd/collections
parent92bfcd2b192e59d12d64acf6f46c1897a3273b3e (diff)
downloadrust-b08b5ae0ec22e67d1cab7495865a0b34d4e6c5a2.tar.gz
rust-b08b5ae0ec22e67d1cab7495865a0b34d4e6c5a2.zip
try_reserve: disabling tests for asmjs, blocked by #48968
Diffstat (limited to 'src/libstd/collections')
-rw-r--r--src/libstd/collections/hash/map.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs
index b18b38ec302..5f5dec2dd4f 100644
--- a/src/libstd/collections/hash/map.rs
+++ b/src/libstd/collections/hash/map.rs
@@ -2755,8 +2755,11 @@ mod test_map {
     use cell::RefCell;
     use rand::{thread_rng, Rng};
     use panic;
+    #[cfg(not(target_arch = "asmjs"))]
     use realstd::collections::CollectionAllocErr::*;
+    #[cfg(not(target_arch = "asmjs"))]
     use realstd::mem::size_of;
+    #[cfg(not(target_arch = "asmjs"))]
     use realstd::usize;
 
     #[test]
@@ -3693,6 +3696,7 @@ mod test_map {
         assert_eq!(hm.len(), 0);
     }
 
+    #[cfg(not(target_arch = "asmjs"))]
     #[test]
     fn test_try_reserve() {