Skip to content

Commit

Permalink
Remove #[allow(raw_pointer_derive)] attributes
Browse files Browse the repository at this point in the history
The attributes are unused.

Fixes #8699.
  • Loading branch information
nerith committed Nov 27, 2015
1 parent 3720e4d commit 341e66f
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion components/script/dom/bindings/callback.rs
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/bindings/reflector.rs
Expand Up @@ -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)]
Expand Down
3 changes: 0 additions & 3 deletions components/script/dom/bindings/utils.rs
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion components/script/dom/imagedata.rs
Expand Up @@ -17,7 +17,6 @@ use std::slice;
use std::vec::Vec;

#[dom_struct]
#[allow(raw_pointer_derive)]
pub struct ImageData {
reflector_: Reflector,
width: u32,
Expand Down
2 changes: 0 additions & 2 deletions components/script/dom/node.rs
Expand Up @@ -179,7 +179,6 @@ pub struct SharedLayoutData {
}

/// Encapsulates the abstract layout data.
#[allow(raw_pointer_derive)]
#[derive(HeapSizeOf)]
pub struct LayoutData {
_shared_data: SharedLayoutData,
Expand Down Expand Up @@ -2319,7 +2318,6 @@ impl NodeMethods for Node {
/// The address of a node known to be valid. These are sent from script to layout,
/// and are also used in the HTML parser interface.

#[allow(raw_pointer_derive)]
#[derive(Clone, PartialEq, Eq, Copy)]
pub struct TrustedNodeAddress(pub *const c_void);

Expand Down
1 change: 0 additions & 1 deletion components/script_traits/lib.rs
Expand Up @@ -46,7 +46,6 @@ use util::mem::HeapSizeOf;

/// The address of a node. Layout sends these back. They must be validated via
/// `from_untrusted_node_address` before they can be used, because we do not trust layout.
#[allow(raw_pointer_derive)]
#[derive(Copy, Clone, Debug)]
pub struct UntrustedNodeAddress(pub *const c_void);
unsafe impl Send for UntrustedNodeAddress {}
Expand Down
1 change: 0 additions & 1 deletion ports/cef/window.rs
Expand Up @@ -46,7 +46,6 @@ use self::x11::xlib::{XInitThreads,XOpenDisplay};
pub static mut DISPLAY: *mut c_void = 0 as *mut c_void;

/// The type of an off-screen window.
#[allow(raw_pointer_derive)]
#[derive(Clone)]
pub struct Window {
cef_browser: RefCell<Option<CefBrowser>>,
Expand Down

0 comments on commit 341e66f

Please sign in to comment.