aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings
diff options
context:
space:
mode:
authorBrandon Fairchild <csbit32@gmail.com>2015-11-27 14:32:57 -0500
committerBrandon Fairchild <csbit32@gmail.com>2015-11-27 14:32:57 -0500
commit341e66f66d88b1bfae7d3cc2ec6b870e2beb583c (patch)
treecaa68c2f08c3132a8f21cf2fb4a527cecfb2783b /components/script/dom/bindings
parent3720e4d5ef09d710deaf846c74356ccea8d7afce (diff)
downloadservo-341e66f66d88b1bfae7d3cc2ec6b870e2beb583c.tar.gz
servo-341e66f66d88b1bfae7d3cc2ec6b870e2beb583c.zip
Remove `#[allow(raw_pointer_derive)]` attributes
The attributes are unused. Fixes #8699.
Diffstat (limited to 'components/script/dom/bindings')
-rw-r--r--components/script/dom/bindings/callback.rs1
-rw-r--r--components/script/dom/bindings/reflector.rs2
-rw-r--r--components/script/dom/bindings/utils.rs3
3 files changed, 1 insertions, 5 deletions
diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs
index 10b19acc601..01bb7b8815b 100644
--- a/components/script/dom/bindings/callback.rs
+++ b/components/script/dom/bindings/callback.rs
@@ -62,7 +62,6 @@ pub struct CallbackInterface {
/// A common base class for representing IDL callback function and
/// callback interface types.
-#[allow(raw_pointer_derive)]
#[derive(JSTraceable)]
struct CallbackObject {
/// The underlying `JSObject`.
diff --git a/components/script/dom/bindings/reflector.rs b/components/script/dom/bindings/reflector.rs
index d7400a35c99..49e7554944d 100644
--- a/components/script/dom/bindings/reflector.rs
+++ b/components/script/dom/bindings/reflector.rs
@@ -20,7 +20,7 @@ pub fn reflect_dom_object<T: Reflectable>(obj: Box<T>,
}
/// A struct to store a reference to the reflector of a DOM object.
-#[allow(raw_pointer_derive, unrooted_must_root)]
+#[allow(unrooted_must_root)]
#[must_root]
#[servo_lang = "reflector"]
#[derive(HeapSizeOf)]
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs
index 9455cee3957..775df6a45aa 100644
--- a/components/script/dom/bindings/utils.rs
+++ b/components/script/dom/bindings/utils.rs
@@ -53,7 +53,6 @@ use util::mem::HeapSizeOf;
use util::str::jsstring_to_str;
/// Proxy handler for a WindowProxy.
-#[allow(raw_pointer_derive)]
pub struct WindowProxyHandler(pub *const libc::c_void);
impl HeapSizeOf for WindowProxyHandler {
@@ -63,7 +62,6 @@ impl HeapSizeOf for WindowProxyHandler {
}
}
-#[allow(raw_pointer_derive)]
#[derive(JSTraceable, HeapSizeOf)]
/// Static data associated with a global object.
pub struct GlobalStaticData {
@@ -142,7 +140,6 @@ pub struct NativePropertyHooks {
}
/// The struct that holds inheritance information for DOM object reflectors.
-#[allow(raw_pointer_derive)]
#[derive(Copy, Clone)]
pub struct DOMClass {
/// A list of interfaces that this object implements, in order of decreasing