/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #![feature(unsafe_destructor)] #![feature(plugin)] #![feature(int_uint)] #![feature(old_impl_check)] #![feature(box_syntax)] #![deny(unused_imports)] #![deny(unused_variables)] #![allow(missing_copy_implementations)] #![allow(unstable)] #[macro_use] extern crate log; extern crate alloc; extern crate collections; extern crate cssparser; extern crate geom; extern crate getopts; extern crate layers; extern crate libc; #[no_link] #[macro_use] extern crate cssparser; extern crate rand; extern crate "serialize" as rustc_serialize; #[cfg(target_os="macos")] extern crate task_info; extern crate "time" as std_time; extern crate text_writer; extern crate string_cache; extern crate unicode; extern crate url; #[no_link] #[macro_use] #[plugin] extern crate string_cache_macros; extern crate lazy_static; use std::sync::Arc; pub mod bloom; pub mod cache; pub mod cursor; pub mod debug_utils; pub mod deque; pub mod dlist; pub mod fnv; pub mod geometry; pub mod logical_geometry; pub mod memory; pub mod namespace; pub mod opts; pub mod persistent_list; pub mod range; pub mod resource_files; pub mod smallvec; pub mod sort; pub mod str; pub mod task; pub mod tid; pub mod time; pub mod taskpool; pub mod task_state; pub mod vec; pub mod workqueue; pub fn breakpoint() { unsafe { ::std::intrinsics::breakpoint() }; } // Workaround for lack of `ptr_eq` on Arcs... #[inline] pub fn arc_ptr_eq(a: &Arc, b: &Arc) -> bool { let a: &T = &**a; let b: &T = &**b; (a as *const T) == (b as *const T) }