mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
remove various things now that Rust 1.17 is required
std::ptr::eq and Arc::ptr_eq are now usuable, and we can replace a panic!() with abort().
This commit is contained in:
parent
567f5e8985
commit
096cee8ebc
6 changed files with 7 additions and 26 deletions
|
@ -92,14 +92,6 @@ pub use fragment::Fragment;
|
|||
pub use fragment::SpecificFragmentInfo;
|
||||
pub use self::data::LayoutData;
|
||||
|
||||
/// Returns whether the two arguments point to the same value.
|
||||
///
|
||||
/// FIXME: Remove this and use Arc::ptr_eq once we require Rust 1.17
|
||||
#[inline]
|
||||
pub fn arc_ptr_eq<T: 'static>(a: &::std::sync::Arc<T>, b: &::std::sync::Arc<T>) -> bool {
|
||||
::style::ptr_eq::<T>(&**a, &**b)
|
||||
}
|
||||
|
||||
// We can't use stylearc for everything in layout, because the Flow stuff uses
|
||||
// weak references.
|
||||
use style::stylearc::Arc as StyleArc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue