// except according to those terms.
use std::borrow::Cow;
-#[cfg(not(target_arch = "asmjs"))]
use std::collections::CollectionAllocErr::*;
-#[cfg(not(target_arch = "asmjs"))]
use std::mem::size_of;
-#[cfg(not(target_arch = "asmjs"))]
use std::{usize, isize};
pub trait IntoCow<'a, B: ?Sized> where B: ToOwned {
assert!(s.capacity() >= 33)
}
-#[cfg(not(target_arch = "asmjs"))]
#[test]
fn test_try_reserve() {
}
-#[cfg(not(target_arch = "asmjs"))]
#[test]
fn test_try_reserve_exact() {
use std::borrow::Cow;
use std::mem::size_of;
-use std::{usize, panic};
-#[cfg(not(target_arch = "asmjs"))]
-use std::isize;
+use std::{usize, isize, panic};
use std::vec::{Drain, IntoIter};
-#[cfg(not(target_arch = "asmjs"))]
use std::collections::CollectionAllocErr::*;
struct DropCounter<'a> {
assert!(v.capacity() >= 33)
}
-#[cfg(not(target_arch = "asmjs"))]
#[test]
fn test_try_reserve() {
}
-#[cfg(not(target_arch = "asmjs"))]
#[test]
fn test_try_reserve_exact() {
use std::collections::VecDeque;
use std::fmt::Debug;
use std::collections::vec_deque::{Drain};
-#[cfg(not(target_arch = "asmjs"))]
use std::collections::CollectionAllocErr::*;
-#[cfg(not(target_arch = "asmjs"))]
use std::mem::size_of;
-use std::isize;
-#[cfg(not(target_arch = "asmjs"))]
-use std::usize;
+use std::{usize, isize};
use self::Taggy::*;
use self::Taggypar::*;
assert!(v.capacity() >= 48)
}
-#[cfg(not(target_arch = "asmjs"))]
#[test]
fn test_try_reserve() {
}
-#[cfg(not(target_arch = "asmjs"))]
#[test]
fn test_try_reserve_exact() {
let mut args = LinkArgs::new();
args.insert(LinkerFlavor::Em,
vec!["-s".to_string(),
- "ERROR_ON_UNDEFINED_SYMBOLS=1".to_string()]);
+ "ERROR_ON_UNDEFINED_SYMBOLS=1".to_string(),
+ "-s".to_string(),
+ "ABORTING_MALLOC=0".to_string()]);
let opts = TargetOptions {
dynamic_linking: false,
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]
assert_eq!(hm.len(), 0);
}
- #[cfg(not(target_arch = "asmjs"))]
#[test]
fn test_try_reserve() {