Auto merge of #12385 - Ms2ger:arc_ptr_eq, r=SimonSapin

Move arc_ptr_eq to style.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12385)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-07-11 05:11:48 -07:00 committed by GitHub
commit c3a8cbbd38
6 changed files with 17 additions and 17 deletions

View file

@ -26,8 +26,6 @@ extern crate url;
#[cfg(all(unix, not(target_os = "macos"), not(target_os = "ios"), not(target_os = "android")))]
extern crate xdg;
use std::sync::Arc;
pub mod basedir;
pub mod geometry;
#[cfg(feature = "servo")] #[allow(unsafe_code)] pub mod ipc;
@ -38,14 +36,6 @@ pub mod resource_files;
pub mod thread;
pub mod thread_state;
// Workaround for lack of `ptr_eq` on Arcs...
#[inline]
pub fn arc_ptr_eq<T: 'static>(a: &Arc<T>, b: &Arc<T>) -> bool {
let a: &T = &**a;
let b: &T = &**b;
(a as *const T) == (b as *const T)
}
pub fn servo_version() -> &'static str {
concat!("Servo ", env!("CARGO_PKG_VERSION"), env!("GIT_INFO"))
}