Skip to content

Commit

Permalink
Update to Rust 2016-03-18.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Mar 18, 2016
1 parent e551ea7 commit 77cdd97
Show file tree
Hide file tree
Showing 10 changed files with 139 additions and 122 deletions.
1 change: 1 addition & 0 deletions components/plugins/lints/unrooted_must_root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ fn is_unrooted_ty(cx: &LateContext, ty: &ty::TyS, in_new_function: bool) -> bool
ty::TyBox(..) if in_new_function => false, // box in new() is okay
ty::TyRef(..) => false, // don't recurse down &ptrs
ty::TyRawPtr(..) => false, // don't recurse down *ptrs
ty::TyFnDef(..) | ty::TyFnPtr(_) => false,
_ => true
}
});
Expand Down
5 changes: 3 additions & 2 deletions components/script/dom/bindings/proxyhandler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ pub unsafe extern "C" fn define_property(cx: *mut JSContext,
desc: Handle<JSPropertyDescriptor>,
result: *mut ObjectOpResult)
-> bool {
// FIXME: Workaround for https://github.com/mozilla/rust/issues/13385
// FIXME: Workaround for https://github.com/rust-lang/rfcs/issues/718
let setter: *const libc::c_void = mem::transmute(desc.get().setter);
let setter_stub: *const libc::c_void = mem::transmute(JS_StrictPropertyStub);
let setter_stub: unsafe extern fn(_, _, _, _, _) -> _ = JS_StrictPropertyStub;
let setter_stub: *const libc::c_void = mem::transmute(setter_stub);
if (desc.get().attrs & JSPROP_GETTER) != 0 && setter == setter_stub {
(*result).code_ = JSErrNum::JSMSG_GETTER_ONLY as ::libc::uintptr_t;
return true;
Expand Down
73 changes: 39 additions & 34 deletions components/servo/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 77cdd97

Please sign in to comment.