Don’t pretend DOMRefCell is Send or Sync, after all.

This commit is contained in:
Simon Sapin 2016-09-28 12:05:02 +02:00
parent fbde392c3d
commit d15ac9be55

View file

@ -16,13 +16,6 @@ pub struct DOMRefCell<T> {
value: RefCell<T>,
}
// FIXME: These two impls make promises that are not quite true,
// but maybe the debug_assert! makes it close enough.
#[allow(unsafe_code)]
unsafe impl<T: Send> Send for DOMRefCell<T> {}
#[allow(unsafe_code)]
unsafe impl<T: Sync> Sync for DOMRefCell<T> {}
// Functionality specific to Servo's `DOMRefCell` type
// ===================================================