mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
raw_pointer_deriving -> raw_pointer_derive
This commit is contained in:
parent
547ed20455
commit
b8fb725af2
5 changed files with 6 additions and 6 deletions
|
@ -53,7 +53,7 @@ pub struct CallbackInterface {
|
||||||
|
|
||||||
/// A common base class for representing IDL callback function and
|
/// A common base class for representing IDL callback function and
|
||||||
/// callback interface types.
|
/// callback interface types.
|
||||||
#[allow(raw_pointer_deriving)]
|
#[allow(raw_pointer_derive)]
|
||||||
#[derive(Copy, Clone,PartialEq)]
|
#[derive(Copy, Clone,PartialEq)]
|
||||||
#[jstraceable]
|
#[jstraceable]
|
||||||
struct CallbackObject {
|
struct CallbackObject {
|
||||||
|
|
|
@ -49,7 +49,7 @@ use js;
|
||||||
/// Proxy handler for a WindowProxy.
|
/// Proxy handler for a WindowProxy.
|
||||||
pub struct WindowProxyHandler(pub *const libc::c_void);
|
pub struct WindowProxyHandler(pub *const libc::c_void);
|
||||||
|
|
||||||
#[allow(raw_pointer_deriving)]
|
#[allow(raw_pointer_derive)]
|
||||||
#[jstraceable]
|
#[jstraceable]
|
||||||
/// Static data associated with a global object.
|
/// Static data associated with a global object.
|
||||||
pub struct GlobalStaticData {
|
pub struct GlobalStaticData {
|
||||||
|
@ -354,7 +354,7 @@ pub fn reflect_dom_object<T: Reflectable>
|
||||||
|
|
||||||
/// A struct to store a reference to the reflector of a DOM object.
|
/// A struct to store a reference to the reflector of a DOM object.
|
||||||
// Allowing unused_attribute because the lint sometimes doesn't run in order
|
// Allowing unused_attribute because the lint sometimes doesn't run in order
|
||||||
#[allow(raw_pointer_deriving, unrooted_must_root, unused_attributes)]
|
#[allow(raw_pointer_derive, unrooted_must_root, unused_attributes)]
|
||||||
#[derive(PartialEq)]
|
#[derive(PartialEq)]
|
||||||
#[must_root]
|
#[must_root]
|
||||||
#[servo_lang = "reflector"]
|
#[servo_lang = "reflector"]
|
||||||
|
|
|
@ -26,7 +26,7 @@ use js::{JSRESOLVE_QUALIFIED, JSRESOLVE_ASSIGNING};
|
||||||
|
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
#[allow(raw_pointer_deriving)]
|
#[allow(raw_pointer_derive)]
|
||||||
#[jstraceable]
|
#[jstraceable]
|
||||||
#[privatize]
|
#[privatize]
|
||||||
pub struct BrowserContext {
|
pub struct BrowserContext {
|
||||||
|
|
|
@ -2206,7 +2206,7 @@ impl<'a> NodeMethods for JSRef<'a, Node> {
|
||||||
/// The address of a node known to be valid. These are sent from script to layout,
|
/// 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.
|
/// and are also used in the HTML parser interface.
|
||||||
|
|
||||||
#[allow(raw_pointer_deriving)]
|
#[allow(raw_pointer_derive)]
|
||||||
#[derive(Clone, PartialEq, Eq, Copy)]
|
#[derive(Clone, PartialEq, Eq, Copy)]
|
||||||
pub struct TrustedNodeAddress(pub *const c_void);
|
pub struct TrustedNodeAddress(pub *const c_void);
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ use geom::rect::Rect;
|
||||||
|
|
||||||
/// The address of a node. Layout sends these back. They must be validated via
|
/// 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.
|
/// `from_untrusted_node_address` before they can be used, because we do not trust layout.
|
||||||
#[allow(raw_pointer_deriving)]
|
#[allow(raw_pointer_derive)]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
pub struct UntrustedNodeAddress(pub *const c_void);
|
pub struct UntrustedNodeAddress(pub *const c_void);
|
||||||
unsafe impl Send for UntrustedNodeAddress {}
|
unsafe impl Send for UntrustedNodeAddress {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue