aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/script/dom/bindings/interface.rs4
-rw-r--r--components/script/dom/bindings/namespace.rs5
-rw-r--r--components/script/lib.rs2
3 files changed, 4 insertions, 7 deletions
diff --git a/components/script/dom/bindings/interface.rs b/components/script/dom/bindings/interface.rs
index 6203f17bfb9..3cb9aab9f72 100644
--- a/components/script/dom/bindings/interface.rs
+++ b/components/script/dom/bindings/interface.rs
@@ -134,8 +134,8 @@ impl NonCallbackInterfaceObjectClass {
name: b"Function\0" as *const _ as *const libc::c_char,
flags: 0,
cOps: &constructor_behavior.0,
- spec: ptr::null(),
- ext: ptr::null(),
+ spec: 0 as *const _,
+ ext: 0 as *const _,
oOps: &OBJECT_OPS,
},
proto_id: proto_id,
diff --git a/components/script/dom/bindings/namespace.rs b/components/script/dom/bindings/namespace.rs
index 8ca1116ea1e..c2d58ef72c3 100644
--- a/components/script/dom/bindings/namespace.rs
+++ b/components/script/dom/bindings/namespace.rs
@@ -8,7 +8,6 @@ use dom::bindings::guard::Guard;
use dom::bindings::interface::{create_object, define_on_global_object};
use js::jsapi::{HandleObject, JSClass, JSContext, JSFunctionSpec, MutableHandleObject};
use libc;
-use std::ptr;
/// The class of a namespace object.
#[derive(Clone, Copy)]
@@ -22,8 +21,8 @@ impl NamespaceObjectClass {
NamespaceObjectClass(JSClass {
name: name as *const _ as *const libc::c_char,
flags: 0,
- cOps: ptr::null_mut(),
- reserved: [ptr::null_mut(); 3],
+ cOps: 0 as *mut _,
+ reserved: [0 as *mut _; 3],
})
}
}
diff --git a/components/script/lib.rs b/components/script/lib.rs
index 278a1c42a78..fcb68e2420e 100644
--- a/components/script/lib.rs
+++ b/components/script/lib.rs
@@ -4,8 +4,6 @@
#![feature(conservative_impl_trait)]
#![feature(const_fn)]
-#![feature(const_ptr_null)]
-#![feature(const_ptr_null_mut)]
#![feature(core_intrinsics)]
#![feature(mpsc_select)]
#![feature(on_unimplemented)]